blob: 84a6329145d49dcee8460699832e52db6f7d81e8 (
plain)
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
|
## -*- Mode: Makefile -*-
##
## File: externals/moocow/extended/Makefile
## Author: Bryan Jurish <moocow@bbaw.de>
## Description: pd-extended makefile for moocow's externals
##
##======================================================================
## Variables
SUBDIRS = \
flite \
gfsm \
deque \
readdir \
weightmap \
pdstring \
sprinkler
##-- 'pdstring' and 'sprinkler' are already in 'flatspace' ... should they be moved here?
## -> 2008-08: removed any2string,string2any,pdstring from flatspace
##-- local variables
MOOCOW_DIR ?=$(shell pwd)
MOOCOW_BUILD ?=$(MOOCOW_DIR)/build.moo
MOOCOW_MFLAGS ?=DESTDIR=""
MOOCOW_BUILD_VERSION ?=2009-01-17
CONFIGURE_ARGS=\
CFLAGS="$(CFLAGS)" \
--with-pd-include="$(pd_src)/src" \
--with-pd-dir="$(MOOCOW_BUILD)" \
--disable-dependency-tracking
# --with-pd-extdir="$(MOOCOW_BUILD)/externs"
##-- defaults
CFLAGS ?= -g -O2
pd_src ?= $(CURDIR)/../../../pd
##======================================================================
## Rules: default
all: build.stamp
##======================================================================
## Rules: subdirectory: dummy
DUMMY_DIR ?=../dummy
DUMMY_CONFIGURE_ARGS ?=--disable-shared
dummy.autogen_stamp:
(cd $(DUMMY_DIR); sh ./autogen.sh) || true
touch $@
dummy.configure_stamp: dummy.autogen_stamp
(cd $(DUMMY_DIR); sh ./configure $(CONFIGURE_ARGS) $(DUMMY_CONFIGURE_ARGS); make clean) || true
touch $@
dummy.build_stamp: dummy.configure_stamp
$(MAKE) $(MOOCOW_MFLAGS) -C $(DUMMY_DIR) all install || true
touch $@
dummy.extclean:
rm -f dummy.autogen_stamp dummy.configure_stamp dummy.build_stamp
dummy.clean: dummy.extclean
$(MAKE) -C $(DUMMY_DIR) clean || true
dummy.distclean: dummy.extclean
$(MAKE) -C $(DUMMY_DIR) distclean || true
dummy.cvsclean: dummy.extclean
$(MAKE) -C $(DUMMY_DIR) cvsclean || true
##======================================================================
## Rules: subdirectory: flite
FLITE_DIR ?=../flite
#FLITE_CONFIGURE_ARGS ?=--with-flite-dir=/NOPE
#FLITE_CONFIGURE_ARGS ?=
flite.autogen_stamp:
(cd $(FLITE_DIR); sh ./autogen.sh) || true
touch $@
flite.configure_stamp: flite.autogen_stamp
(cd $(FLITE_DIR); sh ./configure $(CONFIGURE_ARGS) $(FLITE_CONFIGURE_ARGS); make clean) || true
touch $@
flite.build_stamp: flite.configure_stamp
$(MAKE) $(MOOCOW_MFLAGS) -C $(FLITE_DIR) all install || true
touch $@
flite.extclean:
rm -f flite.autogen_stamp flite.configure_stamp flite.build_stamp
flite.clean: flite.extclean
$(MAKE) -C $(FLITE_DIR) clean || true
flite.distclean: flite.extclean
$(MAKE) -C $(FLITE_DIR) distclean || true
flite.cvsclean: flite.extclean
$(MAKE) -C $(FLITE_DIR) cvsclean || true
##======================================================================
## Rules: subdirectory: gfsm
GFSM_DIR ?=../gfsm
#GFSM_CONFIGURE_ARGS ?=--disable-gfsm
#GFSM_CONFIGURE_ARGS ?=
gfsm.autogen_stamp:
# (cd $(GFSM_DIR); sh ./autogen.sh) || true
touch $@
gfsm.configure_stamp: gfsm.autogen_stamp
(cd $(GFSM_DIR); sh ./configure $(CONFIGURE_ARGS) $(GFSM_CONFIGURE_ARGS); make clean) || true
touch $@
gfsm.build_stamp: gfsm.configure_stamp
$(MAKE) $(MOOCOW_MFLAGS) -C $(GFSM_DIR) all install || true
touch $@
gfsm.extclean:
rm -f gfsm.autogen_stamp gfsm.configure_stamp gfsm.build_stamp
gfsm.clean: gfsm.extclean
$(MAKE) -C $(GFSM_DIR) clean || true
gfsm.distclean: gfsm.extclean
$(MAKE) -C $(GFSM_DIR) distclean || true
gfsm.cvsclean: gfsm.extclean
$(MAKE) -C $(GFSM_DIR) cvsclean || true
##======================================================================
## Rules: subdirectory: deque
DEQUE_DIR ?=../deque
DEQUE_CONFIGURE_ARGS ?=
deque.autogen_stamp:
(cd $(DEQUE_DIR); sh ./autogen.sh) || true
touch $@
deque.configure_stamp: deque.autogen_stamp
(cd $(DEQUE_DIR); sh ./configure $(CONFIGURE_ARGS) $(DEQUE_CONFIGURE_ARGS); make clean) || true
touch $@
deque.build_stamp: deque.configure_stamp
$(MAKE) $(MOOCOW_MFLAGS) -C $(DEQUE_DIR) all install || true
touch $@
deque.extclean:
rm -f deque.autogen_stamp deque.configure_stamp deque.build_stamp
deque.clean: deque.extclean
$(MAKE) -C $(DEQUE_DIR) clean || true
deque.distclean: deque.extclean
$(MAKE) -C $(DEQUE_DIR) distclean || true
deque.cvsclean: deque.extclean
$(MAKE) -C $(DEQUE_DIR) cvsclean || true
##======================================================================
## Rules: subdirectory: pdstring
PDSTRING_DIR ?=../pdstring
PDSTRING_CONFIGURE_ARGS ?=--enable-object-externals
pdstring.autogen_stamp:
# (cd $(PDSTRING_DIR); sh ./autogen.sh) || true
touch $@
pdstring.configure_stamp: pdstring.autogen_stamp
(cd $(PDSTRING_DIR); sh ./configure $(CONFIGURE_ARGS) $(PDSTRING_CONFIGURE_ARGS); make clean) || true
touch $@
pdstring.build_stamp: pdstring.configure_stamp
$(MAKE) $(MOOCOW_MFLAGS) -C $(PDSTRING_DIR) all install || true
touch $@
pdstring.extclean:
rm -f pdstring.autogen_stamp pdstring.configure_stamp pdstring.build_stamp
pdstring.clean: pdstring.extclean
$(MAKE) -C $(PDSTRING_DIR) clean || true
pdstring.distclean: pdstring.extclean
$(MAKE) -C $(PDSTRING_DIR) distclean || true
pdstring.cvsclean: pdstring.extclean
$(MAKE) -C $(PDSTRING_DIR) cvsclean || true
##======================================================================
## Rules: subdirectory: readdir
READDIR_DIR ?=../readdir
READDIR_CONFIGURE_ARGS ?=
readdir.autogen_stamp:
(cd $(READDIR_DIR); sh ./autogen.sh) || true
touch $@
readdir.configure_stamp: readdir.autogen_stamp
(cd $(READDIR_DIR); sh ./configure $(CONFIGURE_ARGS) $(READDIR_CONFIGURE_ARGS); make clean) || true
touch $@
readdir.build_stamp: readdir.configure_stamp
$(MAKE) $(MOOCOW_MFLAGS) -C $(READDIR_DIR) all install || true
touch $@
readdir.extclean:
rm -f readdir.autogen_stamp readdir.configure_stamp readdir.build_stamp
readdir.clean: readdir.extclean
$(MAKE) -C $(READDIR_DIR) clean || true
readdir.distclean: readdir.extclean
$(MAKE) -C $(READDIR_DIR) distclean || true
readdir.cvsclean: readdir.extclean
$(MAKE) -C $(READDIR_DIR) cvsclean || true
##======================================================================
## Rules: subdirectory: sprinkler
## + one directory higher in the tree than usual...
SPRINKLER_DIR ?=../../sprinkler
SPRINKLER_CONFIGURE_ARGS ?=
sprinkler.autogen_stamp:
(cd $(SPRINKLER_DIR); sh ./autogen.sh) || true
touch $@
sprinkler.configure_stamp: sprinkler.autogen_stamp
(cd $(SPRINKLER_DIR); sh ./configure $(CONFIGURE_ARGS) $(SPRINKLER_CONFIGURE_ARGS); make clean) || true
touch $@
sprinkler.build_stamp: sprinkler.configure_stamp
$(MAKE) $(MOOCOW_MFLAGS) -C $(SPRINKLER_DIR) all install || true
touch $@
sprinkler.extclean:
rm -f sprinkler.autogen_stamp sprinkler.configure_stamp sprinkler.build_stamp
sprinkler.clean: sprinkler.extclean
$(MAKE) -C $(SPRINKLER_DIR) clean || true
sprinkler.distclean: sprinkler.extclean
$(MAKE) -C $(SPRINKLER_DIR) distclean || true
sprinkler.cvsclean: sprinkler.extclean
$(MAKE) -C $(SPRINKLER_DIR) cvsclean || true
##======================================================================
## Rules: subdirectory: weightmap
WEIGHTMAP_DIR ?=../weightmap
WEIGHTMAP_CONFIGURE_ARGS ?=
weightmap.autogen_stamp:
(cd $(WEIGHTMAP_DIR); sh ./autogen.sh) || true
touch $@
weightmap.configure_stamp: weightmap.autogen_stamp
(cd $(WEIGHTMAP_DIR); sh ./configure $(CONFIGURE_ARGS) $(WEIGHTMAP_CONFIGURE_ARGS); make clean) || true
touch $@
weightmap.build_stamp: weightmap.configure_stamp
$(MAKE) $(MOOCOW_MFLAGS) -C $(WEIGHTMAP_DIR) all install || true
touch $@
weightmap.extclean:
rm -f weightmap.autogen_stamp weightmap.configure_stamp weightmap.build_stamp
weightmap.clean: weightmap.extclean
$(MAKE) -C $(WEIGHTMAP_DIR) clean || true
weightmap.distclean: weightmap.extclean
$(MAKE) -C $(WEIGHTMAP_DIR) distclean || true
weightmap.cvsclean: weightmap.extclean
$(MAKE) -C $(WEIGHTMAP_DIR) cvsclean || true
##======================================================================
## Rules: local
autogen: $(SUBDIRS:=.autogen_stamp)
configure: $(SUBDIRS:=.configure_stamp)
config:
@echo "(moocow:debug) MOOCOW_BUILD_VERSION=$(MOOCOW_BUILD_VERSION)"
build.stamp: config $(SUBDIRS:=.build_stamp)
rm -rf $(MOOCOW_BUILD)/noinstall
touch $@
readme: README.txt
README.txt: README.pod
pod2text README.pod $@
extclean: $(SUBDIRS:=.extclean)
clean: $(SUBDIRS:=.clean)
rm -f build.stamp config.log
rm -rf $(MOOCOW_BUILD)
realclean: distclean
distclean: $(SUBDIRS:=.distclean) clean
cvsclean: $(SUBDIRS:=.cvsclean) clean
|