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