]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/makefile.wat
final sweep over docs - replace & with \&
[wxWidgets.git] / src / tiff / makefile.wat
1 #!/binb/wmake.exe
2 #
3 # File: makefile.wat
4 # Author: Julian Smart
5 # Created: 1998
6 # Changelist: 2003-02-25 - Juergen Ulbts - update from wxWindows 2.5.x/HEAD branch
7 #
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)
12
13 WXDIR = ..\..
14 EXTRACPPFLAGS=-i=..\zlib
15
16 !include $(WXDIR)\src\makewat.env
17
18 # set RENAME to 1 to rename the files to the short names -- this is needed
19 # with older Watcom versions
20 # RENAME=1
21
22 !ifeq RENAME 1
23 TIFF=
24 EXTRACPPFLAGS+=-dwxUSE_SHORTNAMES
25 !else
26 TIFF=tif_
27 !endif
28
29 WXLIB = $(WXDIR)\lib
30
31 LIBTARGET = $(WXLIB)\tiff$(WATCOM_SUFFIX).lib
32
33 OBJECTS= &
34 !ifeq RENAME 1
35 $(OUTPUTDIR)\_aux.obj &
36 !else
37 $(OUTPUTDIR)\tif_aux.obj &
38 !endif
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
71
72 all: $(OUTPUTDIR) $(RENAME) $(LIBTARGET) .SYMBOLIC
73
74 !ifeq RENAME 1
75 rename: .SYMBOLIC
76 copy tif_predict.h tif_pred.h
77 copy tif_aux.c _aux.c
78 copy tif_close.c close.c
79 copy tif_codec.c codec.c
80 copy tif_compress.c compress.c
81 copy tif_dir.c dir.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
92 copy tif_luv.c luv.c
93 copy tif_lzw.c lzw.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
109 copy tif_zip.c zip.c
110 !endif
111
112 $(OUTPUTDIR):
113 @if not exist $^@ mkdir $^@
114
115 LBCFILE=$(OUTPUTDIR)\tiff.lbc
116 $(LIBTARGET) : $(OBJECTS)
117 %create $(LBCFILE)
118 @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
119 wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)
120
121 clean: .SYMBOLIC
122 -erase *.obj
123 -erase $(LIBTARGET)
124 -erase *.pch
125 -erase *.err
126 -erase *.lbc
127 !ifeq RENAME 1
128 -erase tif_pred.h
129 -erase _aux.c
130 -erase close.c
131 -erase codec.c
132 -erase compress.c
133 -erase dir.c
134 -erase dirinfo.c
135 -erase dirread.c
136 -erase dirwrite.c
137 -erase dumpmode.c
138 -erase error.c
139 -erase fax3.c
140 -erase fax3sm.c
141 -erase flush.c
142 -erase getimage.c
143 -erase jpeg.c
144 -erase luv.c
145 -erase lzw.c
146 -erase next.c
147 -erase open.c
148 -erase packbits.c
149 -erase pixarlog.c
150 -erase predict.c
151 -erase print.c
152 -erase read.c
153 -erase strip.c
154 -erase swab.c
155 -erase thunder.c
156 -erase tile.c
157 -erase version.c
158 -erase warning.c
159 -erase win32.c
160 -erase write.c
161 -erase zip.c
162 !endif
163
164 cleanall: clean
165