source: branches/items/GDE/TREEPUZZLE/Makefile

Last change on this file was 13443, checked in by westram, 10 years ago
  • 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        $(A_CC) $(PUZZ_CFLAGS) -o $@ $(OBJECT) -lm
24
25src/%.o : src/%.c
26        $(A_CC) $(PUZZ_CFLAGS) -c -o $@ $< $(CC_INCLUDES) $(POST_COMPILE) $<
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 (from GDE)
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.