source: tags/arb_5.1/XML_IMPORT/IMP_TREE/Makefile

Last change on this file was 5872, checked in by westram, 15 years ago
  • Changed variable transfer to sub-makefiles
    • most variables are now exported via environment (using SOURCE_TOOLS/export2sub or AISC/export2sub)
    • only variables that contain different values for different sub-makefile-calls are passed by cl (e.g. cflags, MAIN)
    • changed flavour of exported variables (recursively expanded → simply expanded variables). Please use VAR := VALUE in Makefiles (not VAR = VALUE). See http://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors for details
  • removed/fixed all undefined variables in Makefiles (using 'make —warn-undefined-variables')
  • changed names of compile-logs generated in GDE subdir
  • added target 'xmlin' (broken, print warning)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 732 bytes
Line 
1# INCLUDE und GLOBALS MAIN CC cflags werden von aussen uebergeben
2
3.SUFFIXES: .o .cxx .depend
4
5CPP_OBJECTS = sax2Handler.o \
6                xmlParser.o \
7
8TARGET=$(ARBHOME)/bin/xml2newick
9
10$(MAIN): $(TARGET)
11
12$(TARGET) : $(CPP_OBJECTS)
13        $(LINK_EXECUTABLE) $@ $(CPP_OBJECTS)
14
15.cxx.o:
16        $(CPP) $(cflags) -c -o $@ $<  $(CPPINCLUDES)
17
18DEPENDS = $(CPP_OBJECTS:.o=.depend)
19depends: $(DEPENDS)
20        @cat $(DEPENDS) | grep -v '^#' >>Makefile
21        @rm $(DEPENDS)
22$(DEPENDS): depend.init
23depend.init:
24        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
25.c.depend:
26        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
27.cxx.depend:
28        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
29
30# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.