source: tags/svn.1.5.4/AISC_MKPTPS/Makefile

Last change on this file was 8246, checked in by westram, 14 years ago
  • eliminated several main()'s from lib/obj-code
    • replaced by ARB_main
    • link executable with wrapper-object (main→ARB_main)
  • unit-tests now use their own main()
    • this ensures that all static data is initialized when the unit-test starts (previous behavior was working, but undefined)
    • all tests pass (versus [8243])
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1# INCLUDE und GLOBALS MAIN CC cflags werden von aussen uebergeben
2
3.SUFFIXES: .o .cxx .depend
4
5OBJECTS = mkptypes.o
6BINARY = aisc_mkpt
7
8$(MAIN): $(BINARY)
9
10$(BINARY): $(OBJECTS)
11        $(LINK_EXECUTABLE) $@ $(use_ARB_main) $(OBJECTS) $(EXECLIBS)
12
13.cxx.o:
14        $(CPP) $(cflags) -c $< $(CPPINCLUDES) $(POST_COMPILE)
15
16clean:
17        rm -f $(OBJECTS) $(BINARY)
18
19#depends:
20#       @echo "No depends here"
21
22DEPENDS = $(OBJECTS:.o=.depend)
23depends: $(DEPENDS)
24        @cat $(DEPENDS) | grep -v '^#' >>Makefile
25        @rm $(DEPENDS)
26$(DEPENDS): depend.init
27depend.init:
28        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
29.cxx.depend:
30        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
31
32
33# DO NOT DELETE THIS LINE -- make depend depends on it.
34
35# Do not add dependencies manually - use 'make depend' in $ARBHOME
36# For formatting issues see SOURCE_TOOLS/fix_depends.pl
37
38mkptypes.o: $(ARBHOME)/INCLUDE/arb_assert.h
39mkptypes.o: $(ARBHOME)/INCLUDE/arbtools.h
40mkptypes.o: $(ARBHOME)/INCLUDE/attributes.h
41mkptypes.o: $(ARBHOME)/INCLUDE/dupstr.h
42mkptypes.o: $(ARBHOME)/INCLUDE/test_global.h
43mkptypes.o: $(ARBHOME)/INCLUDE/test_unit.h
Note: See TracBrowser for help on using the repository browser.