| 1 | .SUFFIXES: .c .cxx .depend .o | 
|---|
| 2 |  | 
|---|
| 3 | TOOLS := \ | 
|---|
| 4 | arb_proto_2_xsub \ | 
|---|
| 5 |  | 
|---|
| 6 | LIB_ARBDB            := $(LIBPATH) $(ARBDB_LIB) $(ARB_CORE_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 | $(ARBHOME)/bin/%: %.o $(use_ARB_main) | 
|---|
| 20 | $(LINK_EXECUTABLE) $@ $(use_ARB_main) $< $(LIB_ARBDB) | 
|---|
| 21 |  | 
|---|
| 22 | clean: | 
|---|
| 23 | rm -f $(BINARIES) | 
|---|
| 24 | rm -f $(OBJECTS) | 
|---|
| 25 |  | 
|---|
| 26 | proto: | 
|---|
| 27 | @echo "Nothing todo for proto in PERLTOOLS" | 
|---|
| 28 |  | 
|---|
| 29 | depends: | 
|---|
| 30 | $(MAKE) "DEBUG=1" depends_debug | 
|---|
| 31 |  | 
|---|
| 32 | DEPENDS = $(OBJECTS:.o=.depend) | 
|---|
| 33 | depends_debug: $(DEPENDS) | 
|---|
| 34 | @cat $(DEPENDS) | grep -v '^#' >>Makefile | 
|---|
| 35 | @rm $(DEPENDS) | 
|---|
| 36 | $(DEPENDS): depend.init | 
|---|
| 37 | depend.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 |  | 
|---|
| 49 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/ad_prot.h | 
|---|
| 50 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_assert.h | 
|---|
| 51 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_core.h | 
|---|
| 52 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_diff.h | 
|---|
| 53 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_error.h | 
|---|
| 54 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_mem.h | 
|---|
| 55 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_msg.h | 
|---|
| 56 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_str.h | 
|---|
| 57 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_strarray.h | 
|---|
| 58 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_strbuf.h | 
|---|
| 59 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_string.h | 
|---|
| 60 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbdb.h | 
|---|
| 61 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbdb_base.h | 
|---|
| 62 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbtools.h | 
|---|
| 63 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/attributes.h | 
|---|
| 64 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/BufferedFileReader.h | 
|---|
| 65 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/cxxforward.h | 
|---|
| 66 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/dupstr.h | 
|---|
| 67 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/gccver.h | 
|---|
| 68 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/smartptr.h | 
|---|
| 69 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_global.h | 
|---|
| 70 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_runtool.h | 
|---|
| 71 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_unit.h | 
|---|
| 72 | arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/ut_valgrinded.h | 
|---|