X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..fdda2df62d5055abd263186deb6a859d85a73fd3:/src/makewat.env diff --git a/src/makewat.env b/src/makewat.env index c4281cc084..3b86de02a4 100644 --- a/src/makewat.env +++ b/src/makewat.env @@ -10,93 +10,33 @@ FINAL=0 WATCOMDIR=$(%WATCOM) -#.EXTENSIONS: .exe .obj .c .cc .cpp .res .rc .def -# Set this to win386 if compiling under WIN386 mode, or -# to windows for normal 16-bit Windows, nt if compiling for WIN32s/NT -MODE= nt # windows +.EXTENSIONS: +.EXTENSIONS: .exe .obj .c .cc .cpp .res .rc .def -WXDIR = c:\wx -WXINC = $(WXDIR)\include\msw -WXBASEINC = $(WXDIR)\include\base +#WXDIR = d:\wx2\wxwind~1 +WXDIR = $(%WXWIN) +WXINC = $(WXDIR)\include # Suffixes OBJSUFF=obj SRCSUFF=cpp -DEBUG=0 +WXDEBUG=0 !ifneq NOPRECOMP 1 PRECOMP = /fh=$(WXDIR)\src\msw\watcom.pch !endif -RC = wrc - -!ifeq MODE win386 - -##### WIN386 OPTIONS - -# Set LEVEL to 386 if using 32-bit compilation -LEVEL = 386 -CCC = wpp$(LEVEL) -CC = wcc$(LEVEL) -OS_TARGET = win386 -MODEL = -LINKOPTION = win386 -BINDCOMMAND = wbind -WATLIBDIR = $(WATCOMDIR)\lib386\win -MINDATA = option mindata=100K -MAXDATA = option maxdata=100K -STACK = option stack=64k -EXTRALIBS = $(WXDIR)\contrib\ctl3d\ctl3d32.obj -IFLAGS = -i=$(WXINC) -i=$(WXBASEINC) -i=$(WXDIR)\contrib\fafa -i=$(%watcom)\h;$(%watcom)\h\win -RESFLAGS1 = -r -bt=windows /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -RESFLAGS2 = -R $(name) /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -DEBUGINFO = debug all - -#CPPFLAGS = /zw /w1 /zq /d2 /d__WIN386__ /zt4 $(MODEL) /d__WINDOWS__ -CPPFLAGS = /zw /w1 /zq /d1 /d__WIN386__ $(MODEL) $(PRECOMP) /d__WINDOWS__ $(EXTRACPPFLAGS) - -!endif -#### END WIN386 MODE - -!ifeq MODE windows - -##### 16-BIT WINDOWS OPTIONS - -# Set LEVEL to 386 if using 32-bit compilation -LEVEL = -CCC = wpp$(LEVEL) -CC = wcc$(LEVEL) -OS_TARGET = windows -MODEL =/ml -LINKOPTION = windows -BINDCOMMAND = echo -WATLIBDIR = $(WATCOMDIR)\lib286\win -MINDATA = -MAXDATA = -STACK = -EXTRALIBS=$(WATLIBDIR)\shell.lib $(WATLIBDIR)\ddeml.lib $(WATLIBDIR)\ctl3d.lib $(WATLIBDIR)\commdlg.lib $(WATLIBDIR)\mmsystem.lib -IFLAGS = -i=$(WXINC) -i=$(WXBASEINC) -i=$(WXDIR)\contrib\fafa -RESFLAGS1 = -r -bt=windows -i=$(WXINC) -i=$(WXDIR)\contrib\fafa -RESFLAGS2 = -R +!ifeq WXDEBUG 1 +DEBUGFLAGS = /D__WXDEBUG__ /o1 DEBUGINFO = debug all - -#-i=$(WXDIR)\contrib\itsybits - -# Note: I've added the data threshold (/zt4) for 16-bit operation, -# or we get link failure (TEXT segment overflow). Is this OK for -# 32-bit mode also? -- JACS -# An alternative might be /zc (put string literals in code segment). -#CPPFLAGS = /zw /w1 /zq /d1 /zt4 $(MODEL) /d__WINDOWS__ -CPPFLAGS = /zw /w2 /zq /d1 $(MODEL) $(PRECOMP) /d__WINDOWS__ $(EXTRACPPFLAGS) - +!else +DEBUGFLAGS = +DEBUGINFO = !endif -#### END WINDOWS MODE -!ifeq MODE nt - -##### NT OPTIONS +RC = wrc LEVEL = 386 CCC = wpp$(LEVEL) @@ -111,13 +51,13 @@ WATLIBDIR = $(WATCOMDIR)\lib386\nt MINDATA = MAXDATA = STACK = option stack=64k -EXTRALIBS = $(WATLIBDIR)\ctl3d32.lib $(WATLIBDIR)\odbc32.lib -IFLAGS = -i=$(WXINC) -i=$(WXBASEINC) -i=$(WXDIR)\contrib\fafa -i=$(%watcom)\h;$(%watcom)\h\nt -RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -RESFLAGS2 = -R $(name) /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -DEBUGINFO = debug all # Linking: comment out if operating in a non-debuggable environment - -#-i=$(WXDIR)\contrib\itsybits +LIBS = $(WXDIR)\lib\wx.lib $(WXDIR)\lib\regex.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\png.lib $(WXDIR)\lib\tiff.lib $(WXDIR)\lib\jpeg.lib & + $(WATLIBDIR)\comctl32.lib $(WATLIBDIR)\comdlg32.lib & + $(WATLIBDIR)\ole32.lib $(WATLIBDIR)\oleaut32.lib $(WATLIBDIR)\opengl32.lib & + $(WATLIBDIR)\uuid.lib $(WXDIR)\lib\watcom\odbc32.lib +IFLAGS = -i=$(WXINC) -i=$(WXDIR)\contrib\include -i=$(%watcom)\h;$(%watcom)\h\nt;$(WXDIR)\src\regex;$(WXDIR)\src\png;$(WXDIR)\src\zlib;$(WXDIR)\src\jpeg;$(WXDIR)\src\tiff;$(WXDIR)\include\wx\msw\gnuwin32 +RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include /i$(WXDIR)\contrib\include +RESFLAGS2 = -R $(name) /i$(WXDIR)\include /i$(WXDIR)\contrib\include # Here are some possible optimization flags: # /5r Pentium timings @@ -127,22 +67,17 @@ DEBUGINFO = debug all # Linking: comment out if operating in a non-debuggable # The Watcom-recommended flags for optimum Pentium speed are: # /oneatx /zp4 /5 /fpi87 /fp5 -OPTFLAGS=/ox /5r # /DDEBUG=1 +OPTFLAGS=/ox /5r # /d1 for line numbers only: anything else produces an enormous wx32.lib -CPPFLAGS = /bt=nt /w1 /D__WIN32__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) /d1 /d__WINDOWS__ $(EXTRACPPFLAGS) - -!endif -#### END NT MODE +# +# NB: /bm switch is needed for thread-safe runtime, if you don't use +# wxThread you may remove it +CPPFLAGS = /bt=nt /w1 /DWIN32 /bm /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) $(DEBUGFLAGS) /d__WXMSW__ $(EXTRACPPFLAGS) # /d__WATCOMC__ .cpp.obj: # $< # .AUTODEPEND *$(CCC) $(CPPFLAGS) $(IFLAGS) $< -# %create tmp.lbc -# @%append tmp.lbc $(CPPFLAGS) $(IFLAGS) $< -# echo $< -# $(CCC) @tmp.lbc - .c.obj: # $< # .AUTODEPEND *$(CC) $(CPPFLAGS) $(IFLAGS) $<