don't always rename the files before compiling with Watcom, this is not needed any longer with OpenWatcom (but still keep the possibility to enable this file renaming for older versions)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-01-22 17:15:39 +00:00
parent a0499e2f21
commit c9b6238d67
3 changed files with 63 additions and 40 deletions

View File

@@ -14,45 +14,63 @@ 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.lib
LIBTARGET = $(WXLIB)\tiff$(WATCOM_SUFFIX).lib
OBJECTS= &
_aux.obj &
close.obj &
codec.obj &
compress.obj &
dir.obj &
dirinfo.obj &
dirread.obj &
dirwrite.obj &
dumpmode.obj &
error.obj &
fax3.obj &
fax3sm.obj &
flush.obj &
getimage.obj &
jpeg.obj &
luv.obj &
lzw.obj &
next.obj &
open.obj &
packbits.obj &
pixarlog.obj &
predict.obj &
print.obj &
read.obj &
strip.obj &
swab.obj &
thunder.obj &
tile.obj &
version.obj &
warning.obj &
win32.obj &
write.obj &
zip.obj
!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
@@ -88,13 +106,16 @@ rename: .SYMBOLIC
copy tif_win32.c win32.c
copy tif_write.c write.c
copy tif_zip.c zip.c
!endif
all: rename $(OBJECTS) $(LIBTARGET)
$(OUTPUTDIR):
@if not exist $^@ mkdir $^@
LBCFILE=$(OUTPUTDIR)tiff.lbc
$(LIBTARGET) : $(OBJECTS)
%create tmp.lbc
@for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i
wlib /b /c /n /p=512 $^@ @tmp.lbc
%create $(LBCFILE)
@for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)
clean: .SYMBOLIC
-erase *.obj
@@ -102,6 +123,7 @@ clean: .SYMBOLIC
-erase *.pch
-erase *.err
-erase *.lbc
!ifeq RENAME 1
-erase tif_pred.h
-erase _aux.c
-erase close.c
@@ -136,6 +158,7 @@ clean: .SYMBOLIC
-erase win32.c
-erase write.c
-erase zip.c
!endif
cleanall: clean

View File

@@ -37,7 +37,7 @@
* The original Berkeley copyright notice appears below in its entirety.
*/
/* Watcom C++ (or its make utility) doesn't like long filenames */
#ifdef __WATCOMC__
#ifdef wxUSE_SHORTNAMES
#include "tif_pred.h"
#else
#include "tif_predict.h"

View File

@@ -31,7 +31,7 @@
*/
#include "tiffiop.h"
/* Watcom C++ (or its make utility) doesn't like long filenames */
#ifdef __WATCOMC__
#ifdef wxUSE_SHORTNAMES
#include "tif_pred.h"
#else
#include "tif_predict.h"