source: tags/ms_r17q3/RNACMA/Makefile

Last change on this file was 15579, checked in by westram, 8 years ago
  • reintegrates 'unittest' into 'trunk'
    • activates unittests under OSX (performs #740)
      • disabled a few tests + accepted a few modified results (see #741)
      • RegExpr no longer uses exception
      • fix quoting of char* (in reported test result)
    • fixes several compiler flags unknown under OSX/clang
    • fix usability of compile log (make now prints directory)
  • adds: log:branches/unittest@15534:15578
  • removes: [15520/branches/warnings]
File size: 5.2 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)
13 cma_cxxflags:= $(subst -Weffc++,,$(cma_cxxflags))
14 cma_cxxflags:= $(subst -Wctor-dtor-privacy,,$(cma_cxxflags))
15 cma_cxxflags:= $(subst -Wlogical-op,,$(cma_cxxflags))
16 cma_cxxflags:= $(subst -Wunused-local-typedefs,,$(cma_cxxflags))
17 cma_cxxflags:= $(cma_cxxflags) -Wno-deprecated-declarations -Wno-ignored-attributes
18 cma_cflags:= $(subst -Wshadow,,$(cma_cflags))
19 ifeq ($(USE_CLANG),1)
20# clang spams warnings about unused parameters in Eigen (-> skip them)
21  cma_cxxflags+= -Wno-unused-parameter -Wno-unused-variable
22 else
23# -Wunused-local-typedefs is included in -Wall -> disable (not for clang)
24  cma_cflags+= -Wno-unused-local-typedefs
25 endif
26endif
27
28cma_cflags+= -I../HEADERLIBS
29
30$(MAIN): $(CPP_OBJECTS) warn
31        @$(ARBHOME)/SOURCE_TOOLS/binuptodate.pl $(MAIN) $(CPP_OBJECTS) || ( \
32                echo "$(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS)"; \
33                $(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS) ; \
34        )
35
36warn:
37ifeq ($(SUPPRESS_WARNINGS),1)
38        @echo "------------------------------------------------------------------------------------------"
39        @echo "Please note: Several compiler warnings have been disabled in RNACMA"
40        @echo "(namely -Weffc++, -Wctor-dtor-privacy, -Wlogical-op, -Wshadow, -Wunused-local-typedefs,"
41        @echo "  -Wdeprecated-declarations -Wignored-attributes) to avoid Eigen spams here"
42        @echo "------------------------------------------------------------------------------------------"
43endif
44
45.cxx.o: warn
46        $(A_CXX) $(cma_cflags) $(cma_cxxflags) -c $<  $(CXX_INCLUDES)  $(POST_COMPILE) $<
47
48
49$(CPP_OBJECTS) : Makefile
50
51clean:
52        rm -f $(CPP_OBJECTS) *.a
53
54DEPENDS = $(CPP_OBJECTS:.o=.depend)
55depends: $(DEPENDS)
56        @cat $(DEPENDS) | grep -v '^#' >>Makefile
57        @rm $(DEPENDS)
58$(DEPENDS): depend.init
59depend.init:
60        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
61.c.depend:
62        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
63.cxx.depend:
64        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
65
66# DO NOT DELETE THIS LINE -- make depend depends on it.
67
68# Do not add dependencies manually - use 'make depend' in $ARBHOME
69# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main)
70
71AlignedSequenceLoader.o: AlignedSequenceLoader.h
72AlignedSequenceLoader.o: Cma.h
73AlignedSequenceLoader.o: dbconn.h
74AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/ad_prot.h
75AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/ad_t_prot.h
76AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_assert.h
77AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_core.h
78AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_error.h
79AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_mem.h
80AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_msg.h
81AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_string.h
82AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb.h
83AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb_base.h
84AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdbt.h
85AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbtools.h
86AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/attributes.h
87AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/cxxforward.h
88AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/downcast.h
89AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/dupstr.h
90AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/gccver.h
91AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/smartptr.h
92AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/static_assert.h
93AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/test_global.h
94
95Analyser.o: AlignedSequenceLoader.h
96Analyser.o: Analyser.h
97Analyser.o: Cma.h
98Analyser.o: dbconn.h
99Analyser.o: $(ARBHOME)/INCLUDE/ad_prot.h
100Analyser.o: $(ARBHOME)/INCLUDE/ad_t_prot.h
101Analyser.o: $(ARBHOME)/INCLUDE/arb_assert.h
102Analyser.o: $(ARBHOME)/INCLUDE/arb_core.h
103Analyser.o: $(ARBHOME)/INCLUDE/arb_error.h
104Analyser.o: $(ARBHOME)/INCLUDE/arb_mem.h
105Analyser.o: $(ARBHOME)/INCLUDE/arb_msg.h
106Analyser.o: $(ARBHOME)/INCLUDE/arb_string.h
107Analyser.o: $(ARBHOME)/INCLUDE/arbdb.h
108Analyser.o: $(ARBHOME)/INCLUDE/arbdb_base.h
109Analyser.o: $(ARBHOME)/INCLUDE/arbdbt.h
110Analyser.o: $(ARBHOME)/INCLUDE/arbtools.h
111Analyser.o: $(ARBHOME)/INCLUDE/attributes.h
112Analyser.o: $(ARBHOME)/INCLUDE/cxxforward.h
113Analyser.o: $(ARBHOME)/INCLUDE/downcast.h
114Analyser.o: $(ARBHOME)/INCLUDE/dupstr.h
115Analyser.o: $(ARBHOME)/INCLUDE/gccver.h
116Analyser.o: $(ARBHOME)/INCLUDE/smartptr.h
117Analyser.o: $(ARBHOME)/INCLUDE/static_assert.h
118Analyser.o: $(ARBHOME)/INCLUDE/test_global.h
119
120Cma.o: Cma.h
121Cma.o: $(ARBHOME)/INCLUDE/cxxforward.h
122Cma.o: $(ARBHOME)/INCLUDE/gccver.h
123
124dbconn.o: dbconn.h
125dbconn.o: $(ARBHOME)/INCLUDE/ad_prot.h
126dbconn.o: $(ARBHOME)/INCLUDE/arb_assert.h
127dbconn.o: $(ARBHOME)/INCLUDE/arb_core.h
128dbconn.o: $(ARBHOME)/INCLUDE/arb_error.h
129dbconn.o: $(ARBHOME)/INCLUDE/arb_mem.h
130dbconn.o: $(ARBHOME)/INCLUDE/arb_msg.h
131dbconn.o: $(ARBHOME)/INCLUDE/arb_string.h
132dbconn.o: $(ARBHOME)/INCLUDE/arbdb.h
133dbconn.o: $(ARBHOME)/INCLUDE/arbdb_base.h
134dbconn.o: $(ARBHOME)/INCLUDE/arbtools.h
135dbconn.o: $(ARBHOME)/INCLUDE/attributes.h
136dbconn.o: $(ARBHOME)/INCLUDE/cxxforward.h
137dbconn.o: $(ARBHOME)/INCLUDE/dupstr.h
138dbconn.o: $(ARBHOME)/INCLUDE/gccver.h
139dbconn.o: $(ARBHOME)/INCLUDE/smartptr.h
140dbconn.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the repository browser.