-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
47 lines (34 loc) · 1.03 KB
/
Makefile
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
45
46
47
.PHONY: all
SRC_FILES = -Isource/ source/during/*.d
TEST_FILES = -Itests/ tests/*.d
TEST_FLAGS = -debug -g -unittest -w -vcolumns
SILLY_DIR = ~/.dub/packages/silly-1.0.0/silly
SILLY_FILES = -I$(SILLY_DIR) $(SILLY_DIR)/silly.d
ifeq ($(DC),ldc2)
DC=ldmd2
endif
$(SILLY_DIR):
dub fetch silly --version="1.0.0"
buildTestSilly: $(SILLY_DIR)
$(DC) -of=during-test -version=test_root $(TEST_FLAGS) $(SRC_FILES) $(TEST_FILES) $(SILLY_FILES)
buildTest:
$(DC) -of=during-test -version=test_root $(TEST_FLAGS) $(SRC_FILES) $(TEST_FILES)
test: buildTestSilly
./during-test -t 1
testPlain: buildTest
./during-test
buildTestBC:
$(DC) -of=during-test-bc $(TEST_FLAGS) -betterC $(SRC_FILES) $(TEST_FILES)
testBC: buildTestBC
./during-test-bc
buildCodecov: $(SILLY_DIR)
$(DC) -of=during-test-codecov -version=test_root -cov $(TEST_FLAGS) $(SRC_FILES) $(TEST_FILES) $(SILLY_FILES)
codecov: buildCodecov
./during-test-codecov | true
all: buildTest buildTestBC codecov
clean:
- rm -f *.a
- rm -f *.o
- rm -f during-test*
- rm -f *.dat
- rm -f ./*.lst