setup save/restore for includes
[libbear.git] / Makefile
CommitLineData
6da586f4 1
11c73ff2
PG
2# set this on the command line to get a WIN32 or a FINAL build
3BUILD := DEBUG
2e58db1a 4
630fa680
PG
5# cause the fancy $${@D} directory rules to work out
6.SECONDEXPANSION:
7
72482893 8# The first and therefor default rule
91a299db
PG
9.PHONY: default
10default:
3fc83b9f 11
318de304
PG
12# Include the variables that describe targets
13include targets.mk
14
48f93b39 15
7bbc50a4
PG
16G_DIRMK := dir.mk
17G_VARSMK := vars.mk
18G_FILESMK := files.mk
19G_RULESMK := rules.mk
20G_LISTSMK := lists.mk
21G_TVARSMK := tvars.mk
630fa680 22
7bbc50a4
PG
23
24include ${G_VARSMK}
25include ${G_LISTSMK}
630fa680 26
5e936898 27# include all of the dir.mk
7bbc50a4 28include lib/${G_DIRMK}
a98a33a6 29include tests/${G_DIRMK}
7bbc50a4
PG
30
31# Do not include deps files when doing a clean operation
32ifeq ($(filter ${L_CLEANCMDS},${MAKECMDGOALS}),)
33 -include ${L_DEPS}
34endif
6da586f4 35