]>
Commit | Line | Data |
---|---|---|
964d3577 A |
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) |