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