1 | # for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt |
---|
2 | |
---|
3 | .SUFFIXES: .c .cxx .o .h .depend |
---|
4 | |
---|
5 | CPP_OBJECTS = |
---|
6 | C_OBJECTS = base.o defines.o frand.o readcfg.o rns.o sim.o simcfg.o spreadin.o |
---|
7 | OBJECTS = $(CPP_OBJECTS) $(C_OBJECTS) |
---|
8 | |
---|
9 | $(MAIN): $(CPP_OBJECTS) $(C_OBJECTS) |
---|
10 | $(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS) $(C_OBJECTS) |
---|
11 | |
---|
12 | .cxx.o: |
---|
13 | $(A_CXX) $(cflags) $(cxxflags) -c $< $(CXX_INCLUDES) $(POST_COMPILE) $< |
---|
14 | |
---|
15 | .c.o: |
---|
16 | $(A_CC) $(cflags) -c $< $(CC_INCLUDES) $(POST_COMPILE) $< |
---|
17 | |
---|
18 | clean: |
---|
19 | rm -f $(OBJECTS) *.a |
---|
20 | |
---|
21 | DEPENDS = $(OBJECTS:.o=.depend) |
---|
22 | depends: $(DEPENDS) |
---|
23 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
24 | @rm $(DEPENDS) |
---|
25 | $(DEPENDS): depend.init |
---|
26 | depend.init: |
---|
27 | $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
28 | .c.depend: |
---|
29 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
30 | .cxx.depend: |
---|
31 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
32 | |
---|
33 | # DO NOT DELETE |
---|
34 | |
---|
35 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
36 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main) |
---|
37 | |
---|
38 | base.o: base.h |
---|
39 | base.o: defines.h |
---|
40 | base.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
41 | base.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
42 | |
---|
43 | defines.o: defines.h |
---|
44 | defines.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
45 | defines.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
46 | |
---|
47 | frand.o: defines.h |
---|
48 | frand.o: frand.h |
---|
49 | frand.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
50 | frand.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
51 | |
---|
52 | readcfg.o: defines.h |
---|
53 | readcfg.o: readcfg.h |
---|
54 | readcfg.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
55 | readcfg.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
56 | |
---|
57 | rns.o: base.h |
---|
58 | rns.o: defines.h |
---|
59 | rns.o: frand.h |
---|
60 | rns.o: rns.h |
---|
61 | rns.o: simcfg.h |
---|
62 | rns.o: spreadin.h |
---|
63 | rns.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
64 | rns.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
65 | |
---|
66 | sim.o: base.h |
---|
67 | sim.o: defines.h |
---|
68 | sim.o: frand.h |
---|
69 | sim.o: rns.h |
---|
70 | sim.o: simcfg.h |
---|
71 | sim.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
72 | sim.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
73 | |
---|
74 | simcfg.o: base.h |
---|
75 | simcfg.o: defines.h |
---|
76 | simcfg.o: frand.h |
---|
77 | simcfg.o: readcfg.h |
---|
78 | simcfg.o: rns.h |
---|
79 | simcfg.o: simcfg.h |
---|
80 | simcfg.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
81 | simcfg.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
82 | |
---|
83 | spreadin.o: defines.h |
---|
84 | spreadin.o: spreadin.h |
---|
85 | spreadin.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
86 | spreadin.o: $(ARBHOME)/INCLUDE/gccver.h |
---|