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