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