-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rules.mk
53 lines (44 loc) · 1.9 KB
/
Rules.mk
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
48
49
50
51
52
53
# subdirectories
dir := $(d)/libxt
include $(dir)/Rules.mk
dir := $(d)/tests
include $(dir)/Rules.mk
dir := $(d)/tools
include $(dir)/Rules.mk
dir := $(d)/unittest
include $(dir)/Rules.mk
# local variables
TGT_BIN_$(d) := $(d)/bench.exe \
$(d)/tests.exe \
$(d)/unittest.exe \
OBJS_$(d) := $(d)/bench.o \
$(d)/tests.o \
$(d)/unittest.o \
DEPS_$(d) := $(OBJS_$(d):%.o=%.d)
TGT_BIN := $(TGT_BIN) $(TGT_BIN_$(d))
CLEAN := $(CLEAN) $(TGT_BIN_$(d)) $(OBJS_$(d)) $(DEPS_$(d))
# local rules
$(d)/bench.exe: $(d)/libxt/xt.lib \
tests/clear.o \
tests/clear2.o \
tests/cube.o \
tests/fixedpoint.o \
tests/fixedpoint2.o \
tests/helpers.o \
tests/lines.o \
tests/nop.o \
tests/quaternion.o \
tests/quaternion2.o \
$(d)/tests.exe: $(d)/libxt/xt.lib \
tests/cardinfo.o \
tests/cube.o \
tests/fixedpoint.o \
tests/fixedpoint2.o \
tests/helpers.o \
tests/lines.o \
tests/resolution.o \
$(d)/unittest.exe: $(d)/libxt/xt.lib \
unittest/bitshift.o \
unittest/bitshift2.o \
unittest/fixedpoint.o \
unittest/unittest.o \