source: trunk/PERLTOOLS/Makefile

Last change on this file was 19445, checked in by westram, 16 months ago
  • check all A_CC calls (=plain C compilations) whether they are used.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1.SUFFIXES: .c .cxx .depend .o
2
3TOOLS := \
4        arb_proto_2_xsub \
5
6LIB_ARBDB            := $(LIBPATH) $(ARBDB_LIB) $(ARB_CORE_LIBS)
7LIBS_ARB_PROBE       := ../SERVERCNTRL/SERVERCNTRL.a ../PROBE_COM/client.a
8LIBS_ARB_READ_TREE   := ../SL/TREE_READ/TREE_READ.a
9LIBS_ARB_EXPORT_TREE := ../SL/TREE_WRITE/TREE_WRITE.a ../XML/XML.a $(LIBS_ARB_READ_TREE)
10
11OBJECTS:=$(addsuffix .o,$(TOOLS))
12BINARIES:=$(addprefix $(ARBHOME)/bin/,$(TOOLS))
13
14all: $(BINARIES)
15
16%.o: %.cxx
17        $(A_CXX) $(cflags) $(cxxflags) -c $< $(CXX_INCLUDES) $(POST_COMPILE) $<
18
19$(ARBHOME)/bin/%: %.o $(use_ARB_main)
20        $(LINK_EXECUTABLE) $@ $(use_ARB_main) $< $(LIB_ARBDB)
21
22clean:
23        rm -f $(BINARIES)
24        rm -f $(OBJECTS)
25
26proto:
27        @echo "Nothing todo for proto in PERLTOOLS"
28
29depends:
30        $(MAKE) "DEBUG=1" depends_debug
31
32DEPENDS = $(OBJECTS:.o=.depend)
33depends_debug: $(DEPENDS)
34        @cat $(DEPENDS) | grep -v '^#' >>Makefile
35        @rm $(DEPENDS)
36$(DEPENDS): depend.init
37depend.init:
38        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
39.cxx.depend:
40        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
41.c.depend:
42        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
43
44# DO NOT DELETE
45
46# Do not add dependencies manually - use 'make depend' in $ARBHOME
47# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main)
48
49arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/ad_prot.h
50arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_assert.h
51arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_core.h
52arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_diff.h
53arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_error.h
54arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_mem.h
55arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_msg.h
56arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_str.h
57arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_strarray.h
58arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_strbuf.h
59arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_string.h
60arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbdb.h
61arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbdb_base.h
62arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbtools.h
63arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/attributes.h
64arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/BufferedFileReader.h
65arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/cxxforward.h
66arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/dupstr.h
67arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/gccver.h
68arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/smartptr.h
69arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_global.h
70arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_runtool.h
71arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_unit.h
72arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/ut_valgrinded.h
Note: See TracBrowser for help on using the repository browser.