source: trunk/classes_chris_names/makefile@ 16

Last change on this file since 16 was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 10.2 KB
Line 
1# Makefile
2
3include ../make.inc
4
5DISTNAME = cwaudio-classes-$(VERSION)
6CC = icc
7
8LDFLAGS = -Ge- /Gm+ -G4 /ss -Gl /O+ -Oc+ -Ol- /Q+
9CFLAGS = -Ge- /Gm+ -G4 /ss -Gl /O+ -Oc+ -Ol- /Q+ /C
10LIBS = somtk.lib mmPM2.lib rexx.lib
11DEFS =
12
13MOREINC = ./include -I./inc
14CDIR = ./c
15IDLDIR = ./idl
16
17COMPILE = $(CC) -I $(MOREINC) $(CFLAGS) /Fo$@ $<
18
19AUD_SCCOMPILEC = sc -I $(IDLDIR)/idl_audio -I $(IDLDIR)/idl_mm -p -r -sc -d$(CDIR)/c_audio -maddstar -mnoint -S128000 -C128000 $<
20AUD_SCCOMPILEIH = sc -I $(IDLDIR)/idl_audio -I $(IDLDIR)/idl_mm -p -r -sih";"h -dinclude -maddstar -mnoint -S128000 -C128000 $<
21
22#Video
23VID_SCCOMPILEC = sc -I $(IDLDIR)/idl_video -p -r -sc -d$(CDIR)/c_video -maddstar -mnoint -S128000 -C128000 $<
24VID_SCCOMPILEIH = sc -I $(IDLDIR)/idl_video -p -r -sih";"h -dinclude -maddstar -mnoint -S128000 -C128000 $<
25
26#image
27IMG_SCCOMPILEC = sc -I $(IDLDIR)/idl_image -p -r -sc -d$(CDIR)/c_image -maddstar -mnoint -S128000 -C128000 $<
28IMG_SCCOMPILEIH = sc -I $(IDLDIR)/idl_image -p -r -sih";"h -dinclude -maddstar -mnoint -S128000 -C128000 $<
29
30#base classes
31MM_SCCOMPILEC = sc -I $(IDLDIR)/idl_mm -p -r -sc -d$(CDIR)/c_mm -maddstar -mnoint -S128000 -C128000 $<
32MM_SCCOMPILEIH = sc -I $(IDLDIR)/idl_mm -p -r -sih";"h -dinclude -maddstar -mnoint -S128000 -C128000 $<
33
34OBJECTS = ./obj/cwaudio.obj ./obj/cwmp3.obj ./obj/cwogg.obj ./obj/cwcdtrack.obj \
35 ./obj/mmwav.obj \
36 ./obj/cwaif.obj ./obj/cwau.obj \
37 ./obj/cw_au.obj ./obj/cwiff.obj \
38 ./obj/cwsndf.obj ./obj/cwvoc.obj \
39 ./obj/cwmidi.obj ./obj/cwastream.obj
40
41VID_OBJECTS = ./obj/cwvideo.obj ./obj/cwmpg.obj ./obj/cwmov.obj \
42 ./obj/cwfli.obj ./obj/cwavi.obj
43
44IMG_OBJECTS = ./obj/cwimage.obj \
45 ./obj/cwavc.obj ./obj/cwdib.obj ./obj/cwgif.obj \
46 ./obj/cwjpg.obj ./obj/cwpcd.obj ./obj/cwpcx.obj \
47 ./obj/cwtga.obj ./obj/cwtiff.obj ./obj/cwmmotion.obj ./obj/cwbmp.obj \
48 ./obj/bitmap.obj
49
50MM_OBJECTS = ./obj/cwmmdataf.obj ./obj/cwmmdisk.obj ./obj/mmfolder.obj
51
52COMMON_OBJECTS = ./obj/except.obj ./obj/message.obj ./obj/cd.obj ./obj/mmrexx.obj ./obj/helper.obj \
53 ./obj/som_and_wps.obj
54
55RESOBJ = ./Res/001/cwaudio.rc ./Res/001/cwaudio.dlg ./Res/001/cwvideo.rc \
56 ./Res/049/cwaudio049.rc ./Res/049/cwvideo049.rc ./Res/049/cwaudio049.dlg \
57 ./inc/cwmmres.h
58
59ALL_OBJECTS = $(MM_OBJECTS) $(OBJECTS) $(VID_OBJECTS) $(IMG_OBJECTS) \
60 $(COMMON_OBJECTS)
61
62MM_IHFILES = ./include/cwmmdataf.ih ./include/cwmmdisk.ih ./include/mmfolder.ih
63
64IHFILES = ./include/mmaudio.ih \
65 ./include/cwaudio.ih ./include/cwmp3.ih ./include/cwogg.ih \
66 ./include/cwcdtrack.ih \
67 ./include/mmwav.ih \
68 ./include/cwaif.ih ./include/cwau.ih ./include/cw_au.ih \
69 ./include/cwiff.ih ./include/cwsndf.ih ./include/cwvoc.ih \
70 ./include/cwmidi.ih ./include/cwastream.ih
71
72VID_IHFILES = ./include/cwvideo.ih ./include/cwmpg.ih ./include/cwmov.ih \
73 ./include/cwfli.ih ./include/cwavi.ih
74
75IMG_IHFILES = ./include/wpimage.ih ./include/cwimage.ih \
76 ./include/cwavc.ih ./include/cwdib.ih ./include/cwgif.ih \
77 ./include/cwjpg.ih ./include/cwpcd.ih ./include/cwpcx.ih \
78 ./include/cwtga.ih ./include/cwtiff.ih ./include/cwmmotion.ih ./include/cwbmp.ih
79
80all: cwmm.dll ./Help/049/cwmm049.hlp ./Help/001/cwmm.hlp
81# convert.exe
82
83.idl.ih:
84
85.c.obj:
86 $(CC) -I $(MOREINC) $(CFLAGS) /Fo$@ $<
87
88convert.exe: $(CDIR)\c\convert.c
89 gcc $< -los2me
90
91./Help/049/cwmm049.hlp:
92 cd ./Help/049 && make
93
94./Help/001/cwmm.hlp:
95 cd ./Help/001 && make
96
97cwmm.dll: $(MM_IHFILES) $(IHFILES) $(VID_IHFILES) $(IMG_IHFILES) \
98 $(ALL_OBJECTS) $(RESOBJ)
99 cd ./Res/001 && make
100 cd ./Res/049 && make
101 $(CC) $(LDFLAGS) /L /Fm$(basename $@) /Fe$@ $(ALL_OBJECTS) $(LIBS) ./c/cwmm.def
102 rc ./Res/049/cwaudio049.res cwmm.dll
103 MAPSYM $(basename $@)
104
105
106./include/cwmmdataf.ih: $(IDLDIR)/idl_mm/cwmmdataf.idl
107 $(MM_SCCOMPILEC)
108 $(MM_SCCOMPILEIH)
109
110./include/cwmmdisk.ih: $(IDLDIR)/idl_mm/cwmmdisk.idl
111 $(MM_SCCOMPILEC)
112 $(MM_SCCOMPILEIH)
113
114
115./include/mmfolder.ih: $(IDLDIR)/idl_mm/mmfolder.idl
116 $(MM_SCCOMPILEC)
117 $(MM_SCCOMPILEIH)
118
119./include/mmaudio.ih: $(IDLDIR)/idl_audio/mmaudio.idl
120 $(AUD_SCCOMPILEIH)
121
122./include/cwaudio.ih: $(IDLDIR)/idl_audio/cwaudio.idl
123 $(AUD_SCCOMPILEC)
124 $(AUD_SCCOMPILEIH)
125# sc -shh -I ./idl -dinclude -m noqualifytypes $<
126
127./include/cwcdtrack.ih: $(IDLDIR)/idl_audio/cwcdtrack.idl
128 $(AUD_SCCOMPILEC)
129 $(AUD_SCCOMPILEIH)
130# sc -shh -I ./idl -dinclude -m noqualifytypes $<
131
132./include/cwmp3.ih: $(IDLDIR)/idl_audio/cwmp3.idl
133 $(AUD_SCCOMPILEC)
134 $(AUD_SCCOMPILEIH)
135
136./include/cwogg.ih: $(IDLDIR)/idl_audio/cwogg.idl
137 $(AUD_SCCOMPILEC)
138 $(AUD_SCCOMPILEIH)
139
140./include/mmwav.ih: $(IDLDIR)/idl_audio/mmwav.idl
141 $(AUD_SCCOMPILEC)
142 $(AUD_SCCOMPILEIH)
143
144./include/cwaif.ih: $(IDLDIR)/idl_audio/cwaif.idl
145 $(AUD_SCCOMPILEC)
146 $(AUD_SCCOMPILEIH)
147
148./include/cwau.ih: $(IDLDIR)/idl_audio/cwau.idl
149 $(AUD_SCCOMPILEC)
150 $(AUD_SCCOMPILEIH)
151
152./include/cw_au.ih: $(IDLDIR)/idl_audio/cw_au.idl
153 $(AUD_SCCOMPILEC)
154 $(AUD_SCCOMPILEIH)
155
156./include/cwiff.ih: $(IDLDIR)/idl_audio/cwiff.idl
157 $(AUD_SCCOMPILEC)
158 $(AUD_SCCOMPILEIH)
159
160./include/cwsndf.ih: $(IDLDIR)/idl_audio/cwsndf.idl
161 $(AUD_SCCOMPILEC)
162 $(AUD_SCCOMPILEIH)
163
164./include/cwvoc.ih: $(IDLDIR)/idl_audio/cwvoc.idl
165 $(AUD_SCCOMPILEC)
166 $(AUD_SCCOMPILEIH)
167
168./include/cwmidi.ih: $(IDLDIR)/idl_audio/cwmidi.idl
169 $(AUD_SCCOMPILEC)
170 $(AUD_SCCOMPILEIH)
171
172./include/cwastream.ih: $(IDLDIR)/idl_audio/cwaudiostream.idl
173 $(AUD_SCCOMPILEC)
174 $(AUD_SCCOMPILEIH)
175
176
177./obj/cwmmdataf.obj: $(CDIR)/c_mm/cwmmdataf.c ./include/cwmmdataf.ih
178 $(COMPILE)
179
180./obj/cwmmdisk.obj: $(CDIR)/c_mm/cwmmdisk.c ./include/cwmmdisk.ih
181 $(COMPILE)
182
183./obj/mmfolder.obj: $(CDIR)/c_mm/mmfolder.c ./include/mmfolder.ih
184 $(COMPILE)
185
186./obj/cwaudio.obj: $(CDIR)/c_audio/cwaudio.c ./include/cwaudio.ih
187 $(COMPILE)
188
189./obj/cwmp3.obj: $(CDIR)/c_audio/cwmp3.c ./include/cwmp3.ih
190 $(COMPILE)
191
192./obj/cwogg.obj: $(CDIR)/c_audio/cwogg.c ./include/cwogg.ih
193 $(COMPILE)
194
195./obj/mmwav.obj: $(CDIR)/c_audio/mmwav.c ./include/mmwav.ih
196 $(COMPILE)
197
198./obj/cwaif.obj: $(CDIR)/c_audio/cwaif.c ./include/cwaif.ih
199 $(COMPILE)
200
201./obj/cwau.obj: $(CDIR)/c_audio/cwau.c ./include/cwau.ih
202 $(COMPILE)
203
204./obj/cw_au.obj: $(CDIR)/c_audio/cw_au.c ./include/cw_au.ih
205 $(COMPILE)
206
207./obj/cwiff.obj: $(CDIR)/c_audio/cwiff.c ./include/cwiff.ih
208 $(COMPILE)
209
210./obj/cwsndf.obj: $(CDIR)/c_audio/cwsndf.c ./include/cwsndf.ih
211 $(COMPILE)
212
213./obj/cwvoc.obj: $(CDIR)/c_audio/cwvoc.c ./include/cwvoc.ih
214 $(COMPILE)
215
216./obj/cwmidi.obj: $(CDIR)/c_audio/cwmidi.c ./include/cwmidi.ih
217 $(COMPILE)
218
219./obj/cwcdtrack.obj: $(CDIR)/c_audio/cwcdtrack.c ./include/cwcdtrack.ih
220 $(COMPILE)
221
222./obj/cwastream.obj: $(CDIR)/c_audio/cwastream.c ./include/cwastream.ih
223 $(COMPILE)
224
225
226./include/cwvideo.ih: $(IDLDIR)/idl_video/cwvideo.idl
227 $(VID_SCCOMPILEC)
228 $(VID_SCCOMPILEIH)
229
230./include/cwmpg.ih: $(IDLDIR)/idl_video/cwmpg.idl
231 $(VID_SCCOMPILEC)
232 $(VID_SCCOMPILEIH)
233
234./include/cwmov.ih: $(IDLDIR)/idl_video/cwmov.idl
235 $(VID_SCCOMPILEC)
236 $(VID_SCCOMPILEIH)
237
238./include/cwfli.ih: $(IDLDIR)/idl_video/cwfli.idl
239 $(VID_SCCOMPILEC)
240 $(VID_SCCOMPILEIH)
241
242./include/cwavi.ih: $(IDLDIR)/idl_video/cwavi.idl
243 $(VID_SCCOMPILEC)
244 $(VID_SCCOMPILEIH)
245
246./obj/cwvideo.obj: $(CDIR)/c_video/cwvideo.c ./include/cwvideo.ih
247 $(COMPILE)
248
249./obj/cwmpg.obj: $(CDIR)/c_video/cwmpg.c ./include/cwmpg.ih
250 $(COMPILE)
251
252./obj/cwmov.obj: $(CDIR)/c_video/cwmov.c ./include/cwmov.ih
253 $(COMPILE)
254
255./obj/cwfli.obj: $(CDIR)/c_video/cwfli.c ./include/cwfli.ih
256 $(COMPILE)
257
258./obj/cwavi.obj: $(CDIR)/c_video/cwavi.c ./include/cwavi.ih
259 $(COMPILE)
260
261
262
263./include/wpimage.ih: $(IDLDIR)/idl_image/wpimage.idl
264 $(IMG_SCCOMPILEIH)
265
266./include/cwimage.ih: $(IDLDIR)/idl_image/cwimage.idl
267 $(IMG_SCCOMPILEIH)
268 $(IMG_SCCOMPILEC)
269 sc -shh -I $(IDLDIR)/idl_image -dinclude -m noqualifytypes $<
270
271./include/cwavc.ih: $(IDLDIR)/idl_image/cwavc.idl
272 $(IMG_SCCOMPILEC)
273 $(IMG_SCCOMPILEIH)
274
275./include/cwdib.ih: $(IDLDIR)/idl_image/cwdib.idl
276 $(IMG_SCCOMPILEC)
277 $(IMG_SCCOMPILEIH)
278
279./include/cwgif.ih: $(IDLDIR)/idl_image/cwgif.idl
280 $(IMG_SCCOMPILEC)
281 $(IMG_SCCOMPILEIH)
282
283./include/cwjpg.ih: $(IDLDIR)/idl_image/cwjpg.idl
284 $(IMG_SCCOMPILEC)
285 $(IMG_SCCOMPILEIH)
286
287./include/cwpcd.ih: $(IDLDIR)/idl_image/cwpcd.idl
288 $(IMG_SCCOMPILEC)
289 $(IMG_SCCOMPILEIH)
290
291./include/cwpcx.ih: $(IDLDIR)/idl_image/cwpcx.idl
292 $(IMG_SCCOMPILEC)
293 $(IMG_SCCOMPILEIH)
294
295./include/cwtga.ih: $(IDLDIR)/idl_image/cwtga.idl
296 $(IMG_SCCOMPILEC)
297 $(IMG_SCCOMPILEIH)
298
299./include/cwtiff.ih: $(IDLDIR)/idl_image/cwtif.idl
300 $(IMG_SCCOMPILEC)
301 $(IMG_SCCOMPILEIH)
302
303./include/cwmmotion.ih: $(IDLDIR)/idl_image/cw_im.idl
304 $(IMG_SCCOMPILEC)
305 $(IMG_SCCOMPILEIH)
306
307./include/cwbmp.ih: $(IDLDIR)/idl_image/cwbmp.idl
308 $(IMG_SCCOMPILEC)
309 $(IMG_SCCOMPILEIH)
310
311./obj/cwimage.obj: $(CDIR)/c_image/cwimage.c ./include/cwimage.ih
312 $(COMPILE)
313
314./obj/cwavc.obj: $(CDIR)/c_image/cwavc.c ./include/cwavc.ih
315 $(COMPILE)
316
317./obj/cwdib.obj: $(CDIR)/c_image/cwdib.c ./include/cwdib.ih
318 $(COMPILE)
319
320./obj/cwgif.obj: $(CDIR)/c_image/cwgif.c ./include/cwgif.ih
321 $(COMPILE)
322
323./obj/cwjpg.obj: $(CDIR)/c_image/cwjpg.c ./include/cwjpg.ih
324 $(COMPILE)
325
326./obj/cwpcd.obj: $(CDIR)/c_image/cwpcd.c ./include/cwpcd.ih
327 $(COMPILE)
328
329./obj/cwpcx.obj: $(CDIR)/c_image/cwpcx.c ./include/cwpcx.ih
330 $(COMPILE)
331
332./obj/cwtga.obj: $(CDIR)/c_image/cwtga.c ./include/cwtga.ih
333 $(COMPILE)
334
335./obj/cwtiff.obj: $(CDIR)/c_image/cwtiff.c ./include/cwtiff.ih
336 $(COMPILE)
337
338./obj/cwmmotion.obj: $(CDIR)/c_image/cwmmotion.c ./include/cwmmotion.ih
339 $(COMPILE)
340
341./obj/cwbmp.obj: $(CDIR)/c_image/cwbmp.c ./include/cwbmp.ih
342 $(COMPILE)
343
344./obj/bitmap.obj: $(CDIR)/c_image/bitmap.c
345 $(COMPILE)
346
347./obj/except.obj: $(CDIR)/c_common/except.c ./inc/omf.h ./inc/sym.h
348 $(COMPILE)
349
350./obj/message.obj: $(CDIR)/c_common/message.c
351 $(COMPILE)
352
353./obj/cd.obj: $(CDIR)/c_common/cd.c
354 $(COMPILE)
355
356./obj/mmrexx.obj: $(CDIR)/c_common/mmrexx.c
357 $(COMPILE)
358
359./obj/helper.obj: $(CDIR)/c_common/helper.c
360 $(COMPILE)
361
362./obj/som_and_wps.obj: $(CDIR)/c_common/som_and_wps.c
363 $(COMPILE)
364
365clean:
366 cd ./obj && rm *.obj
367 -rm *.dll
368 -rm *.map
369 cd ./Res/049 && make clean
370 cd ./Res/001 && make clean
371 cd ./Help/049 && make clean
372 cd ./Help/049 && make clean
373
374
375cleaner:
376 -cd ./c && make clean
377
378german:
379
380english:
381
382distribution:
383 make
384 -make german
385 make english
386
387
Note: See TracBrowser for help on using the repository browser.