1 # Wedit Makefile for project antiword
3 CFLAGS=-I. -DNDEBUG -g2
4 CC=$(LCCROOT)\bin\lcc.exe
5 LINKER=$(LCCROOT)\bin\lcclnk.exe
63 $(EXE): $(OBJS) Makefile
64 $(LINKER) -s -subsystem console -o $(SRCDIR)\antiword.exe $(OBJS) $(LIBS)
69 $(SRCDIR)\wordconst.h\
70 $(SRCDIR)\wordtypes.h\
74 asc85enc.obj: $(ASC85ENC_C) $(SRCDIR)\asc85enc.c
75 $(CC) -c $(CFLAGS) $(SRCDIR)\asc85enc.c
80 $(SRCDIR)\wordconst.h\
81 $(SRCDIR)\wordtypes.h\
85 blocklist.obj: $(BLOCKLIST_C) $(SRCDIR)\blocklist.c
86 $(CC) -c $(CFLAGS) $(SRCDIR)\blocklist.c
91 $(SRCDIR)\wordconst.h\
92 $(SRCDIR)\wordtypes.h\
96 chartrans.obj: $(CHARTRANS_C) $(SRCDIR)\chartrans.c
97 $(CC) -c $(CFLAGS) $(SRCDIR)\chartrans.c
101 $(SRCDIR)\antiword.h\
102 $(SRCDIR)\wordconst.h\
103 $(SRCDIR)\wordtypes.h\
107 datalist.obj: $(DATALIST_C) $(SRCDIR)\datalist.c
108 $(CC) -c $(CFLAGS) $(SRCDIR)\datalist.c
112 $(SRCDIR)\antiword.h\
113 $(SRCDIR)\wordconst.h\
114 $(SRCDIR)\wordtypes.h\
118 depot.obj: $(DEPOT_C) $(SRCDIR)\depot.c
119 $(CC) -c $(CFLAGS) $(SRCDIR)\depot.c
123 $(SRCDIR)\antiword.h\
124 $(SRCDIR)\wordconst.h\
125 $(SRCDIR)\wordtypes.h\
129 dib2eps.obj: $(DIB2EPS_C) $(SRCDIR)\dib2eps.c
130 $(CC) -c $(CFLAGS) $(SRCDIR)\dib2eps.c
134 $(SRCDIR)\antiword.h\
135 $(SRCDIR)\wordconst.h\
136 $(SRCDIR)\wordtypes.h\
140 fail.obj: $(FAIL_C) $(SRCDIR)\fail.c
141 $(CC) -c $(CFLAGS) $(SRCDIR)\fail.c
145 $(SRCDIR)\antiword.h\
146 $(SRCDIR)\wordconst.h\
147 $(SRCDIR)\wordtypes.h\
151 finddata.obj: $(FINDDATA_C) $(SRCDIR)\finddata.c
152 $(CC) -c $(CFLAGS) $(SRCDIR)\finddata.c
156 $(SRCDIR)\antiword.h\
157 $(SRCDIR)\wordconst.h\
158 $(SRCDIR)\wordtypes.h\
162 findtext.obj: $(FINDTEXT_C) $(SRCDIR)\findtext.c
163 $(CC) -c $(CFLAGS) $(SRCDIR)\findtext.c
167 $(SRCDIR)\antiword.h\
168 $(SRCDIR)\wordconst.h\
169 $(SRCDIR)\wordtypes.h\
173 fontlist.obj: $(FONTLIST_C) $(SRCDIR)\fontlist.c
174 $(CC) -c $(CFLAGS) $(SRCDIR)\fontlist.c
178 $(SRCDIR)\antiword.h\
179 $(SRCDIR)\wordconst.h\
180 $(SRCDIR)\wordtypes.h\
184 fonts.obj: $(FONTS_C) $(SRCDIR)\fonts.c
185 $(CC) -c $(CFLAGS) $(SRCDIR)\fonts.c
189 $(SRCDIR)\antiword.h\
190 $(SRCDIR)\wordconst.h\
191 $(SRCDIR)\wordtypes.h\
194 $(SRCDIR)\fontinfo.h\
196 fonts_u.obj: $(FONTS_U_C) $(SRCDIR)\fonts_u.c
197 $(CC) -c $(CFLAGS) $(SRCDIR)\fonts_u.c
201 $(SRCDIR)\antiword.h\
202 $(SRCDIR)\wordconst.h\
203 $(SRCDIR)\wordtypes.h\
207 imgexam.obj: $(IMGEXAM_C) $(SRCDIR)\imgexam.c
208 $(CC) -c $(CFLAGS) $(SRCDIR)\imgexam.c
212 $(SRCDIR)\antiword.h\
213 $(SRCDIR)\wordconst.h\
214 $(SRCDIR)\wordtypes.h\
218 imgtrans.obj: $(IMGTRANS_C) $(SRCDIR)\imgtrans.c
219 $(CC) -c $(CFLAGS) $(SRCDIR)\imgtrans.c
223 $(SRCDIR)\antiword.h\
224 $(SRCDIR)\wordconst.h\
225 $(SRCDIR)\wordtypes.h\
229 jpeg2eps.obj: $(JPEG2EPS_C) $(SRCDIR)\jpeg2eps.c
230 $(CC) -c $(CFLAGS) $(SRCDIR)\jpeg2eps.c
234 $(SRCDIR)\antiword.h\
235 $(SRCDIR)\wordconst.h\
236 $(SRCDIR)\wordtypes.h\
240 listlist.obj: $(LISTLIST_C) $(SRCDIR)\listlist.c
241 $(CC) -c $(CFLAGS) $(SRCDIR)\listlist.c
246 $(SRCDIR)\antiword.h\
247 $(SRCDIR)\wordconst.h\
248 $(SRCDIR)\wordtypes.h\
252 main_u.obj: $(MAIN_U_C) $(SRCDIR)\main_u.c
253 $(CC) -c $(CFLAGS) $(SRCDIR)\main_u.c
257 $(SRCDIR)\antiword.h\
258 $(SRCDIR)\wordconst.h\
259 $(SRCDIR)\wordtypes.h\
263 misc.obj: $(MISC_C) $(SRCDIR)\misc.c
264 $(CC) -c $(CFLAGS) $(SRCDIR)\misc.c
268 $(SRCDIR)\antiword.h\
269 $(SRCDIR)\wordconst.h\
270 $(SRCDIR)\wordtypes.h\
274 notes.obj: $(NOTES_C) $(SRCDIR)\notes.c
275 $(CC) -c $(CFLAGS) $(SRCDIR)\notes.c
279 $(SRCDIR)\antiword.h\
280 $(SRCDIR)\wordconst.h\
281 $(SRCDIR)\wordtypes.h\
285 options.obj: $(OPTIONS_C) $(SRCDIR)\options.c
286 $(CC) -c $(CFLAGS) $(SRCDIR)\options.c
290 $(SRCDIR)\antiword.h\
291 $(SRCDIR)\wordconst.h\
292 $(SRCDIR)\wordtypes.h\
296 out2window.obj: $(OUT2WINDOW_C) $(SRCDIR)\out2window.c
297 $(CC) -c $(CFLAGS) $(SRCDIR)\out2window.c
301 $(SRCDIR)\antiword.h\
302 $(SRCDIR)\wordconst.h\
303 $(SRCDIR)\wordtypes.h\
307 output.obj: $(OUTPUT_C) $(SRCDIR)\output.c
308 $(CC) -c $(CFLAGS) $(SRCDIR)\output.c
312 $(SRCDIR)\antiword.h\
313 $(SRCDIR)\wordconst.h\
314 $(SRCDIR)\wordtypes.h\
318 pictlist.obj: $(PICTLIST_C) $(SRCDIR)\pictlist.c
319 $(CC) -c $(CFLAGS) $(SRCDIR)\pictlist.c
323 $(SRCDIR)\antiword.h\
324 $(SRCDIR)\wordconst.h\
325 $(SRCDIR)\wordtypes.h\
329 png2eps.obj: $(PNG2EPS_C) $(SRCDIR)\png2eps.c
330 $(CC) -c $(CFLAGS) $(SRCDIR)\png2eps.c
335 $(SRCDIR)\antiword.h\
336 $(SRCDIR)\wordconst.h\
337 $(SRCDIR)\wordtypes.h\
341 postscript.obj: $(POSTSCRIPT_C) $(SRCDIR)\postscript.c
342 $(CC) -c $(CFLAGS) $(SRCDIR)\postscript.c
346 $(SRCDIR)\antiword.h\
347 $(SRCDIR)\wordconst.h\
348 $(SRCDIR)\wordtypes.h\
352 prop0.obj: $(PROP0_C) $(SRCDIR)\prop0.c
353 $(CC) -c $(CFLAGS) $(SRCDIR)\prop0.c
357 $(SRCDIR)\antiword.h\
358 $(SRCDIR)\wordconst.h\
359 $(SRCDIR)\wordtypes.h\
363 prop2.obj: $(PROP2_C) $(SRCDIR)\prop2.c
364 $(CC) -c $(CFLAGS) $(SRCDIR)\prop2.c
368 $(SRCDIR)\antiword.h\
369 $(SRCDIR)\wordconst.h\
370 $(SRCDIR)\wordtypes.h\
374 prop6.obj: $(PROP6_C) $(SRCDIR)\prop6.c
375 $(CC) -c $(CFLAGS) $(SRCDIR)\prop6.c
379 $(SRCDIR)\antiword.h\
380 $(SRCDIR)\wordconst.h\
381 $(SRCDIR)\wordtypes.h\
385 prop8.obj: $(PROP8_C) $(SRCDIR)\prop8.c
386 $(CC) -c $(CFLAGS) $(SRCDIR)\prop8.c
390 $(SRCDIR)\antiword.h\
391 $(SRCDIR)\wordconst.h\
392 $(SRCDIR)\wordtypes.h\
396 properties.obj: $(PROPERTIES_C) $(SRCDIR)\properties.c
397 $(CC) -c $(CFLAGS) $(SRCDIR)\properties.c
401 $(SRCDIR)\antiword.h\
402 $(SRCDIR)\wordconst.h\
403 $(SRCDIR)\wordtypes.h\
407 propmod.obj: $(PROPMOD_C) $(SRCDIR)\propmod.c
408 $(CC) -c $(CFLAGS) $(SRCDIR)\propmod.c
412 $(SRCDIR)\antiword.h\
413 $(SRCDIR)\wordconst.h\
414 $(SRCDIR)\wordtypes.h\
418 rowlist.obj: $(ROWLIST_C) $(SRCDIR)\rowlist.c
419 $(CC) -c $(CFLAGS) $(SRCDIR)\rowlist.c
423 $(SRCDIR)\antiword.h\
424 $(SRCDIR)\wordconst.h\
425 $(SRCDIR)\wordtypes.h\
429 sectlist.obj: $(SECTLIST_C) $(SRCDIR)\sectlist.c
430 $(CC) -c $(CFLAGS) $(SRCDIR)\sectlist.c
434 $(SRCDIR)\antiword.h\
435 $(SRCDIR)\wordconst.h\
436 $(SRCDIR)\wordtypes.h\
440 stylelist.obj: $(STYLELIST_C) $(SRCDIR)\stylelist.c
441 $(CC) -c $(CFLAGS) $(SRCDIR)\stylelist.c
445 $(SRCDIR)\antiword.h\
446 $(SRCDIR)\wordconst.h\
447 $(SRCDIR)\wordtypes.h\
451 stylesheet.obj: $(STYLESHEET_C) $(SRCDIR)\stylesheet.c
452 $(CC) -c $(CFLAGS) $(SRCDIR)\stylesheet.c
456 $(SRCDIR)\antiword.h\
457 $(SRCDIR)\wordconst.h\
458 $(SRCDIR)\wordtypes.h\
462 summary.obj: $(SUMMARY_C) $(SRCDIR)\summary.c
463 $(CC) -c $(CFLAGS) $(SRCDIR)\summary.c
467 $(SRCDIR)\antiword.h\
468 $(SRCDIR)\wordconst.h\
469 $(SRCDIR)\wordtypes.h\
473 tabstop.obj: $(TABSTOP_C) $(SRCDIR)\tabstop.c
474 $(CC) -c $(CFLAGS) $(SRCDIR)\tabstop.c
478 $(SRCDIR)\antiword.h\
479 $(SRCDIR)\wordconst.h\
480 $(SRCDIR)\wordtypes.h\
484 text.obj: $(TEXT_C) $(SRCDIR)\text.c
485 $(CC) -c $(CFLAGS) $(SRCDIR)\text.c
489 $(SRCDIR)\antiword.h\
490 $(SRCDIR)\wordconst.h\
491 $(SRCDIR)\wordtypes.h\
495 unix.obj: $(UNIX_C) $(SRCDIR)\unix.c
496 $(CC) -c $(CFLAGS) $(SRCDIR)\unix.c
500 $(SRCDIR)\antiword.h\
501 $(SRCDIR)\wordconst.h\
502 $(SRCDIR)\wordtypes.h\
506 utf8.obj: $(UTF8_C) $(SRCDIR)\utf8.c
507 $(CC) -c $(CFLAGS) $(SRCDIR)\utf8.c
511 $(SRCDIR)\antiword.h\
512 $(SRCDIR)\wordconst.h\
513 $(SRCDIR)\wordtypes.h\
517 word2text.obj: $(WORD2TEXT_C) $(SRCDIR)\word2text.c
518 $(CC) -c $(CFLAGS) $(SRCDIR)\word2text.c
522 $(SRCDIR)\antiword.h\
523 $(SRCDIR)\wordconst.h\
524 $(SRCDIR)\wordtypes.h\
528 worddos.obj: $(WORDDOS_C) $(SRCDIR)\worddos.c
529 $(CC) -c $(CFLAGS) $(SRCDIR)\worddos.c
533 $(SRCDIR)\antiword.h\
534 $(SRCDIR)\wordconst.h\
535 $(SRCDIR)\wordtypes.h\
539 wordlib.obj: $(WORDLIB_C) $(SRCDIR)\wordlib.c
540 $(CC) -c $(CFLAGS) $(SRCDIR)\wordlib.c
544 $(SRCDIR)\antiword.h\
545 $(SRCDIR)\wordconst.h\
546 $(SRCDIR)\wordtypes.h\
550 wordmac.obj: $(WORDMAC_C) $(SRCDIR)\wordmac.c
551 $(CC) -c $(CFLAGS) $(SRCDIR)\wordmac.c
555 $(SRCDIR)\antiword.h\
556 $(SRCDIR)\wordconst.h\
557 $(SRCDIR)\wordtypes.h\
561 wordole.obj: $(WORDOLE_C) $(SRCDIR)\wordole.c
562 $(CC) -c $(CFLAGS) $(SRCDIR)\wordole.c
566 $(SRCDIR)\antiword.h\
567 $(SRCDIR)\wordconst.h\
568 $(SRCDIR)\wordtypes.h\
572 wordwin.obj: $(WORDWIN_C) $(SRCDIR)\wordwin.c
573 $(CC) -c $(CFLAGS) $(SRCDIR)\wordwin.c
577 $(SRCDIR)\antiword.h\
578 $(SRCDIR)\wordconst.h\
579 $(SRCDIR)\wordtypes.h\
583 xmalloc.obj: $(XMALLOC_C) $(SRCDIR)\xmalloc.c
584 $(CC) -c $(CFLAGS) $(SRCDIR)\xmalloc.c
588 $(SRCDIR)\antiword.h\
589 $(SRCDIR)\wordconst.h\
590 $(SRCDIR)\wordtypes.h\
594 xml.obj: $(XML_C) $(SRCDIR)\xml.c
595 $(CC) -c $(CFLAGS) $(SRCDIR)\xml.c
598 $(LINKER) -s -subsystem console -o $(SRCDIR)\antiword.exe $(OBJS) $(LIBS)
601 del $(OBJS) antiword.exe