source: tags/ms_r16q2/RNACMA/Makefile

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