Imported from antiword-0.37.tar.gz.
[antiword.git] / Makefile.lcc-win32
blob54792e6505ff365de4fdce335d87c8105402919a
1 # Wedit Makefile for project antiword
2 SRCDIR=.
3 CFLAGS=-I. -DNDEBUG  -g2 
4 CC=$(LCCROOT)\bin\lcc.exe
5 LINKER=$(LCCROOT)\bin\lcclnk.exe
6 OBJS=\
7         asc85enc.obj \
8         blocklist.obj \
9         chartrans.obj \
10         datalist.obj \
11         depot.obj \
12         dib2eps.obj \
13         doclist.obj \
14         fail.obj \
15         finddata.obj \
16         findtext.obj \
17         fmt_text.obj \
18         fontlist.obj \
19         fonts.obj \
20         fonts_u.obj \
21         hdrftrlist.obj \
22         imgexam.obj \
23         imgtrans.obj \
24         jpeg2eps.obj \
25         listlist.obj \
26         main_u.obj \
27         misc.obj \
28         notes.obj \
29         options.obj \
30         out2window.obj \
31         output.obj \
32         pdf.obj \
33         pictlist.obj \
34         png2eps.obj \
35         postscript.obj \
36         prop0.obj \
37         prop2.obj \
38         prop6.obj \
39         prop8.obj \
40         properties.obj \
41         propmod.obj \
42         rowlist.obj \
43         sectlist.obj \
44         stylelist.obj \
45         stylesheet.obj \
46         summary.obj \
47         tabstop.obj \
48         text.obj \
49         unix.obj \
50         utf8.obj \
51         word2text.obj \
52         worddos.obj \
53         wordlib.obj \
54         wordmac.obj \
55         wordole.obj \
56         wordwin.obj \
57         xmalloc.obj \
58         xml.obj
60 LIBS=
61 EXE=antiword.exe
63 $(EXE): $(OBJS) Makefile
64         $(LINKER)  -s -subsystem console -o $(SRCDIR)\antiword.exe $(OBJS) $(LIBS)
66 # Build asc85enc.c
67 ASC85ENC_C=\
68         $(SRCDIR)\antiword.h\
69         $(SRCDIR)\wordconst.h\
70         $(SRCDIR)\wordtypes.h\
71         $(SRCDIR)\fail.h\
72         $(SRCDIR)\debug.h\
74 asc85enc.obj: $(ASC85ENC_C) $(SRCDIR)\asc85enc.c
75         $(CC) -c $(CFLAGS) $(SRCDIR)\asc85enc.c
77 # Build blocklist.c
78 BLOCKLIST_C=\
79         $(SRCDIR)\antiword.h\
80         $(SRCDIR)\wordconst.h\
81         $(SRCDIR)\wordtypes.h\
82         $(SRCDIR)\fail.h\
83         $(SRCDIR)\debug.h\
85 blocklist.obj: $(BLOCKLIST_C) $(SRCDIR)\blocklist.c
86         $(CC) -c $(CFLAGS) $(SRCDIR)\blocklist.c
88 # Build chartrans.c
89 CHARTRANS_C=\
90         $(SRCDIR)\antiword.h\
91         $(SRCDIR)\wordconst.h\
92         $(SRCDIR)\wordtypes.h\
93         $(SRCDIR)\fail.h\
94         $(SRCDIR)\debug.h\
96 chartrans.obj: $(CHARTRANS_C) $(SRCDIR)\chartrans.c
97         $(CC) -c $(CFLAGS) $(SRCDIR)\chartrans.c
99 # Build datalist.c
100 DATALIST_C=\
101         $(SRCDIR)\antiword.h\
102         $(SRCDIR)\wordconst.h\
103         $(SRCDIR)\wordtypes.h\
104         $(SRCDIR)\fail.h\
105         $(SRCDIR)\debug.h\
107 datalist.obj: $(DATALIST_C) $(SRCDIR)\datalist.c
108         $(CC) -c $(CFLAGS) $(SRCDIR)\datalist.c
110 # Build depot.c
111 DEPOT_C=\
112         $(SRCDIR)\antiword.h\
113         $(SRCDIR)\wordconst.h\
114         $(SRCDIR)\wordtypes.h\
115         $(SRCDIR)\fail.h\
116         $(SRCDIR)\debug.h\
118 depot.obj: $(DEPOT_C) $(SRCDIR)\depot.c
119         $(CC) -c $(CFLAGS) $(SRCDIR)\depot.c
121 # Build dib2eps.c
122 DIB2EPS_C=\
123         $(SRCDIR)\antiword.h\
124         $(SRCDIR)\wordconst.h\
125         $(SRCDIR)\wordtypes.h\
126         $(SRCDIR)\fail.h\
127         $(SRCDIR)\debug.h\
129 dib2eps.obj: $(DIB2EPS_C) $(SRCDIR)\dib2eps.c
130         $(CC) -c $(CFLAGS) $(SRCDIR)\dib2eps.c
132 # Build fail.c
133 FAIL_C=\
134         $(SRCDIR)\antiword.h\
135         $(SRCDIR)\wordconst.h\
136         $(SRCDIR)\wordtypes.h\
137         $(SRCDIR)\fail.h\
138         $(SRCDIR)\debug.h\
140 fail.obj: $(FAIL_C) $(SRCDIR)\fail.c
141         $(CC) -c $(CFLAGS) $(SRCDIR)\fail.c
143 # Build finddata.c
144 FINDDATA_C=\
145         $(SRCDIR)\antiword.h\
146         $(SRCDIR)\wordconst.h\
147         $(SRCDIR)\wordtypes.h\
148         $(SRCDIR)\fail.h\
149         $(SRCDIR)\debug.h\
151 finddata.obj: $(FINDDATA_C) $(SRCDIR)\finddata.c
152         $(CC) -c $(CFLAGS) $(SRCDIR)\finddata.c
154 # Build findtext.c
155 FINDTEXT_C=\
156         $(SRCDIR)\antiword.h\
157         $(SRCDIR)\wordconst.h\
158         $(SRCDIR)\wordtypes.h\
159         $(SRCDIR)\fail.h\
160         $(SRCDIR)\debug.h\
162 findtext.obj: $(FINDTEXT_C) $(SRCDIR)\findtext.c
163         $(CC) -c $(CFLAGS) $(SRCDIR)\findtext.c
165 # Build fontlist.c
166 FONTLIST_C=\
167         $(SRCDIR)\antiword.h\
168         $(SRCDIR)\wordconst.h\
169         $(SRCDIR)\wordtypes.h\
170         $(SRCDIR)\fail.h\
171         $(SRCDIR)\debug.h\
173 fontlist.obj: $(FONTLIST_C) $(SRCDIR)\fontlist.c
174         $(CC) -c $(CFLAGS) $(SRCDIR)\fontlist.c
176 # Build fonts.c
177 FONTS_C=\
178         $(SRCDIR)\antiword.h\
179         $(SRCDIR)\wordconst.h\
180         $(SRCDIR)\wordtypes.h\
181         $(SRCDIR)\fail.h\
182         $(SRCDIR)\debug.h\
184 fonts.obj: $(FONTS_C) $(SRCDIR)\fonts.c
185         $(CC) -c $(CFLAGS) $(SRCDIR)\fonts.c
187 # Build fonts_u.c
188 FONTS_U_C=\
189         $(SRCDIR)\antiword.h\
190         $(SRCDIR)\wordconst.h\
191         $(SRCDIR)\wordtypes.h\
192         $(SRCDIR)\fail.h\
193         $(SRCDIR)\debug.h\
194         $(SRCDIR)\fontinfo.h\
196 fonts_u.obj: $(FONTS_U_C) $(SRCDIR)\fonts_u.c
197         $(CC) -c $(CFLAGS) $(SRCDIR)\fonts_u.c
199 # Build imgexam.c
200 IMGEXAM_C=\
201         $(SRCDIR)\antiword.h\
202         $(SRCDIR)\wordconst.h\
203         $(SRCDIR)\wordtypes.h\
204         $(SRCDIR)\fail.h\
205         $(SRCDIR)\debug.h\
207 imgexam.obj: $(IMGEXAM_C) $(SRCDIR)\imgexam.c
208         $(CC) -c $(CFLAGS) $(SRCDIR)\imgexam.c
210 # Build imgtrans.c
211 IMGTRANS_C=\
212         $(SRCDIR)\antiword.h\
213         $(SRCDIR)\wordconst.h\
214         $(SRCDIR)\wordtypes.h\
215         $(SRCDIR)\fail.h\
216         $(SRCDIR)\debug.h\
218 imgtrans.obj: $(IMGTRANS_C) $(SRCDIR)\imgtrans.c
219         $(CC) -c $(CFLAGS) $(SRCDIR)\imgtrans.c
221 # Build jpeg2eps.c
222 JPEG2EPS_C=\
223         $(SRCDIR)\antiword.h\
224         $(SRCDIR)\wordconst.h\
225         $(SRCDIR)\wordtypes.h\
226         $(SRCDIR)\fail.h\
227         $(SRCDIR)\debug.h\
229 jpeg2eps.obj: $(JPEG2EPS_C) $(SRCDIR)\jpeg2eps.c
230         $(CC) -c $(CFLAGS) $(SRCDIR)\jpeg2eps.c
232 # Build listlist.c
233 LISTLIST_C=\
234         $(SRCDIR)\antiword.h\
235         $(SRCDIR)\wordconst.h\
236         $(SRCDIR)\wordtypes.h\
237         $(SRCDIR)\fail.h\
238         $(SRCDIR)\debug.h\
240 listlist.obj: $(LISTLIST_C) $(SRCDIR)\listlist.c
241         $(CC) -c $(CFLAGS) $(SRCDIR)\listlist.c
243 # Build main_u.c
244 MAIN_U_C=\
245         $(SRCDIR)\version.h\
246         $(SRCDIR)\antiword.h\
247         $(SRCDIR)\wordconst.h\
248         $(SRCDIR)\wordtypes.h\
249         $(SRCDIR)\fail.h\
250         $(SRCDIR)\debug.h\
252 main_u.obj: $(MAIN_U_C) $(SRCDIR)\main_u.c
253         $(CC) -c $(CFLAGS) $(SRCDIR)\main_u.c
255 # Build misc.c
256 MISC_C=\
257         $(SRCDIR)\antiword.h\
258         $(SRCDIR)\wordconst.h\
259         $(SRCDIR)\wordtypes.h\
260         $(SRCDIR)\fail.h\
261         $(SRCDIR)\debug.h\
263 misc.obj: $(MISC_C) $(SRCDIR)\misc.c
264         $(CC) -c $(CFLAGS) $(SRCDIR)\misc.c
266 # Build notes.c
267 NOTES_C=\
268         $(SRCDIR)\antiword.h\
269         $(SRCDIR)\wordconst.h\
270         $(SRCDIR)\wordtypes.h\
271         $(SRCDIR)\fail.h\
272         $(SRCDIR)\debug.h\
274 notes.obj: $(NOTES_C) $(SRCDIR)\notes.c
275         $(CC) -c $(CFLAGS) $(SRCDIR)\notes.c
277 # Build options.c
278 OPTIONS_C=\
279         $(SRCDIR)\antiword.h\
280         $(SRCDIR)\wordconst.h\
281         $(SRCDIR)\wordtypes.h\
282         $(SRCDIR)\fail.h\
283         $(SRCDIR)\debug.h\
285 options.obj: $(OPTIONS_C) $(SRCDIR)\options.c
286         $(CC) -c $(CFLAGS) $(SRCDIR)\options.c
288 # Build out2window.c
289 OUT2WINDOW_C=\
290         $(SRCDIR)\antiword.h\
291         $(SRCDIR)\wordconst.h\
292         $(SRCDIR)\wordtypes.h\
293         $(SRCDIR)\fail.h\
294         $(SRCDIR)\debug.h\
296 out2window.obj: $(OUT2WINDOW_C) $(SRCDIR)\out2window.c
297         $(CC) -c $(CFLAGS) $(SRCDIR)\out2window.c
299 # Build output.c
300 OUTPUT_C=\
301         $(SRCDIR)\antiword.h\
302         $(SRCDIR)\wordconst.h\
303         $(SRCDIR)\wordtypes.h\
304         $(SRCDIR)\fail.h\
305         $(SRCDIR)\debug.h\
307 output.obj: $(OUTPUT_C) $(SRCDIR)\output.c
308         $(CC) -c $(CFLAGS) $(SRCDIR)\output.c
310 # Build pictlist.c
311 PICTLIST_C=\
312         $(SRCDIR)\antiword.h\
313         $(SRCDIR)\wordconst.h\
314         $(SRCDIR)\wordtypes.h\
315         $(SRCDIR)\fail.h\
316         $(SRCDIR)\debug.h\
318 pictlist.obj: $(PICTLIST_C) $(SRCDIR)\pictlist.c
319         $(CC) -c $(CFLAGS) $(SRCDIR)\pictlist.c
321 # Build png2eps.c
322 PNG2EPS_C=\
323         $(SRCDIR)\antiword.h\
324         $(SRCDIR)\wordconst.h\
325         $(SRCDIR)\wordtypes.h\
326         $(SRCDIR)\fail.h\
327         $(SRCDIR)\debug.h\
329 png2eps.obj: $(PNG2EPS_C) $(SRCDIR)\png2eps.c
330         $(CC) -c $(CFLAGS) $(SRCDIR)\png2eps.c
332 # Build postscript.c
333 POSTSCRIPT_C=\
334         $(SRCDIR)\version.h\
335         $(SRCDIR)\antiword.h\
336         $(SRCDIR)\wordconst.h\
337         $(SRCDIR)\wordtypes.h\
338         $(SRCDIR)\fail.h\
339         $(SRCDIR)\debug.h\
341 postscript.obj: $(POSTSCRIPT_C) $(SRCDIR)\postscript.c
342         $(CC) -c $(CFLAGS) $(SRCDIR)\postscript.c
344 # Build prop0.c
345 PROP0_C=\
346         $(SRCDIR)\antiword.h\
347         $(SRCDIR)\wordconst.h\
348         $(SRCDIR)\wordtypes.h\
349         $(SRCDIR)\fail.h\
350         $(SRCDIR)\debug.h\
352 prop0.obj: $(PROP0_C) $(SRCDIR)\prop0.c
353         $(CC) -c $(CFLAGS) $(SRCDIR)\prop0.c
355 # Build prop2.c
356 PROP2_C=\
357         $(SRCDIR)\antiword.h\
358         $(SRCDIR)\wordconst.h\
359         $(SRCDIR)\wordtypes.h\
360         $(SRCDIR)\fail.h\
361         $(SRCDIR)\debug.h\
363 prop2.obj: $(PROP2_C) $(SRCDIR)\prop2.c
364         $(CC) -c $(CFLAGS) $(SRCDIR)\prop2.c
366 # Build prop6.c
367 PROP6_C=\
368         $(SRCDIR)\antiword.h\
369         $(SRCDIR)\wordconst.h\
370         $(SRCDIR)\wordtypes.h\
371         $(SRCDIR)\fail.h\
372         $(SRCDIR)\debug.h\
374 prop6.obj: $(PROP6_C) $(SRCDIR)\prop6.c
375         $(CC) -c $(CFLAGS) $(SRCDIR)\prop6.c
377 # Build prop8.c
378 PROP8_C=\
379         $(SRCDIR)\antiword.h\
380         $(SRCDIR)\wordconst.h\
381         $(SRCDIR)\wordtypes.h\
382         $(SRCDIR)\fail.h\
383         $(SRCDIR)\debug.h\
385 prop8.obj: $(PROP8_C) $(SRCDIR)\prop8.c
386         $(CC) -c $(CFLAGS) $(SRCDIR)\prop8.c
388 # Build properties.c
389 PROPERTIES_C=\
390         $(SRCDIR)\antiword.h\
391         $(SRCDIR)\wordconst.h\
392         $(SRCDIR)\wordtypes.h\
393         $(SRCDIR)\fail.h\
394         $(SRCDIR)\debug.h\
396 properties.obj: $(PROPERTIES_C) $(SRCDIR)\properties.c
397         $(CC) -c $(CFLAGS) $(SRCDIR)\properties.c
399 # Build propmod.c
400 PROPMOD_C=\
401         $(SRCDIR)\antiword.h\
402         $(SRCDIR)\wordconst.h\
403         $(SRCDIR)\wordtypes.h\
404         $(SRCDIR)\fail.h\
405         $(SRCDIR)\debug.h\
407 propmod.obj: $(PROPMOD_C) $(SRCDIR)\propmod.c
408         $(CC) -c $(CFLAGS) $(SRCDIR)\propmod.c
410 # Build rowlist.c
411 ROWLIST_C=\
412         $(SRCDIR)\antiword.h\
413         $(SRCDIR)\wordconst.h\
414         $(SRCDIR)\wordtypes.h\
415         $(SRCDIR)\fail.h\
416         $(SRCDIR)\debug.h\
418 rowlist.obj: $(ROWLIST_C) $(SRCDIR)\rowlist.c
419         $(CC) -c $(CFLAGS) $(SRCDIR)\rowlist.c
421 # Build sectlist.c
422 SECTLIST_C=\
423         $(SRCDIR)\antiword.h\
424         $(SRCDIR)\wordconst.h\
425         $(SRCDIR)\wordtypes.h\
426         $(SRCDIR)\fail.h\
427         $(SRCDIR)\debug.h\
429 sectlist.obj: $(SECTLIST_C) $(SRCDIR)\sectlist.c
430         $(CC) -c $(CFLAGS) $(SRCDIR)\sectlist.c
432 # Build stylelist.c
433 STYLELIST_C=\
434         $(SRCDIR)\antiword.h\
435         $(SRCDIR)\wordconst.h\
436         $(SRCDIR)\wordtypes.h\
437         $(SRCDIR)\fail.h\
438         $(SRCDIR)\debug.h\
440 stylelist.obj: $(STYLELIST_C) $(SRCDIR)\stylelist.c
441         $(CC) -c $(CFLAGS) $(SRCDIR)\stylelist.c
443 # Build stylesheet.c
444 STYLESHEET_C=\
445         $(SRCDIR)\antiword.h\
446         $(SRCDIR)\wordconst.h\
447         $(SRCDIR)\wordtypes.h\
448         $(SRCDIR)\fail.h\
449         $(SRCDIR)\debug.h\
451 stylesheet.obj: $(STYLESHEET_C) $(SRCDIR)\stylesheet.c
452         $(CC) -c $(CFLAGS) $(SRCDIR)\stylesheet.c
454 # Build summary.c
455 SUMMARY_C=\
456         $(SRCDIR)\antiword.h\
457         $(SRCDIR)\wordconst.h\
458         $(SRCDIR)\wordtypes.h\
459         $(SRCDIR)\fail.h\
460         $(SRCDIR)\debug.h\
462 summary.obj: $(SUMMARY_C) $(SRCDIR)\summary.c
463         $(CC) -c $(CFLAGS) $(SRCDIR)\summary.c
465 # Build tabstop.c
466 TABSTOP_C=\
467         $(SRCDIR)\antiword.h\
468         $(SRCDIR)\wordconst.h\
469         $(SRCDIR)\wordtypes.h\
470         $(SRCDIR)\fail.h\
471         $(SRCDIR)\debug.h\
473 tabstop.obj: $(TABSTOP_C) $(SRCDIR)\tabstop.c
474         $(CC) -c $(CFLAGS) $(SRCDIR)\tabstop.c
476 # Build text.c
477 TEXT_C=\
478         $(SRCDIR)\antiword.h\
479         $(SRCDIR)\wordconst.h\
480         $(SRCDIR)\wordtypes.h\
481         $(SRCDIR)\fail.h\
482         $(SRCDIR)\debug.h\
484 text.obj: $(TEXT_C) $(SRCDIR)\text.c
485         $(CC) -c $(CFLAGS) $(SRCDIR)\text.c
487 # Build unix.c
488 UNIX_C=\
489         $(SRCDIR)\antiword.h\
490         $(SRCDIR)\wordconst.h\
491         $(SRCDIR)\wordtypes.h\
492         $(SRCDIR)\fail.h\
493         $(SRCDIR)\debug.h\
495 unix.obj: $(UNIX_C) $(SRCDIR)\unix.c
496         $(CC) -c $(CFLAGS) $(SRCDIR)\unix.c
498 # Build utf8.c
499 UTF8_C=\
500         $(SRCDIR)\antiword.h\
501         $(SRCDIR)\wordconst.h\
502         $(SRCDIR)\wordtypes.h\
503         $(SRCDIR)\fail.h\
504         $(SRCDIR)\debug.h\
506 utf8.obj: $(UTF8_C) $(SRCDIR)\utf8.c
507         $(CC) -c $(CFLAGS) $(SRCDIR)\utf8.c
509 # Build word2text.c
510 WORD2TEXT_C=\
511         $(SRCDIR)\antiword.h\
512         $(SRCDIR)\wordconst.h\
513         $(SRCDIR)\wordtypes.h\
514         $(SRCDIR)\fail.h\
515         $(SRCDIR)\debug.h\
517 word2text.obj: $(WORD2TEXT_C) $(SRCDIR)\word2text.c
518         $(CC) -c $(CFLAGS) $(SRCDIR)\word2text.c
520 # Build worddos.c
521 WORDDOS_C=\
522         $(SRCDIR)\antiword.h\
523         $(SRCDIR)\wordconst.h\
524         $(SRCDIR)\wordtypes.h\
525         $(SRCDIR)\fail.h\
526         $(SRCDIR)\debug.h\
528 worddos.obj: $(WORDDOS_C) $(SRCDIR)\worddos.c
529         $(CC) -c $(CFLAGS) $(SRCDIR)\worddos.c
531 # Build wordlib.c
532 WORDLIB_C=\
533         $(SRCDIR)\antiword.h\
534         $(SRCDIR)\wordconst.h\
535         $(SRCDIR)\wordtypes.h\
536         $(SRCDIR)\fail.h\
537         $(SRCDIR)\debug.h\
539 wordlib.obj: $(WORDLIB_C) $(SRCDIR)\wordlib.c
540         $(CC) -c $(CFLAGS) $(SRCDIR)\wordlib.c
542 # Build wordmac.c
543 WORDMAC_C=\
544         $(SRCDIR)\antiword.h\
545         $(SRCDIR)\wordconst.h\
546         $(SRCDIR)\wordtypes.h\
547         $(SRCDIR)\fail.h\
548         $(SRCDIR)\debug.h\
550 wordmac.obj: $(WORDMAC_C) $(SRCDIR)\wordmac.c
551         $(CC) -c $(CFLAGS) $(SRCDIR)\wordmac.c
553 # Build wordole.c
554 WORDOLE_C=\
555         $(SRCDIR)\antiword.h\
556         $(SRCDIR)\wordconst.h\
557         $(SRCDIR)\wordtypes.h\
558         $(SRCDIR)\fail.h\
559         $(SRCDIR)\debug.h\
561 wordole.obj: $(WORDOLE_C) $(SRCDIR)\wordole.c
562         $(CC) -c $(CFLAGS) $(SRCDIR)\wordole.c
564 # Build wordwin.c
565 WORDWIN_C=\
566         $(SRCDIR)\antiword.h\
567         $(SRCDIR)\wordconst.h\
568         $(SRCDIR)\wordtypes.h\
569         $(SRCDIR)\fail.h\
570         $(SRCDIR)\debug.h\
572 wordwin.obj: $(WORDWIN_C) $(SRCDIR)\wordwin.c
573         $(CC) -c $(CFLAGS) $(SRCDIR)\wordwin.c
575 # Build xmalloc.c
576 XMALLOC_C=\
577         $(SRCDIR)\antiword.h\
578         $(SRCDIR)\wordconst.h\
579         $(SRCDIR)\wordtypes.h\
580         $(SRCDIR)\fail.h\
581         $(SRCDIR)\debug.h\
583 xmalloc.obj: $(XMALLOC_C) $(SRCDIR)\xmalloc.c
584         $(CC) -c $(CFLAGS) $(SRCDIR)\xmalloc.c
586 # Build xml.c
587 XML_C=\
588         $(SRCDIR)\antiword.h\
589         $(SRCDIR)\wordconst.h\
590         $(SRCDIR)\wordtypes.h\
591         $(SRCDIR)\fail.h\
592         $(SRCDIR)\debug.h\
594 xml.obj: $(XML_C) $(SRCDIR)\xml.c
595         $(CC) -c $(CFLAGS) $(SRCDIR)\xml.c
597 link:
598         $(LINKER)  -s -subsystem console -o $(SRCDIR)\antiword.exe $(OBJS) $(LIBS)
600 clean:
601         del $(OBJS) antiword.exe