7 # Makefile : Builds TIFF library for Watcom C++, WIN32
8 # This makefile has to rename files because apparently Watcom C++
9 # can't deal with greater than 8.3 filenames (can't
10 # make tif_close.c, for example)
13 EXTRACPPFLAGS=-i=..\zlib
15 !include $(WXDIR)\src\makewat.env
17 # set RENAME to 1 to rename the files to the short names -- this is needed
18 # with older Watcom versions
23 EXTRACPPFLAGS+=-dwxUSE_SHORTNAMES
30 LIBTARGET = $(WXLIB)\tiff$(WATCOM_SUFFIX).lib
34 $(OUTPUTDIR)_aux.obj &
36 $(OUTPUTDIR)tif_aux.obj &
38 $(OUTPUTDIR)$(TIFF)close.obj &
39 $(OUTPUTDIR)$(TIFF)codec.obj &
40 $(OUTPUTDIR)$(TIFF)compress.obj &
41 $(OUTPUTDIR)$(TIFF)dir.obj &
42 $(OUTPUTDIR)$(TIFF)dirinfo.obj &
43 $(OUTPUTDIR)$(TIFF)dirread.obj &
44 $(OUTPUTDIR)$(TIFF)dirwrite.obj &
45 $(OUTPUTDIR)$(TIFF)dumpmode.obj &
46 $(OUTPUTDIR)$(TIFF)error.obj &
47 $(OUTPUTDIR)$(TIFF)fax3.obj &
48 $(OUTPUTDIR)$(TIFF)fax3sm.obj &
49 $(OUTPUTDIR)$(TIFF)flush.obj &
50 $(OUTPUTDIR)$(TIFF)getimage.obj &
51 $(OUTPUTDIR)$(TIFF)jpeg.obj &
52 $(OUTPUTDIR)$(TIFF)luv.obj &
53 $(OUTPUTDIR)$(TIFF)lzw.obj &
54 $(OUTPUTDIR)$(TIFF)next.obj &
55 $(OUTPUTDIR)$(TIFF)open.obj &
56 $(OUTPUTDIR)$(TIFF)packbits.obj &
57 $(OUTPUTDIR)$(TIFF)pixarlog.obj &
58 $(OUTPUTDIR)$(TIFF)predict.obj &
59 $(OUTPUTDIR)$(TIFF)print.obj &
60 $(OUTPUTDIR)$(TIFF)read.obj &
61 $(OUTPUTDIR)$(TIFF)strip.obj &
62 $(OUTPUTDIR)$(TIFF)swab.obj &
63 $(OUTPUTDIR)$(TIFF)thunder.obj &
64 $(OUTPUTDIR)$(TIFF)tile.obj &
65 $(OUTPUTDIR)$(TIFF)version.obj &
66 $(OUTPUTDIR)$(TIFF)warning.obj &
67 $(OUTPUTDIR)$(TIFF)win32.obj &
68 $(OUTPUTDIR)$(TIFF)write.obj &
69 $(OUTPUTDIR)$(TIFF)zip.obj
71 all: $(OUTPUTDIR) $(RENAME) $(LIBTARGET) .SYMBOLIC
75 copy tif_predict.h tif_pred.h
77 copy tif_close.c close.c
78 copy tif_codec.c codec.c
79 copy tif_compress.c compress.c
81 copy tif_dirinfo.c dirinfo.c
82 copy tif_dirread.c dirread.c
83 copy tif_dirwrite.c dirwrite.c
84 copy tif_dumpmode.c dumpmode.c
85 copy tif_error.c error.c
86 copy tif_fax3.c fax3.c
87 copy tif_fax3sm.c fax3sm.c
88 copy tif_flush.c flush.c
89 copy tif_getimage.c getimage.c
90 copy tif_jpeg.c jpeg.c
93 copy tif_next.c next.c
94 copy tif_open.c open.c
95 copy tif_packbits.c packbits.c
96 copy tif_pixarlog.c pixarlog.c
97 copy tif_predict.c predict.c
98 copy tif_print.c print.c
99 copy tif_read.c read.c
100 copy tif_strip.c strip.c
101 copy tif_swab.c swab.c
102 copy tif_thunder.c thunder.c
103 copy tif_tile.c tile.c
104 copy tif_version.c version.c
105 copy tif_warning.c warning.c
106 copy tif_win32.c win32.c
107 copy tif_write.c write.c
112 @if not exist $^@ mkdir $^@
114 LBCFILE=$(OUTPUTDIR)tiff.lbc
115 $(LIBTARGET) : $(OBJECTS)
117 @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
118 wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)