]> git.saurik.com Git - apple/xnu.git/blame - tools/tests/kqueue_tests/Makefile
xnu-3789.70.16.tar.gz
[apple/xnu.git] / tools / tests / kqueue_tests / Makefile
CommitLineData
3e170ce0 1include ../Makefile.common
b0d623f7 2
fe8ab488 3CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
b0d623f7 4
39236c6e
A
5ifdef RC_ARCHS
6 ARCHS:=$(RC_ARCHS)
7 else
8 ifeq "$(Embedded)" "YES"
fe8ab488 9 ARCHS:=armv7 armv7s arm64
39236c6e
A
10 else
11 ARCHS:=x86_64 i386
12 endif
13endif
14
3e170ce0 15CFLAGS :=-g $(patsubst %, -arch %,$(ARCHS)) -isysroot $(SDKROOT)
39236c6e
A
16
17DSTROOT?=$(shell /bin/pwd)
18SYMROOT?=$(shell /bin/pwd)
19
39037602 20all: $(addprefix $(DSTROOT)/, file_tests timer_tests)
39236c6e 21
39037602 22$(DSTROOT)/file_tests: kqueue_file_tests.c
39236c6e 23 $(CC) $(CFLAGS) -o $(SYMROOT)/file_tests kqueue_file_tests.c
39037602 24 ditto $(SYMROOT)/file_tests $(DSTROOT)/file_tests
39236c6e 25
39037602 26$(DSTROOT)/timer_tests: kqueue_timer_tests.c
39236c6e 27 $(CC) $(CFLAGS) -o $(SYMROOT)/timer_tests kqueue_timer_tests.c
39037602 28 ditto $(SYMROOT)/timer_tests $(DSTROOT)/timer_tests
39236c6e
A
29
30clean:
31 rm -rf $(DSTROOT)/file_tests $(DSTROOT)/timer_tests $(SYMROOT)/*.dSYM $(SYMROOT)/file_tests $(SYMROOT)/timer_tests