-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (25 loc) · 854 Bytes
/
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
DC = dmd
SRC = source/hap/random/adaptor.d \
source/hap/random/distribution.d \
source/hap/random/generator.d \
source/hap/random/package.d \
source/hap/random/traits.d
EXPERIMENTAL = source/hap/random/device.d
all: benchmark unit
benchmark: benchmarknew benchmarkold
benchmarknew: benchmarknew.d $(SRC)
$(DC) -I./source -O -inline -release -of$@ $^
benchmarkold: benchmarkold.d $(SRC)
$(DC) -I./source -O -inline -release -of$@ $^
unit: $(SRC)
$(DC) -I./source -main -unittest -debug -cov -of$@ $^
./unit
unit-xper: $(EXPERIMENTAL) $(SRC)
$(DC) -I./source -main -unittest -debug -cov -of$@ $^
./unit-xper
unittest: unit unit-xper
doc: $(SRC) $(EXPERIMENTAL)
$(DC) -I./source -o- -Ddhtml $^ doc.ddoc template.ddoc
.PHONY: clean
clean:
rm -rf benchmarknew benchmarkold unit unit-xper *.o *.di html