source: branches/port5/DBSERVER/Makefile

Last change on this file was 5872, checked in by westram, 16 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: 1.1 KB
Line 
1# INCLUDE und GLOBALS MAIN CC cflags werden von aussen uebergeben
2.SUFFIXES: .o .c .cxx .depend
3OBJECTS = db_server.o
4
5$(MAIN): $(OBJECTS)
6        $(LINK_STATIC_LIB) $(MAIN) $(OBJECTS)
7
8.cxx.o:
9        $(CPP) $(cflags) -c $< $(CPPINCLUDES)
10
11clean:
12        rm -f $(OBJECTS) *.a
13
14DEPENDS = $(OBJECTS:.o=.depend)
15depends: $(DEPENDS)
16        @cat $(DEPENDS) | grep -v '^#' >>Makefile
17        @rm $(DEPENDS)
18$(DEPENDS): depend.init
19depend.init:
20        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
21.c.depend:
22        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
23.cxx.depend:
24        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
25
26# DO NOT DELETE THIS LINE -- make depend depends on it.
27
28# Do not add dependencies manually - use 'make depend' in $ARBHOME
29# For formatting issues see SOURCE_TOOLS/fix_depends.pl
30
31db_server.o: $(ARBHOME)/INCLUDE/ad_k_prot.h
32db_server.o: $(ARBHOME)/INCLUDE/ad_prot.h
33db_server.o: $(ARBHOME)/INCLUDE/arb_assert.h
34db_server.o: $(ARBHOME)/INCLUDE/arbdb.h
35db_server.o: $(ARBHOME)/INCLUDE/arbdb_base.h
36db_server.o: $(ARBHOME)/INCLUDE/attributes.h
37db_server.o: $(ARBHOME)/INCLUDE/servercntrl.h
Note: See TracBrowser for help on using the repository browser.