3 # Author: David Webster
10 # Makefile : Builds os2zlib.lib library for OS/2 3.0/4.0
16 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Ss /Q /N100
17 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
19 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
21 !if "$(WXMAKINGDLL)" != "0"
22 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
26 # Change WXDIR or WXWIN to wherever wxWindows is found
29 OS2ZLIBDIR=$(WXDIR)\src\zlib
30 OS2ZLIBINC=$(WINPNGDIR)
31 !if "$(WXMAKINGDLL)" != "1"
32 OS2ZLIBLIB=$(WXDIR)\lib\os2zlib.lib
34 OS2ZLIBLIB=$(WXDIR)\lib\os2zlib.dll
53 !if "$(WXMAKINGDLL)" == "1"
59 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
60 LINK_DEBUG_FLAGS=/DEBUG
65 !if "$(WXMAKINGDLL)" == "1"
72 LINK_DEBUG_FLAGS=/RELEASE
76 !if [md $(OS2ZLIBDIR)\$D]
79 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
80 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
82 {..\zlib}.c{..\zlib\$D}.obj:
85 $(CPPFLAGS) /Fo$@ /Tp $<
89 ..\zlib\$D\adler32.obj \
90 ..\zlib\$D\compress.obj \
91 ..\zlib\$D\crc32.obj \
92 ..\zlib\$D\deflate.obj \
94 ..\zlib\$D\infblock.obj \
95 ..\zlib\$D\infcodes.obj \
96 ..\zlib\$D\inflate.obj \
97 ..\zlib\$D\inftrees.obj \
98 ..\zlib\$D\infutil.obj \
99 ..\zlib\$D\inffast.obj \
100 ..\zlib\$D\trees.obj \
101 ..\zlib\$D\uncompr.obj \
106 !if "$(WXMAKINGDLL)" != "1"
108 $(WXDIR)\lib\os2zlib.lib: $(OBJECTS)
109 touch $(WXDIR)\lib\os2zlib.lib
110 del $(WXDIR)\lib\os2zlib.lib
111 ilib $(OS2LIBFLAGS) $@ @<<
117 # Update the dynamic link library
118 $(WXDIR)\lib\os2zlib.dll: $(OBJECTS)
120 /B" $(LINKFLAGS)" /Fe$@
123 $(WXDIR)\src\os2\os2zlib.def
125 implib $(WXDIR)\lib\os2zlibd.lib $(WXDIR)\src\os2\os2zlib.def
131 erase /N $(OS2ZLIBDIR)\$D