source: branches/port5/GDE/TREEPUZZLE/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.5 KB
Line 
1
2.SUFFIXES: .o .c .depend
3
4OBJECT =  \
5 src/gamma.o \
6 src/ml1.o \
7 src/ml2.o \
8 src/ml3.o \
9 src/model1.o \
10 src/model2.o \
11 src/puzzle1.o \
12 src/puzzle2.o \
13 src/sched.o \
14 src/util.o \
15
16# src/ppuzzle.o \
17
18BINARY=$(ARBHOME)/bin/puzzle
19
20PUZZ_CFLAGS = $(cflags) -DPACKAGE=\"tree-puzzle\" -DVERSION=\"5.0\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -Isrc
21
22$(BINARY): $(OBJECT)
23                $(ACC) $(PUZZ_CFLAGS) -o $@ $(OBJECT) -lm
24
25src/%.o : src/%.c
26        $(ACC) $(PUZZ_CFLAGS) -c -o $@ $< $(AINCLUDES)
27
28clean:
29        rm -f $(OBJECT) $(BINARY)
30
31DEPENDS = $(OBJECT:.o=.depend)
32depends: $(DEPENDS)
33        @cat $(DEPENDS) | grep -v '^#' >>Makefile
34        @rm $(DEPENDS)
35$(DEPENDS): depend.init
36depend.init:
37        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
38.c.depend:
39        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
40
41
42# DO NOT DELETE
43
44# Do not add dependencies manually - use 'make depend' in $ARBHOME
45# For formatting issues see SOURCE_TOOLS/fix_depends.pl
46
47src/gamma.o: src/gamma.h
48src/gamma.o: src/util.h
49
50src/ml1.o: src/ml.h
51src/ml1.o: src/util.h
52
53src/ml2.o: src/ml.h
54src/ml2.o: src/util.h
55
56src/ml3.o: src/gamma.h
57src/ml3.o: src/ml.h
58src/ml3.o: src/util.h
59
60src/model1.o: src/ml.h
61src/model1.o: src/util.h
62
63src/model2.o: src/ml.h
64src/model2.o: src/util.h
65
66src/puzzle1.o: src/gamma.h
67src/puzzle1.o: src/ml.h
68src/puzzle1.o: src/puzzle.h
69src/puzzle1.o: src/util.h
70
71src/puzzle2.o: src/ml.h
72src/puzzle2.o: src/puzzle.h
73src/puzzle2.o: src/util.h
74
75src/sched.o: src/sched.h
76src/sched.o: src/util.h
77
78src/util.o: src/util.h
Note: See TracBrowser for help on using the repository browser.