source: branches/port5/GDE/SUPPORT/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: 847 bytes
Line 
1.SUFFIXES: .o .c .depend
2
3OBJECT =  CAP2.o Restriction.o Zuk_to_gen.o count.o findall.o lsadt.o \
4        sho_helix.o varpos.o
5
6BINARIES=$(OBJECT:%.o=$(ARBHOME)/bin/%)
7
8all: $(BINARIES)
9
10$(ARBHOME)/bin/%: %.c
11        $(ACC) $(cflags) -o $@ $< $(AINCLUDES) -lm
12
13clean:
14        rm -f $(BINARIES)
15
16DEPENDS = $(OBJECT:.o=.depend)
17depends: $(DEPENDS)
18        @cat $(DEPENDS) | grep -v '^#' >>Makefile
19        @rm $(DEPENDS)
20$(DEPENDS): depend.init
21depend.init:
22        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
23.c.depend:
24        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
25
26
27# DO NOT DELETE THIS LINE -- make depend depends on it.
28
29# Do not add dependencies manually - use 'make depend' in $ARBHOME
30# For formatting issues see SOURCE_TOOLS/fix_depends.pl
31
32count.o: Flatio.c
33
34findall.o: Flatio.c
35
36Restriction.o: Flatio.c
37
38sho_helix.o: Flatio.c
39
40varpos.o: Flatio.c
Note: See TracBrowser for help on using the repository browser.