File: Makefile.OSX

package info (click to toggle)
faketime 0.9.6-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 408 kB
  • ctags: 344
  • sloc: ansic: 2,047; sh: 379; makefile: 99; pascal: 21
file content (30 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CC ?= clang

CFLAGS += -std=gnu99 -Wall -DFAKE_STAT 

SRC = timetest.c
OBJ = ${SRC:.c=.o}

all: timetest test

.c.o:
	${CC} -c ${CFLAGS} $<

timetest: ${OBJ}
	${CC} -o $@ ${OBJ} ${LDFLAGS}

test: timetest functest
	@echo
	@./test_OSX.sh

# run functional tests
functest:
	./testframe.sh functests

clean:
	@rm -f ${OBJ} timetest

distclean: clean
	@echo

.PHONY: all test clean distclean