source: tags/ms_r16q3/RNACMA/Makefile

Last change on this file was 15176, checked in by westram, 8 years ago
File size: 5.0 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_mem.h
74AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_msg.h
75AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_string.h
76AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb.h
77AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb_base.h
78AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdbt.h
79AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbtools.h
80AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/attributes.h
81AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/cxxforward.h
82AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/downcast.h
83AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/dupstr.h
84AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/gccver.h
85AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/smartptr.h
86AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/static_assert.h
87AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/test_global.h
88
89Analyser.o: AlignedSequenceLoader.h
90Analyser.o: Analyser.h
91Analyser.o: Cma.h
92Analyser.o: dbconn.h
93Analyser.o: $(ARBHOME)/INCLUDE/ad_prot.h
94Analyser.o: $(ARBHOME)/INCLUDE/ad_t_prot.h
95Analyser.o: $(ARBHOME)/INCLUDE/arb_assert.h
96Analyser.o: $(ARBHOME)/INCLUDE/arb_core.h
97Analyser.o: $(ARBHOME)/INCLUDE/arb_error.h
98Analyser.o: $(ARBHOME)/INCLUDE/arb_mem.h
99Analyser.o: $(ARBHOME)/INCLUDE/arb_msg.h
100Analyser.o: $(ARBHOME)/INCLUDE/arb_string.h
101Analyser.o: $(ARBHOME)/INCLUDE/arbdb.h
102Analyser.o: $(ARBHOME)/INCLUDE/arbdb_base.h
103Analyser.o: $(ARBHOME)/INCLUDE/arbdbt.h
104Analyser.o: $(ARBHOME)/INCLUDE/arbtools.h
105Analyser.o: $(ARBHOME)/INCLUDE/attributes.h
106Analyser.o: $(ARBHOME)/INCLUDE/cxxforward.h
107Analyser.o: $(ARBHOME)/INCLUDE/downcast.h
108Analyser.o: $(ARBHOME)/INCLUDE/dupstr.h
109Analyser.o: $(ARBHOME)/INCLUDE/gccver.h
110Analyser.o: $(ARBHOME)/INCLUDE/smartptr.h
111Analyser.o: $(ARBHOME)/INCLUDE/static_assert.h
112Analyser.o: $(ARBHOME)/INCLUDE/test_global.h
113
114Cma.o: Cma.h
115Cma.o: $(ARBHOME)/INCLUDE/cxxforward.h
116Cma.o: $(ARBHOME)/INCLUDE/gccver.h
117
118dbconn.o: dbconn.h
119dbconn.o: $(ARBHOME)/INCLUDE/ad_prot.h
120dbconn.o: $(ARBHOME)/INCLUDE/arb_assert.h
121dbconn.o: $(ARBHOME)/INCLUDE/arb_core.h
122dbconn.o: $(ARBHOME)/INCLUDE/arb_error.h
123dbconn.o: $(ARBHOME)/INCLUDE/arb_mem.h
124dbconn.o: $(ARBHOME)/INCLUDE/arb_msg.h
125dbconn.o: $(ARBHOME)/INCLUDE/arb_string.h
126dbconn.o: $(ARBHOME)/INCLUDE/arbdb.h
127dbconn.o: $(ARBHOME)/INCLUDE/arbdb_base.h
128dbconn.o: $(ARBHOME)/INCLUDE/arbtools.h
129dbconn.o: $(ARBHOME)/INCLUDE/attributes.h
130dbconn.o: $(ARBHOME)/INCLUDE/cxxforward.h
131dbconn.o: $(ARBHOME)/INCLUDE/dupstr.h
132dbconn.o: $(ARBHOME)/INCLUDE/gccver.h
133dbconn.o: $(ARBHOME)/INCLUDE/smartptr.h
134dbconn.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the repository browser.