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