File: Makefile.am

package info (click to toggle)
tree-puzzle 5.2-11
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,376 kB
  • sloc: ansic: 45,111; sh: 3,366; makefile: 243
file content (192 lines) | stat: -rw-r--r-- 9,267 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#
#  Makefile.am
#
# 
#  Part of TREE-PUZZLE 5.2 (July 2004)
#
#  (c) 2003-2004 by Heiko A. Schmidt, Korbinian Strimmer, and Arndt von Haeseler
#  (c) 1999-2003 by Heiko A. Schmidt, Korbinian Strimmer,
#                   M. Vingron, and Arndt von Haeseler
#  (c) 1995-1999 by Korbinian Strimmer and Arndt von Haeseler
#
#  All parts of the source except where indicated are distributed under
#  the GNU public licence.  See http://www.opensource.org for details.
#
#  ($Id$)
#

SUBDIRS = sprng
bin_PROGRAMS = puzzle @PPUZZLE@
EXTRA_PROGRAMS = ppuzzle
EXTRA_DIST = \
   pstep-deglob.c\
   pstep-deglob.h\
   pstep-mrca.c\
   pstep-mrca.h\
   pstep-orig.c\
   pstep-orig.h\
   pstep-recursive.c\
   pstep-recursive.h\
   split.c \
   recur.c \
   recur-old.c \
   mrca.c \
   pstep-split.c\
   pstep-split.h\
   subsetmatr.c\
   subsetmatr.h\
   pstep-trueID.c\
   pstep-trueID.h

SPRNG_OBJ = makeseed.$(OBJEXT) store.$(OBJEXT) memory.$(OBJEXT) checkid.$(OBJEXT) lcg64.$(OBJEXT) primes-lcg64.$(OBJEXT) 
SPRNG_DIR_OBJ = sprng/makeseed.$(OBJEXT) sprng/store.$(OBJEXT) sprng/memory.$(OBJEXT) sprng/checkid.$(OBJEXT) sprng/lcg64.$(OBJEXT) sprng/primes-lcg64.$(OBJEXT) 
#SPRNG_OBJ = sprng/makeseed.$(OBJEXT) sprng/store.$(OBJEXT) sprng/memory.$(OBJEXT) sprng/checkid.$(OBJEXT) sprng/lcg64.$(OBJEXT) sprng/primes-lcg64.$(OBJEXT) 

#SPRNG_LFG_SRCS = sprng/lfg.c sprng/interface.h sprng/makeseed.c sprng/memory.c sprng/checkid.c sprng/store.c
#SPRNG_LFG_OBJS = sprng/lfg.$(OBJEXT) sprng/makeseed.$(OBJEXT) sprng/memory.$(OBJEXT) sprng/checkid.$(OBJEXT) sprng/store.$(OBJEXT)
#SPRNG_MLFG_SRCS = sprng/mlfg.c sprng/interface.h sprng/makeseed.c sprng/memory.c sprng/checkid.c sprng/store.c sprng/int64.h
#SPRNG_MLFG_OBJS = sprng/mlfg.$(OBJEXT) sprng/makeseed.$(OBJEXT) sprng/memory.$(OBJEXT) sprng/checkid.$(OBJEXT) sprng/store.$(OBJEXT)
#SPRNG_LCG_SRCS = sprng/lcg.c sprng/interface.h sprng/primes-lcg.c sprng/makeseed.c sprng/memory.c sprng/checkid.c sprng/store.c
#SPRNG_LCG_OBJS = sprng/lcg.$(OBJEXT) sprng/primes-lcg.$(OBJEXT) sprng/makeseed.$(OBJEXT) sprng/memory.$(OBJEXT) sprng/checkid.$(OBJEXT) sprng/store.$(OBJEXT)
#SPRNG_CMRG_SRCS = sprng/lcg64.c sprng/interface.h sprng/primes-lcg64.c sprng/makeseed.c sprng/memory.c sprng/checkid.c sprng/store.c
#SPRNG_CMRG_OBJS = sprng/lcg64.$(OBJEXT) sprng/primes-lcg64.$(OBJEXT) sprng/makeseed.$(OBJEXT) sprng/memory.$(OBJEXT) sprng/checkid.$(OBJEXT) sprng/store.$(OBJEXT)
#SPRNG_LCG64_SRCS = sprng/lcg64.c sprng/interface.h sprng/primes-lcg64.c sprng/makeseed.c sprng/memory.c sprng/checkid.c sprng/store.c
#SPRNG_LCG64_OBJS = sprng/lcg64.$(OBJEXT) sprng/primes-lcg64.$(OBJEXT) sprng/makeseed.$(OBJEXT) sprng/memory.$(OBJEXT) sprng/checkid.$(OBJEXT) sprng/store.$(OBJEXT)


puzzle_SOURCES = gamma.c ml1.c ml2.c mlparam.c model1.c model2.c puzzle1.c puzzle2.c pstep.c util.c consensus.c treesort.c treetest.c ml.h util.h puzzle.h pstep.h gamma.h consensus.h treesort.h treetest.h
#puzzle_LDADD = sgamma.o sml1.o sml2.o smlparam.o smodel1.o smodel2.o spuzzle1.o spuzzle2.o spstep.o sutil.o sconsensus.o streesort.o sprng/liblcg64.a
puzzle_LDADD = sgamma.$(OBJEXT) sml1.$(OBJEXT) sml2.$(OBJEXT) smlparam.$(OBJEXT) smodel1.$(OBJEXT) smodel2.$(OBJEXT) spuzzle1.$(OBJEXT) spuzzle2.$(OBJEXT) spstep.$(OBJEXT) sutil.$(OBJEXT) sconsensus.$(OBJEXT) streesort.$(OBJEXT) streetest.$(OBJEXT) 

INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/sprng 
SDEFS =
SCFLAGS = 
SLDFLAGS = 
SLDLIBS = @LIBS@

SCOMPILE = $(CC) $(SDEFS) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(SCFLAGS) $(CFLAGS) 
SCCLD = $(CC)
SLINK = $(SCCLD) $(AM_CFLAGS) $(CFLAGS) $(SLDFLAGS) $(LDFLAGS)

ppuzzle_SOURCES = gamma.c ml1.c ml2.c mlparam.c model1.c model2.c puzzle1.c puzzle2.c pstep.c sched.c util.c consensus.c treesort.c treetest.c ppuzzle.c ml.h util.h puzzle.h pstep.h gamma.h ppuzzle.h sched.h consensus.h treesort.h treetest.h 
ppuzzle_LDADD = pgamma.$(OBJEXT) pml1.$(OBJEXT) pml2.$(OBJEXT) pmlparam.$(OBJEXT) pmodel1.$(OBJEXT) pmodel2.$(OBJEXT) ppuzzle1.$(OBJEXT) ppuzzle2.$(OBJEXT) ppstep.$(OBJEXT) psched.$(OBJEXT) putil.$(OBJEXT) pconsensus.$(OBJEXT) ptreesort.$(OBJEXT)  ptreetest.$(OBJEXT) ppuzzle.$(OBJEXT)

PCC = @MPICC@
PDEFS = -DPARALLEL
PCFLAGS = 
PLDFLAGS = 
PLDLIBS = @LIBS@ @MPILIBS@

PCOMPILE = $(PCC) $(PDEFS) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(PCFLAGS) $(CFLAGS) 
PCCLD = $(PCC)
PLINK = $(PCCLD) $(AM_CFLAGS) $(PCFLAGS) $(CFLAGS) $(PLDFLAGS) $(LDFLAGS)


make-sprng-objs:
	cd sprng && $(MAKE) $(SPRNG_OBJ)

 
puzzle$(EXEEXT): $(puzzle_LDADD) $(puzzle_SOURCES) make-sprng-objs Makefile
	$(SLINK) $(puzzle_LDADD) $(SPRNG_DIR_OBJ) $(SLDLIBS) -o $@

sml1.$(OBJEXT): ml1.c ml.h util.h Makefile
	$(SCOMPILE) -c $(srcdir)/ml1.c && mv ml1.$(OBJEXT) $@
sml2.$(OBJEXT): ml2.c ml.h util.h Makefile
	$(SCOMPILE) -c $(srcdir)/ml2.c && mv ml2.$(OBJEXT) $@
smlparam.$(OBJEXT): mlparam.c ml.h util.h gamma.h Makefile
	$(SCOMPILE) -c $(srcdir)/mlparam.c && mv mlparam.$(OBJEXT) $@
smodel1.$(OBJEXT): model1.c ml.h util.h Makefile
	$(SCOMPILE) -c $(srcdir)/model1.c && mv model1.$(OBJEXT) $@
smodel2.$(OBJEXT): model2.c ml.h util.h Makefile
	$(SCOMPILE) -c $(srcdir)/model2.c && mv model2.$(OBJEXT) $@
spuzzle1.$(OBJEXT): puzzle1.c ml.h util.h puzzle.h gamma.h ppuzzle.h Makefile
	$(SCOMPILE) -c $(srcdir)/puzzle1.c && mv puzzle1.$(OBJEXT) $@
spuzzle2.$(OBJEXT): puzzle2.c ml.h util.h puzzle.h ppuzzle.h Makefile
	$(SCOMPILE) -c $(srcdir)/puzzle2.c && mv puzzle2.$(OBJEXT) $@
spstep.$(OBJEXT): pstep.c ml.h util.h puzzle.h ppuzzle.h Makefile
	$(SCOMPILE) -c $(srcdir)/pstep.c && mv pstep.$(OBJEXT) $@
sutil.$(OBJEXT): util.c util.h Makefile
	$(SCOMPILE) -c $(srcdir)/util.c && mv util.$(OBJEXT) $@
sgamma.$(OBJEXT): gamma.c gamma.h util.h Makefile
	$(SCOMPILE) -c $(srcdir)/gamma.c && mv gamma.$(OBJEXT) $@
sconsensus.$(OBJEXT): consensus.c consensus.h util.h Makefile
	$(SCOMPILE) -c $(srcdir)/consensus.c && mv consensus.$(OBJEXT) $@
streesort.$(OBJEXT): treesort.c treesort.h util.h Makefile
	$(SCOMPILE) -c $(srcdir)/treesort.c && mv treesort.$(OBJEXT) $@
streetest.$(OBJEXT): treetest.c treetest.h util.h Makefile
	$(SCOMPILE) -c $(srcdir)/treetest.c && mv treetest.$(OBJEXT) $@

#
#SPRNG
#


## sprng/makeseed.$(OBJEXT) : sprng/makeseed.c
## 	$(CC) -c $(CFLAGS) sprng/makeseed.c
## 
## sprng/store.$(OBJEXT) : sprng/store.c sprng/store.h
## 	$(CC) -c $(CFLAGS) sprng/store.c
## 
## sprng/memory.$(OBJEXT) : sprng/memory.c
## 	$(CC) -c $(CFLAGS) sprng/memory.c
## 
## sprng/checkid.$(OBJEXT) : sprng/checkid.c sprng/memory.h
## 	$(CC) -c $(CFLAGS) sprng/checkid.c
## 
## sprng/lcg64.$(OBJEXT) : sprng/interface.h sprng/lcg64.c sprng/memory.h  sprng/primes.h  sprng/multiply.h sprng/store.h
## 	$(CC) -c $(CFLAGS) $(FFXN) $(INLINEOPT) lcg64.c 
## 
## sprng/primes-lcg64.$(OBJEXT) : sprng/primes-lcg64.h sprng/primes-lcg64.c sprng/primelist-lcg64.h
## 	$(CC) -c $(CFLAGS) primes-lcg64.c 
## 
## #sprng/lcg64.a:
## #	$(CD) sprng; $(make)
## 
## #sprng.h:
## #	$(CP) $(srcdir)/sprng-1.0/include/sprng.h $@
## #interface.h:
## #	$(CP) $(srcdir)/sprng-1.0/include/interface.h $@
## #slcg64.o : interface.h lcg64.c  memory.h  primes.h multiply.h store.h
## #	$(SCOMPILE) -c $(srcdir)/lcg64.c && mv lcg64.o $@
## #plcg64.o : interface.h lcg64.c  memory.h  primes.h multiply.h store.h
## #	$(SCOMPILE) -c $(srcdir)/lcg64.c && mv lcg64.o $@
## #
## #primes.o : primes.h primes.c
## #	$(CC) -c $(CFLAGS) primes.c -I$(SRCDIR)



ppuzzle$(EXEEXT): $(ppuzzle_LDADD) $(ppuzzle_SOURCES) make-sprng-objs Makefile
	$(PLINK) $(ppuzzle_LDADD) $(SPRNG_DIR_OBJ) $(PLDLIBS) -o $@

pml1.$(OBJEXT): ml1.c ml.h util.h Makefile
	$(PCOMPILE) -c $(srcdir)/ml1.c && mv ml1.$(OBJEXT) $@
pml2.$(OBJEXT): ml2.c ml.h util.h Makefile
	$(PCOMPILE) -c $(srcdir)/ml2.c && mv ml2.$(OBJEXT) $@
pmlparam.$(OBJEXT): mlparam.c ml.h util.h gamma.h Makefile
	$(PCOMPILE) -c $(srcdir)/mlparam.c && mv mlparam.$(OBJEXT) $@
pmodel1.$(OBJEXT): model1.c ml.h util.h Makefile
	$(PCOMPILE) -c $(srcdir)/model1.c && mv model1.$(OBJEXT) $@
pmodel2.$(OBJEXT): model2.c ml.h util.h Makefile
	$(PCOMPILE) -c $(srcdir)/model2.c && mv model2.$(OBJEXT) $@
ppuzzle1.$(OBJEXT): puzzle1.c ml.h util.h puzzle.h gamma.h ppuzzle.h Makefile
	$(PCOMPILE) -c $(srcdir)/puzzle1.c && mv puzzle1.$(OBJEXT) $@
ppuzzle2.$(OBJEXT): puzzle2.c ml.h util.h puzzle.h ppuzzle.h Makefile
	$(PCOMPILE) -c $(srcdir)/puzzle2.c && mv puzzle2.$(OBJEXT) $@
ppstep.$(OBJEXT): pstep.c ml.h util.h puzzle.h ppuzzle.h Makefile
	$(PCOMPILE) -c $(srcdir)/pstep.c && mv pstep.$(OBJEXT) $@
putil.$(OBJEXT): util.c util.h Makefile
	$(PCOMPILE) -c $(srcdir)/util.c && mv util.$(OBJEXT) $@
pgamma.$(OBJEXT): gamma.c gamma.h util.h Makefile
	$(PCOMPILE) -c $(srcdir)/gamma.c && mv gamma.$(OBJEXT) $@
pconsensus.$(OBJEXT): consensus.c consensus.h util.h Makefile
	$(PCOMPILE) -c $(srcdir)/consensus.c && mv consensus.$(OBJEXT) $@
ptreesort.$(OBJEXT): treesort.c treesort.h util.h Makefile
	$(PCOMPILE) -c $(srcdir)/treesort.c && mv treesort.$(OBJEXT) $@
ptreetest.$(OBJEXT): treetest.c treetest.h util.h Makefile
	$(PCOMPILE) -c $(srcdir)/treetest.c && mv treetest.$(OBJEXT) $@
psched.$(OBJEXT): sched.c sched.h ppuzzle.h  Makefile
	$(PCOMPILE) -c $(srcdir)/sched.c && mv sched.$(OBJEXT) $@
ppuzzle.$(OBJEXT): ppuzzle.c ppuzzle.h ml.h util.h puzzle.h gamma.h sched.h Makefile
	$(PCOMPILE) -c $(srcdir)/ppuzzle.c