-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 988 Bytes
/
Makefile
File metadata and controls
44 lines (31 loc) · 988 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
include make/helper.mk
include make/config.mk
include make/c-tap-harness-config.mk
TEST.c := $(shell find $(TESTDIR) -type f -name "*.c" -print)
TEST_PATHSUBST.c = $(patsubst $(TESTDIR)/%.c,$(BUILDTESTDIR)/%$(EXEEXT),$(1))
MKDIR_BUILDTESTDIR = mkdir -p `dirname $(call TEST_PATHSUBST.c,$<)`
TEST_OBJ := $(call TEST_PATHSUBST.c,$(TEST.c))
## Rules
all:
echo "Success!"
dep: | dep.c-tap-harness dep dep.perl dep.R
dep.R:
Rscript ./install.R
dep.perl:
cpanm --installdeps .
dep.c-tap-harness:
./tool/external/c-tap-harness/download
./tool/external/c-tap-harness/build
clean:
-rm -Rf $(OUTPUT_DIRS)
test: $(TEST_OBJ)
$(RUNTESTS) $(TEST_OBJ)
test: CPPFLAGS += $(TEST_CPPFLAGS)
test: LDFLAGS += $(TEST_LDFLAGS)
test: LDLIBS += $(TEST_LDLIBS)
$(BUILDTESTDIR)/%$(EXEEXT): $(TESTDIR)/%.c
@$(MKDIR_DEPEND.c)
@$(MKDIR_BUILDTESTDIR)
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
dep.debian:
sudo apt-get install --no-install-recommends $$( sed 's/#.*$$//g' < debian-packages )