1 | # for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt |
---|
2 | .SUFFIXES: .o .c .cxx .depend |
---|
3 | |
---|
4 | # -------------------------------------------------------------------------------- |
---|
5 | # modify cflags |
---|
6 | |
---|
7 | RAISE_WARNINGS=0# no warnings in this subtree |
---|
8 | LOCAL_DEFINES=-DSIMPLE_ARB_ASSERT |
---|
9 | |
---|
10 | LOCAL_MAKEDEPENDFLAGS=$(MAKEDEPENDFLAGS) $(LOCAL_DEFINES) |
---|
11 | LOCAL_CFLAGS:=$(cflags) $(LOCAL_DEFINES) |
---|
12 | ifeq ('$(RAISE_WARNINGS)','0') |
---|
13 | LOCAL_CFLAGS:=$(subst -W -Wall,-w,$(LOCAL_CFLAGS)) |
---|
14 | endif |
---|
15 | |
---|
16 | # -------------------------------------------------------------------------------- |
---|
17 | |
---|
18 | |
---|
19 | CPP_OBJECTS = island_hopping.o i-hopper.o align.o mem.o trnsprob.o |
---|
20 | |
---|
21 | $(MAIN): $(CPP_OBJECTS) |
---|
22 | $(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS) |
---|
23 | .c.o: |
---|
24 | $(A_CC) $(LOCAL_CFLAGS) -DARB -c $< $(CC_INCLUDES) $(POST_COMPILE) |
---|
25 | .cxx.o: |
---|
26 | $(A_CXX) $(LOCAL_CFLAGS) $(cxxflags) -DARB -c $< $(CXX_INCLUDES) $(POST_COMPILE) |
---|
27 | |
---|
28 | clean: |
---|
29 | rm -f $(CPP_OBJECTS) *.a |
---|
30 | |
---|
31 | DEPENDS = $(CPP_OBJECTS:.o=.depend) |
---|
32 | depends: $(DEPENDS) |
---|
33 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
34 | @rm $(DEPENDS) |
---|
35 | $(DEPENDS): depend.init |
---|
36 | depend.init: |
---|
37 | $(MAKEDEPEND) $(LOCAL_MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
38 | .c.depend: |
---|
39 | $(MAKEDEPEND) -f- $(LOCAL_MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
40 | .cxx.depend: |
---|
41 | $(MAKEDEPEND) -f- $(LOCAL_MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
42 | |
---|
43 | # DO NOT DELETE |
---|
44 | |
---|
45 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
46 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main) |
---|
47 | |
---|
48 | align.o: defs.h |
---|
49 | align.o: i-hopper.h |
---|
50 | align.o: mem.h |
---|
51 | align.o: trnsprob.h |
---|
52 | |
---|
53 | i-hopper.o: defs.h |
---|
54 | i-hopper.o: i-hopper.h |
---|
55 | i-hopper.o: mem.h |
---|
56 | |
---|
57 | island_hopping.o: defs.h |
---|
58 | island_hopping.o: i-hopper.h |
---|
59 | island_hopping.o: island_hopping.h |
---|
60 | island_hopping.o: mem.h |
---|
61 | island_hopping.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
62 | island_hopping.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
63 | island_hopping.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
64 | island_hopping.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
65 | island_hopping.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
66 | island_hopping.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
67 | island_hopping.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
68 | island_hopping.o: $(ARBHOME)/INCLUDE/pos_range.h |
---|
69 | island_hopping.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
70 | |
---|
71 | mem.o: mem.h |
---|
72 | mem.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
73 | mem.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
74 | |
---|
75 | trnsprob.o: defs.h |
---|
76 | trnsprob.o: mem.h |
---|
77 | trnsprob.o: trnsprob.h |
---|
78 | trnsprob.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
79 | trnsprob.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
80 | trnsprob.o: $(ARBHOME)/INCLUDE/test_global.h |
---|