]> git.saurik.com Git - apple/libpthread.git/blame - tests/Makefile
libpthread-138.10.4.tar.gz
[apple/libpthread.git] / tests / Makefile
CommitLineData
964d3577
A
1SOURCES := $(wildcard *.c)
2TARGETS := $(patsubst %.c,%,$(SOURCES))
3TESTS := $(patsubst %,test-%,$(TARGETS))
4
3a6437e6
A
5include Makefile.common
6
7CFLAGS += -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
8
9%: %.c
10 $(CC) -o $(BUILDDIR)/$@ $< $(CFLAGS)
964d3577
A
11
12all: $(TARGETS)
13
14test check: $(TESTS)
15
16$(TESTS): test-%: %
17 @echo "[TEST] $<"
18 @$(TEST_ENV) ./$<
19 @echo "[END] $<"
20 @echo
21
22clean:
23 rm -f $(TARGETS)
24
3a6437e6
A
25setup:
26 mkdir -p $(BUILDDIR)
27
28
29# B&I Targets
30
31installhdrs:
32
33install: setup all
34
35
964d3577 36.PHONY: all test check clean $(TESTS)