source: tags/svn.1.5.4/PERLTOOLS/Makefile

Last change on this file was 7781, checked in by westram, 14 years ago
  • separate arb_proto_2_xsub from TOOLS
    • goal is to separate 'make perl' AFAP from rest (since it consumes ~40% of compilation time here)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1.SUFFIXES: .c .cxx .depend .o
2
3TOOLS := \
4        arb_proto_2_xsub \
5
6LIB_ARBDB            := $(LIBPATH) $(ARBDB_LIB)
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)
10LIBS_ARB_PROTO_2_XSUB:= ../SL/FILE_BUFFER/FILE_BUFFER.a
11
12OBJECTS:=$(addsuffix .o,$(TOOLS))
13BINARIES:=$(addprefix $(ARBHOME)/bin/,$(TOOLS))
14
15all: $(BINARIES)
16
17%.o: %.cxx
18        $(CPP) $(cflags) -c $< $(CPPINCLUDES) $(POST_COMPILE)
19
20%.o: %.c
21        $(ACC) $(cflags) -c $< $(CPPINCLUDES) $(POST_COMPILE)
22
23$(ARBHOME)/bin/arb_proto_2_xsub: arb_proto_2_xsub.o  $(LIBS_ARB_PROTO_2_XSUB)
24        $(LINK_EXECUTABLE) $@ $< $(LIBS_ARB_PROTO_2_XSUB) $(LIB_ARBDB) $(EXECLIBS)
25
26$(ARBHOME)/bin/%: %.o
27        $(LINK_EXECUTABLE) $@ $< $(LIB_ARBDB) $(EXECLIBS)
28
29clean:
30        rm -f $(BINARIES)
31        rm -f $(OBJECTS)
32
33proto:
34        @echo "Nothing todo for proto in PERLTOOLS"
35
36depends:
37        $(MAKE) "DEBUG=1" depends_debug
38
39DEPENDS = $(OBJECTS:.o=.depend)
40depends_debug: $(DEPENDS) 
41        @cat $(DEPENDS) | grep -v '^#' >>Makefile
42        @rm $(DEPENDS)
43$(DEPENDS): depend.init
44depend.init:
45        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
46.cxx.depend:
47        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
48.c.depend:
49        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
50
51# DO NOT DELETE
52
53# Do not add dependencies manually - use 'make depend' in $ARBHOME
54# For formatting issues see SOURCE_TOOLS/fix_depends.pl
55
56arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/ad_prot.h
57arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_assert.h
58arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_core.h
59arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_error.h
60arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_msg.h
61arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_strbuf.h
62arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arb_string.h
63arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbdb.h
64arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbdb_base.h
65arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/arbtools.h
66arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/attributes.h
67arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/dupstr.h
68arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/FileBuffer.h
69arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/smartptr.h
70arb_proto_2_xsub.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the repository browser.