source: branches/profile/ISLAND_HOPPING/Makefile

Last change on this file was 10997, checked in by westram, 6 years ago
  • use cflags before cxxflags (where locally modified)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
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
7RAISE_WARNINGS=0# no warnings in this subtree
8LOCAL_DEFINES=-DSIMPLE_ARB_ASSERT
9
10LOCAL_MAKEDEPENDFLAGS=$(MAKEDEPENDFLAGS) $(LOCAL_DEFINES)
11LOCAL_CFLAGS:=$(cflags) $(LOCAL_DEFINES)
12ifeq ('$(RAISE_WARNINGS)','0')
13LOCAL_CFLAGS:=$(subst -W -Wall,-w,$(LOCAL_CFLAGS))
14endif
15
16# --------------------------------------------------------------------------------
17
18
19CPP_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
28clean:
29        rm -f $(CPP_OBJECTS) *.a
30
31DEPENDS = $(CPP_OBJECTS:.o=.depend)
32depends: $(DEPENDS)
33        @cat $(DEPENDS) | grep -v '^#' >>Makefile
34        @rm $(DEPENDS)
35$(DEPENDS): depend.init
36depend.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
48align.o: defs.h
49align.o: i-hopper.h
50align.o: mem.h
51align.o: trnsprob.h
52
53i-hopper.o: defs.h
54i-hopper.o: i-hopper.h
55i-hopper.o: mem.h
56
57island_hopping.o: defs.h
58island_hopping.o: i-hopper.h
59island_hopping.o: island_hopping.h
60island_hopping.o: mem.h
61island_hopping.o: $(ARBHOME)/INCLUDE/arb_assert.h
62island_hopping.o: $(ARBHOME)/INCLUDE/arb_core.h
63island_hopping.o: $(ARBHOME)/INCLUDE/arbtools.h
64island_hopping.o: $(ARBHOME)/INCLUDE/attributes.h
65island_hopping.o: $(ARBHOME)/INCLUDE/cxxforward.h
66island_hopping.o: $(ARBHOME)/INCLUDE/dupstr.h
67island_hopping.o: $(ARBHOME)/INCLUDE/gccver.h
68island_hopping.o: $(ARBHOME)/INCLUDE/pos_range.h
69island_hopping.o: $(ARBHOME)/INCLUDE/test_global.h
70
71mem.o: mem.h
72mem.o: $(ARBHOME)/INCLUDE/attributes.h
73mem.o: $(ARBHOME)/INCLUDE/gccver.h
74
75trnsprob.o: defs.h
76trnsprob.o: mem.h
77trnsprob.o: trnsprob.h
78trnsprob.o: $(ARBHOME)/INCLUDE/arb_assert.h
79trnsprob.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
80trnsprob.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the repository browser.