git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
166 lines
3.9 KiB
Plaintext
166 lines
3.9 KiB
Plaintext
#!/binb/wmake.exe
|
|
#
|
|
# File: makefile.wat
|
|
# Author: Julian Smart
|
|
# Created: 1998
|
|
# Changelist: 2003-02-25 - Juergen Ulbts - update from wxWindows 2.5.x/HEAD branch
|
|
#
|
|
# Makefile : Builds TIFF library for Watcom C++, WIN32
|
|
# This makefile has to rename files because apparently Watcom C++
|
|
# can't deal with greater than 8.3 filenames (can't
|
|
# make tif_close.c, for example)
|
|
|
|
WXDIR = ..\..
|
|
EXTRACPPFLAGS=-i=..\zlib
|
|
|
|
!include $(WXDIR)\src\makewat.env
|
|
|
|
# set RENAME to 1 to rename the files to the short names -- this is needed
|
|
# with older Watcom versions
|
|
# RENAME=1
|
|
|
|
!ifeq RENAME 1
|
|
TIFF=
|
|
EXTRACPPFLAGS+=-dwxUSE_SHORTNAMES
|
|
!else
|
|
TIFF=tif_
|
|
!endif
|
|
|
|
WXLIB = $(WXDIR)\lib
|
|
|
|
LIBTARGET = $(WXLIB)\tiff$(WATCOM_SUFFIX).lib
|
|
|
|
OBJECTS= &
|
|
!ifeq RENAME 1
|
|
$(OUTPUTDIR)\_aux.obj &
|
|
!else
|
|
$(OUTPUTDIR)\tif_aux.obj &
|
|
!endif
|
|
$(OUTPUTDIR)\$(TIFF)close.obj &
|
|
$(OUTPUTDIR)\$(TIFF)codec.obj &
|
|
$(OUTPUTDIR)\$(TIFF)compress.obj &
|
|
$(OUTPUTDIR)\$(TIFF)dir.obj &
|
|
$(OUTPUTDIR)\$(TIFF)dirinfo.obj &
|
|
$(OUTPUTDIR)\$(TIFF)dirread.obj &
|
|
$(OUTPUTDIR)\$(TIFF)dirwrite.obj &
|
|
$(OUTPUTDIR)\$(TIFF)dumpmode.obj &
|
|
$(OUTPUTDIR)\$(TIFF)error.obj &
|
|
$(OUTPUTDIR)\$(TIFF)fax3.obj &
|
|
$(OUTPUTDIR)\$(TIFF)fax3sm.obj &
|
|
$(OUTPUTDIR)\$(TIFF)flush.obj &
|
|
$(OUTPUTDIR)\$(TIFF)getimage.obj &
|
|
$(OUTPUTDIR)\$(TIFF)jpeg.obj &
|
|
$(OUTPUTDIR)\$(TIFF)luv.obj &
|
|
$(OUTPUTDIR)\$(TIFF)lzw.obj &
|
|
$(OUTPUTDIR)\$(TIFF)next.obj &
|
|
$(OUTPUTDIR)\$(TIFF)open.obj &
|
|
$(OUTPUTDIR)\$(TIFF)packbits.obj &
|
|
$(OUTPUTDIR)\$(TIFF)pixarlog.obj &
|
|
$(OUTPUTDIR)\$(TIFF)predict.obj &
|
|
$(OUTPUTDIR)\$(TIFF)print.obj &
|
|
$(OUTPUTDIR)\$(TIFF)read.obj &
|
|
$(OUTPUTDIR)\$(TIFF)strip.obj &
|
|
$(OUTPUTDIR)\$(TIFF)swab.obj &
|
|
$(OUTPUTDIR)\$(TIFF)thunder.obj &
|
|
$(OUTPUTDIR)\$(TIFF)tile.obj &
|
|
$(OUTPUTDIR)\$(TIFF)version.obj &
|
|
$(OUTPUTDIR)\$(TIFF)warning.obj &
|
|
$(OUTPUTDIR)\$(TIFF)win32.obj &
|
|
$(OUTPUTDIR)\$(TIFF)write.obj &
|
|
$(OUTPUTDIR)\$(TIFF)zip.obj
|
|
|
|
all: $(OUTPUTDIR) $(RENAME) $(LIBTARGET) .SYMBOLIC
|
|
|
|
!ifeq RENAME 1
|
|
rename: .SYMBOLIC
|
|
copy tif_predict.h tif_pred.h
|
|
copy tif_aux.c _aux.c
|
|
copy tif_close.c close.c
|
|
copy tif_codec.c codec.c
|
|
copy tif_compress.c compress.c
|
|
copy tif_dir.c dir.c
|
|
copy tif_dirinfo.c dirinfo.c
|
|
copy tif_dirread.c dirread.c
|
|
copy tif_dirwrite.c dirwrite.c
|
|
copy tif_dumpmode.c dumpmode.c
|
|
copy tif_error.c error.c
|
|
copy tif_fax3.c fax3.c
|
|
copy tif_fax3sm.c fax3sm.c
|
|
copy tif_flush.c flush.c
|
|
copy tif_getimage.c getimage.c
|
|
copy tif_jpeg.c jpeg.c
|
|
copy tif_luv.c luv.c
|
|
copy tif_lzw.c lzw.c
|
|
copy tif_next.c next.c
|
|
copy tif_open.c open.c
|
|
copy tif_packbits.c packbits.c
|
|
copy tif_pixarlog.c pixarlog.c
|
|
copy tif_predict.c predict.c
|
|
copy tif_print.c print.c
|
|
copy tif_read.c read.c
|
|
copy tif_strip.c strip.c
|
|
copy tif_swab.c swab.c
|
|
copy tif_thunder.c thunder.c
|
|
copy tif_tile.c tile.c
|
|
copy tif_version.c version.c
|
|
copy tif_warning.c warning.c
|
|
copy tif_win32.c win32.c
|
|
copy tif_write.c write.c
|
|
copy tif_zip.c zip.c
|
|
!endif
|
|
|
|
$(OUTPUTDIR):
|
|
@if not exist $^@ mkdir $^@
|
|
|
|
LBCFILE=$(OUTPUTDIR)\tiff.lbc
|
|
$(LIBTARGET) : $(OBJECTS)
|
|
%create $(LBCFILE)
|
|
@for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
|
|
wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)
|
|
|
|
clean: .SYMBOLIC
|
|
-erase *.obj
|
|
-erase $(LIBTARGET)
|
|
-erase *.pch
|
|
-erase *.err
|
|
-erase *.lbc
|
|
!ifeq RENAME 1
|
|
-erase tif_pred.h
|
|
-erase _aux.c
|
|
-erase close.c
|
|
-erase codec.c
|
|
-erase compress.c
|
|
-erase dir.c
|
|
-erase dirinfo.c
|
|
-erase dirread.c
|
|
-erase dirwrite.c
|
|
-erase dumpmode.c
|
|
-erase error.c
|
|
-erase fax3.c
|
|
-erase fax3sm.c
|
|
-erase flush.c
|
|
-erase getimage.c
|
|
-erase jpeg.c
|
|
-erase luv.c
|
|
-erase lzw.c
|
|
-erase next.c
|
|
-erase open.c
|
|
-erase packbits.c
|
|
-erase pixarlog.c
|
|
-erase predict.c
|
|
-erase print.c
|
|
-erase read.c
|
|
-erase strip.c
|
|
-erase swab.c
|
|
-erase thunder.c
|
|
-erase tile.c
|
|
-erase version.c
|
|
-erase warning.c
|
|
-erase win32.c
|
|
-erase write.c
|
|
-erase zip.c
|
|
!endif
|
|
|
|
cleanall: clean
|
|
|