OBJSUFF=obj
SRCSUFF=c
-OS2FLAGS=/c /W3 /DOS232 /D__VISAGECPP__ /Ss /Q /N100
+OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Ss /Q /N100
OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
OS2LIBFLAGS=/NOL /NOE
OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
# Change WXDIR or WXWIN to wherever wxWindows is found
-WXDIR = j:\dev\wx2\wxWindows
+WXDIR = $(WXWIN)
OS2ZLIBDIR=$(WXDIR)\src\zlib
OS2ZLIBINC=$(WINPNGDIR)
!endif
!if "$(FINAL)" == "0"
-D=Debug
+D=DebugOS2
OPT =
DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
LINK_DEBUG_FLAGS=/DEBUG
!else
# /O1 - smallest code
# /O2 - fastest code
-D=Release
+D=RelseOS2
OPT = /O+ /Oc /G5
DEBUG_FLAGS=
LINK_DEBUG_FLAGS=/RELEASE
CRTFLAG=/Gm /Gd
!endif
+!if [md $(OS2ZLIBDIR)\$D]
+!endif
+
CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
{..\zlib}.c{..\zlib\$D}.obj:
..\zlib\$D\uncompr.obj \
..\zlib\$D\zutil.obj
-all: $(OS2ZLIBDIR)\$D $(OS2ZLIBLIB)
-
-$(OS2ZLIBDIR)\$D:
- md $(OS2ZLIBDIR)\$D
+all: $(OS2ZLIBLIB)
$(WXDIR)\lib\os2zlib.lib: $(OBJECTS)
touch $(WXDIR)\lib\os2zlib.lib
<<
clean:
- del *.obj
- del *.exe
- del *.lib
+ del $(OS2ZLIBLIB)
+ erase /N $(OS2ZLIBDIR)\$D
+ rd $(OS2ZLIBDIR)\$D
cleanall: clean