Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | # |
2 | # Dependency rules used to make some objects |
||
3 | # |
||
4 | |||
5 | .PHONY: all install clean cleanall depend |
||
6 | |||
7 | # |
||
8 | |||
9 | LIB_OBJS=$(addprefix $(LIB_PATH)/,$(OBJS)) |
||
10 | |||
11 | # |
||
12 | |||
13 | install:: $(LIB_OBJS) |
||
14 | |||
15 | all:: $(OBJS) |
||
16 | |||
17 | # c'e' "cp" e non "copy" poiche' la linea di comando per copy |
||
18 | # e' troppo lunga! |
||
19 | # lo stesso per cleanall (vedi)! |
||
20 | |||
21 | $(LIB_OBJS): $(OBJS) |
||
22 | cp $(OBJS) $(LIB_PATH) |
||
23 | |||
24 | clean:: |
||
25 | $(RM) *.o |
||
26 | $(RM) *.err |
||
27 | |||
28 | cleanall:: clean |
||
29 | $(RM) deps |
||
30 | $(RM) *.bak |
||
31 | $(RM) *.~ |
||
32 | $(RM) *.?~ |
||
33 | $(RM) *.??~ |
||
34 | -rm -f $(LIB_OBJS) |
||
35 | |||
36 | depend deps: |
||
37 | $(CC) $(C_OPT) -M $(OBJS:.o=.c) > deps |
||
38 | |||
39 | ifneq ($(MAKECMDGOALS),clean) |
||
40 | ifneq ($(MAKECMDGOALS),cleanall) |
||
41 | include deps |
||
42 | endif |
||
43 | endif |