use correctly defined LIBPAGESIZE instead of 512 for the page size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-01-22 21:02:34 +00:00
parent 8bbbae215c
commit efa7066d36
3 changed files with 27 additions and 18 deletions

View File

@@ -1,24 +1,26 @@
!include makewat.env !include makewat.env
all: $(OUTPUTDIR) $(LIBTARGET)
$(OUTPUTDIR):
@if not exist $^@ mkdir $^@
# the name of the file containing the objects to be put in the library # the name of the file containing the objects to be put in the library
LNK = tmp.lbc LBCFILE=$(OUTPUTDIR)$(LIBTARGET).lbc
all: $(LIBTARGET)
$(LIBTARGET) : $(OBJECTS) $(LIBTARGET) : $(OBJECTS)
%create $(LNK) %create $(LBCFILE)
@for %i in ( $(OBJECTS) ) do @%append $(LNK) +%i @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
wlib /b /c /n /p=512 $^@ @$(LNK) $(LIB) /b /c /n /p=512 $^@ @$(LBCFILE)
clean: .SYMBOLIC clean: .SYMBOLIC
-erase *.obj -erase $(OUTPUTDIR)*.obj
-erase *.bak -erase $(OUTPUTDIR)*.bak
-erase *.err -erase $(OUTPUTDIR)*.err
-erase *.pch -erase $(OUTPUTDIR)*.pch
-erase *.lib -erase $(OUTPUTDIR)*.lib
-erase *.lbc -erase $(OUTPUTDIR)*.lbc
-erase *.res -erase $(OUTPUTDIR)*.res
-erase *.exe -erase $(OUTPUTDIR)*.exe
-erase *.lbc -erase $(OUTPUTDIR)*.lbc
-erase $(LIBTARGET) -erase $(LIBTARGET)

View File

@@ -76,10 +76,16 @@ BASEDIRPREFIX =
ARCHINCDIR=$(WXDIR)\lib\$(TOOLKIT)$(DEBUGSUFFIX) ARCHINCDIR=$(WXDIR)\lib\$(TOOLKIT)$(DEBUGSUFFIX)
# set the things which depend on debug/release
#
# note that the values for LIBPAGESIZE are minimal possible, the library
# doesn't link (Error! Library too large) with values smaller than given
!ifeq FINAL 1 !ifeq FINAL 1
CONFIGURATION=Release CONFIGURATION=Release
LIBPAGESIZE=/p=1024
!else !else
CONFIGURATION=Debug CONFIGURATION=Debug
LIBPAGESIZE=/p=2048
!endif !endif
# set OUTPUTDIR to the directory to be used for the .obj files created during # set OUTPUTDIR to the directory to be used for the .obj files created during
@@ -102,6 +108,7 @@ LIBNAME=wx$(TOOLKIT)$(DEBUGSUFFIX)$(WATCOM_SUFFIX)
LEVEL = 386 LEVEL = 386
CXX = wpp$(LEVEL) CXX = wpp$(LEVEL)
CC = wcc$(LEVEL) CC = wcc$(LEVEL)
LIB = wlib /q
RC = wrc RC = wrc
WINVERFLAGS = /dWINVER=0x400 WINVERFLAGS = /dWINVER=0x400
BINDCOMMAND = wrc BINDCOMMAND = wrc

View File

@@ -362,11 +362,11 @@ $(OUTPUTDIR):
$(SETUP_H): $(WXDIR)\include\wx\msw\setup.h $(ARCHINCDIR)\wx $(SETUP_H): $(WXDIR)\include\wx\msw\setup.h $(ARCHINCDIR)\wx
copy $(WXDIR)\include\wx\msw\setup.h $@ copy $(WXDIR)\include\wx\msw\setup.h $@
LBCFILE=wx$(TOOLKIT).lbc LBCFILE=$(OUTPUTDIR)wx$(TOOLKIT).lbc
$(LIBTARGET) : $(OBJECTS) $(LIBTARGET) : $(OBJECTS)
%create $(LBCFILE) %create $(LBCFILE)
@for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
wlib /b /c /n /p=512 $^@ @$(LBCFILE) $(LIB) /b /c /n $(LIBPAGESIZE) $^@ @$(LBCFILE)
clean: .SYMBOLIC $(EXTRATARGETSCLEAN) clean: .SYMBOLIC $(EXTRATARGETSCLEAN)