]> git.saurik.com Git - apple/libpthread.git/blob - tests/Makefile
219bc92d07e158bd31557a92e1a727296cbf600d
[apple/libpthread.git] / tests / Makefile
1 SOURCES := $(wildcard *.c)
2 TARGETS := $(patsubst %.c,%,$(SOURCES))
3 TESTS := $(patsubst %,test-%,$(TARGETS))
4
5 CFLAGS := -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
6
7 all: $(TARGETS)
8
9 test check: $(TESTS)
10
11 $(TESTS): test-%: %
12 @echo "[TEST] $<"
13 @$(TEST_ENV) ./$<
14 @echo "[END] $<"
15 @echo
16
17 clean:
18 rm -f $(TARGETS)
19
20 .PHONY: all test check clean $(TESTS)