created function include varibles F_
[libbear.git] / targets.mk
CommitLineData
318de304 1
f1e07aad 2G_LIB := ${P_LIB}
7bbc50a4 3.PHONY: ${G_LIB}
318de304 4
f1e07aad 5G_OBJS_LIB := objs-${G_LIB}
adc2e516
PG
6.PHONY: ${G_OBJS_LIB}
7
f1e07aad 8G_DEPS_LIB := deps-${G_LIB}
adc2e516 9.PHONY: ${G_DEPS_LIB}
318de304 10
75c4965c 11TARGET_${G_LIB} := ${BINDIR_${G_LIB}}${REALNAME_${G_LIB}}
6b7bcb90
PG
12
13
f1e07aad 14G_TESTS := ${P_TESTS}
7bbc50a4 15.PHONY: ${G_TESTS}
318de304 16
f1e07aad 17G_OBJS_TESTS := objs-${G_TESTS}
adc2e516
PG
18.PHONY: ${G_OBJS_TESTS}
19
f1e07aad 20G_DEPS_TESTS := deps-${G_TESTS}
adc2e516 21.PHONY: ${G_DEPS_TESTS}
a98a33a6 22
a98a33a6 23
ebb35834
PG
24L_CLEANCMDS += cleanbin
25.PHONY: cleanbin
caa7531c
PG
26cleanbin:
27
ebb35834
PG
28L_CLEANCMDS += cleanobjs
29.PHONY: cleanobjs
caa7531c
PG
30cleanobjs:
31
ebb35834
PG
32L_CLEANCMDS += cleandeps
33.PHONY: cleandeps
caa7531c
PG
34cleandeps:
35
ebb35834
PG
36L_CLEANCMDS += clean
37.PHONY: clean
caa7531c
PG
38clean: cleanobjs
39
ebb35834
PG
40L_CLEANCMDS += cleanall
41.PHONY: cleanall
caa7531c 42cleanall: cleanbin cleanobjs cleandeps
adc2e516
PG
43
44
15e36d23
PG
45default: ${G_LIB}
46
adc2e516
PG
47.PHONY: all
48all: ${G_LIB} ${G_TESTS}
49
50.PHONY: objs
51objs: ${G_OBJS_LIB} ${G_OBJS_TESTS}
52
53.PHONY: deps
54deps: ${G_DEPS_LIB} ${G_DEPS_TESTS}
ebb35834 55