source: branches/profile/RNACMA/Makefile

Last change on this file was 12478, checked in by westram, 10 years ago
  • use gcc features:
    • use -Og instead of -O0 (gcc4.8++)
    • enable -Wunused-local-typedefs for gcc4.8++ (disable for RNACMA and nostd.cxx)
File size: 4.7 KB
Line 
1# for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt
2
3.SUFFIXES: .o .cxx .depend
4
5CPP_OBJECTS = $(subst .cxx,.o,$(wildcard *.cxx))
6
7cma_cxxflags:=$(cxxflags)
8cma_cflags:= $(cflags)
9
10SUPPRESS_WARNINGS=1# set to 0 to show warnings
11
12ifeq ($(SUPPRESS_WARNINGS),1)
13cma_cxxflags:= $(subst -Weffc++,,$(cma_cxxflags))
14cma_cxxflags:= $(subst -Wctor-dtor-privacy,,$(cma_cxxflags))
15cma_cxxflags:= $(subst -Wlogical-op,,$(cma_cxxflags))
16cma_cxxflags:= $(subst -Wunused-local-typedefs,,$(cma_cxxflags))
17cma_cflags:= $(subst -Wshadow,,$(cma_cflags))
18cma_cflags+= -Wno-unused-local-typedefs# this is included in -Wall
19endif
20
21cma_cflags+= -I../HEADERLIBS
22
23$(MAIN): $(CPP_OBJECTS) warn
24        @$(ARBHOME)/SOURCE_TOOLS/binuptodate.pl $(MAIN) $(CPP_OBJECTS) || ( \
25                echo "$(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS)"; \
26                $(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS) ; \
27        )
28
29warn:
30ifeq ($(SUPPRESS_WARNINGS),1)
31        @echo "------------------------------------------------------------------------------------------"
32        @echo "Please note: Several compiler warnings have been disabled in RNACMA"
33        @echo "(namely -Weffc++, -Wctor-dtor-privacy, -Wlogical-op, -Wshadow, -Wunused-local-typedefs)"
34        @echo "to avoid Eigen spams here"
35        @echo "------------------------------------------------------------------------------------------"
36endif
37
38.cxx.o: warn
39        $(A_CXX) $(cma_cflags) $(cma_cxxflags) -c $<  $(CXX_INCLUDES)  $(POST_COMPILE)
40
41
42$(CPP_OBJECTS) : Makefile
43
44clean:
45        rm -f $(CPP_OBJECTS) *.a
46
47DEPENDS = $(CPP_OBJECTS:.o=.depend)
48depends: $(DEPENDS)
49        @cat $(DEPENDS) | grep -v '^#' >>Makefile
50        @rm $(DEPENDS)
51$(DEPENDS): depend.init
52depend.init:
53        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
54.c.depend:
55        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
56.cxx.depend:
57        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
58
59# DO NOT DELETE THIS LINE -- make depend depends on it.
60
61# Do not add dependencies manually - use 'make depend' in $ARBHOME
62# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main)
63
64AlignedSequenceLoader.o: AlignedSequenceLoader.h
65AlignedSequenceLoader.o: Cma.h
66AlignedSequenceLoader.o: dbconn.h
67AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/ad_prot.h
68AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/ad_t_prot.h
69AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_assert.h
70AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_core.h
71AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_error.h
72AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_msg.h
73AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_string.h
74AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb.h
75AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb_base.h
76AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdbt.h
77AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbtools.h
78AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/attributes.h
79AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/cxxforward.h
80AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/downcast.h
81AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/dupstr.h
82AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/gccver.h
83AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/smartptr.h
84AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/static_assert.h
85AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/test_global.h
86
87Analyser.o: AlignedSequenceLoader.h
88Analyser.o: Analyser.h
89Analyser.o: Cma.h
90Analyser.o: dbconn.h
91Analyser.o: $(ARBHOME)/INCLUDE/ad_prot.h
92Analyser.o: $(ARBHOME)/INCLUDE/ad_t_prot.h
93Analyser.o: $(ARBHOME)/INCLUDE/arb_assert.h
94Analyser.o: $(ARBHOME)/INCLUDE/arb_core.h
95Analyser.o: $(ARBHOME)/INCLUDE/arb_error.h
96Analyser.o: $(ARBHOME)/INCLUDE/arb_msg.h
97Analyser.o: $(ARBHOME)/INCLUDE/arb_string.h
98Analyser.o: $(ARBHOME)/INCLUDE/arbdb.h
99Analyser.o: $(ARBHOME)/INCLUDE/arbdb_base.h
100Analyser.o: $(ARBHOME)/INCLUDE/arbdbt.h
101Analyser.o: $(ARBHOME)/INCLUDE/arbtools.h
102Analyser.o: $(ARBHOME)/INCLUDE/attributes.h
103Analyser.o: $(ARBHOME)/INCLUDE/cxxforward.h
104Analyser.o: $(ARBHOME)/INCLUDE/downcast.h
105Analyser.o: $(ARBHOME)/INCLUDE/dupstr.h
106Analyser.o: $(ARBHOME)/INCLUDE/gccver.h
107Analyser.o: $(ARBHOME)/INCLUDE/smartptr.h
108Analyser.o: $(ARBHOME)/INCLUDE/static_assert.h
109Analyser.o: $(ARBHOME)/INCLUDE/test_global.h
110
111Cma.o: Cma.h
112Cma.o: $(ARBHOME)/INCLUDE/cxxforward.h
113Cma.o: $(ARBHOME)/INCLUDE/gccver.h
114
115dbconn.o: dbconn.h
116dbconn.o: $(ARBHOME)/INCLUDE/ad_prot.h
117dbconn.o: $(ARBHOME)/INCLUDE/arb_assert.h
118dbconn.o: $(ARBHOME)/INCLUDE/arb_core.h
119dbconn.o: $(ARBHOME)/INCLUDE/arb_error.h
120dbconn.o: $(ARBHOME)/INCLUDE/arb_msg.h
121dbconn.o: $(ARBHOME)/INCLUDE/arb_string.h
122dbconn.o: $(ARBHOME)/INCLUDE/arbdb.h
123dbconn.o: $(ARBHOME)/INCLUDE/arbdb_base.h
124dbconn.o: $(ARBHOME)/INCLUDE/arbtools.h
125dbconn.o: $(ARBHOME)/INCLUDE/attributes.h
126dbconn.o: $(ARBHOME)/INCLUDE/cxxforward.h
127dbconn.o: $(ARBHOME)/INCLUDE/dupstr.h
128dbconn.o: $(ARBHOME)/INCLUDE/gccver.h
129dbconn.o: $(ARBHOME)/INCLUDE/smartptr.h
130dbconn.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the repository browser.