Commit | Line | Data |
---|---|---|
318de304 | 1 | |
f1e07aad | 2 | G_LIB := ${P_LIB} |
7bbc50a4 | 3 | .PHONY: ${G_LIB} |
318de304 | 4 | |
f1e07aad | 5 | G_OBJS_LIB := objs-${G_LIB} |
adc2e516 PG |
6 | .PHONY: ${G_OBJS_LIB} |
7 | ||
f1e07aad | 8 | G_DEPS_LIB := deps-${G_LIB} |
adc2e516 | 9 | .PHONY: ${G_DEPS_LIB} |
318de304 | 10 | |
75c4965c | 11 | TARGET_${G_LIB} := ${BINDIR_${G_LIB}}${REALNAME_${G_LIB}} |
6b7bcb90 PG |
12 | |
13 | ||
f1e07aad | 14 | G_TESTS := ${P_TESTS} |
7bbc50a4 | 15 | .PHONY: ${G_TESTS} |
318de304 | 16 | |
f1e07aad | 17 | G_OBJS_TESTS := objs-${G_TESTS} |
adc2e516 PG |
18 | .PHONY: ${G_OBJS_TESTS} |
19 | ||
f1e07aad | 20 | G_DEPS_TESTS := deps-${G_TESTS} |
adc2e516 | 21 | .PHONY: ${G_DEPS_TESTS} |
a98a33a6 | 22 | |
a98a33a6 | 23 | |
ebb35834 PG |
24 | L_CLEANCMDS += cleanbin |
25 | .PHONY: cleanbin | |
caa7531c PG |
26 | cleanbin: |
27 | ||
ebb35834 PG |
28 | L_CLEANCMDS += cleanobjs |
29 | .PHONY: cleanobjs | |
caa7531c PG |
30 | cleanobjs: |
31 | ||
ebb35834 PG |
32 | L_CLEANCMDS += cleandeps |
33 | .PHONY: cleandeps | |
caa7531c PG |
34 | cleandeps: |
35 | ||
ebb35834 PG |
36 | L_CLEANCMDS += clean |
37 | .PHONY: clean | |
caa7531c PG |
38 | clean: cleanobjs |
39 | ||
ebb35834 PG |
40 | L_CLEANCMDS += cleanall |
41 | .PHONY: cleanall | |
caa7531c | 42 | cleanall: cleanbin cleanobjs cleandeps |
adc2e516 PG |
43 | |
44 | ||
15e36d23 PG |
45 | default: ${G_LIB} |
46 | ||
adc2e516 PG |
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} | |
ebb35834 | 55 |