source: tags/svn.1.5.4/XML/Makefile

Last change on this file was 7623, checked in by westram, 14 years ago
  • merge from dev [7450] [7452] [7456] [7457] [7458] [7459] [7460] [7461] [7464] [7465] [7466] [7467] [7468] [7469] [7482]
    • tweaked compiler options
      • activated -Weffc++
        • postfilter warnings where Scott Meyers' advices are too general.
          • base classes should not always have virtual destructors, since that renders tiny classes useless and
          • members should not always be initialized via initialization list, since that often violates the DRY principle
        • fix gcc's inability to detect that Noncopyable implements a private copy-ctor and op=
        • this slows down complete ARB recompilation by ~5%
    • added -Wold-style-cast (inactive)
    • removed -Wno-non-template-friend added in [7447]
  • postcompile.pl
    • added option —original to show unmodified compiler output
  • declared op= for classes which had a copy-ctor
  • moved op= macros to arbtools.h
  • derived classes containing pointers from Noncopyable (use Noncopyable virtually) or
  • made them copyable if needed (awt_mask_item, KnownDB, Code, AWT_registered_itemtype, GEN_gene, PosGene, PartialSequence, PlugIn, Range, Convaln_exception)
  • other related changes
    • user mask destruction working now
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1# INCLUDE und GLOBALS MAIN CC cflags werden von aussen uebergeben
2
3.SUFFIXES: .o .cxx .depend
4
5
6CPP_OBJECTS = xml.o
7
8$(MAIN): $(CPP_OBJECTS)
9        $(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS)
10
11.cxx.o:
12        $(CPP) $(cflags) -c $< $(CPPINCLUDES) $(POST_COMPILE)
13
14clean:
15        rm -f $(CPP_OBJECTS) *.a
16
17DEPENDS = $(CPP_OBJECTS:.o=.depend)
18depends: $(DEPENDS)
19        @cat $(DEPENDS) | grep -v '^#' >>Makefile
20        @rm $(DEPENDS)
21$(DEPENDS): depend.init
22depend.init:
23        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
24.c.depend:
25        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
26.cxx.depend:
27        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
28
29# DO NOT DELETE
30
31# Do not add dependencies manually - use 'make depend' in $ARBHOME
32# For formatting issues see SOURCE_TOOLS/fix_depends.pl
33
34xml.o: xml.hxx
35xml.o: $(ARBHOME)/INCLUDE/arb_assert.h
36xml.o: $(ARBHOME)/INCLUDE/arb_core.h
37xml.o: $(ARBHOME)/INCLUDE/arbtools.h
38xml.o: $(ARBHOME)/INCLUDE/attributes.h
39xml.o: $(ARBHOME)/INCLUDE/dupstr.h
40xml.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the repository browser.