1 | .SUFFIXES: .c .cxx .depend .o |
---|
2 | |
---|
3 | TOOLS := \ |
---|
4 | arb_proto_2_xsub \ |
---|
5 | |
---|
6 | LIB_ARBDB := $(LIBPATH) $(ARBDB_LIB) $(ARB_GLIB_LIBS) |
---|
7 | LIBS_ARB_PROBE := ../SERVERCNTRL/SERVERCNTRL.a ../PROBE_COM/client.a |
---|
8 | LIBS_ARB_READ_TREE := ../SL/TREE_READ/TREE_READ.a |
---|
9 | LIBS_ARB_EXPORT_TREE := ../SL/TREE_WRITE/TREE_WRITE.a ../XML/XML.a $(LIBS_ARB_READ_TREE) |
---|
10 | |
---|
11 | OBJECTS:=$(addsuffix .o,$(TOOLS)) |
---|
12 | BINARIES:=$(addprefix $(ARBHOME)/bin/,$(TOOLS)) |
---|
13 | |
---|
14 | all: $(BINARIES) |
---|
15 | |
---|
16 | %.o: %.cxx |
---|
17 | $(A_CXX) $(cflags) $(cxxflags) -c $< $(CXX_INCLUDES) $(POST_COMPILE) $< |
---|
18 | |
---|
19 | %.o: %.c |
---|
20 | $(A_CC) $(cflags) -c $< $(CC_INCLUDES) $(POST_COMPILE) $< |
---|
21 | |
---|
22 | $(ARBHOME)/bin/%: %.o $(use_ARB_main) |
---|
23 | $(LINK_EXECUTABLE) $@ $(use_ARB_main) $< $(EXECLIBS) $(LIB_ARBDB) |
---|
24 | |
---|
25 | clean: |
---|
26 | rm -f $(BINARIES) |
---|
27 | rm -f $(OBJECTS) |
---|
28 | |
---|
29 | proto: |
---|
30 | @echo "Nothing todo for proto in PERLTOOLS" |
---|
31 | |
---|
32 | depends: |
---|
33 | $(MAKE) "DEBUG=1" depends_debug |
---|
34 | |
---|
35 | DEPENDS = $(OBJECTS:.o=.depend) |
---|
36 | depends_debug: $(DEPENDS) |
---|
37 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
38 | @rm $(DEPENDS) |
---|
39 | $(DEPENDS): depend.init |
---|
40 | depend.init: |
---|
41 | $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
42 | .cxx.depend: |
---|
43 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
44 | .c.depend: |
---|
45 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
46 | |
---|
47 | # DO NOT DELETE |
---|
48 | |
---|
49 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
50 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main) |
---|
51 | |
---|
52 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/ad_prot.h |
---|
53 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
54 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
55 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_diff.h |
---|
56 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_error.h |
---|
57 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_mem.h |
---|
58 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_msg.h |
---|
59 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_str.h |
---|
60 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_strbuf.h |
---|
61 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_string.h |
---|
62 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbdb.h |
---|
63 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbdb_base.h |
---|
64 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
65 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
66 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/BufferedFileReader.h |
---|
67 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
68 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
69 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
70 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/smartptr.h |
---|
71 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
72 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_unit.h |
---|
73 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/ut_valgrinded.h |
---|