3 # Author: David Webster
6 # Copyright: c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds os2png.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 # Change WXDIR or WXWIN to wherever wxWindows is found
24 OS2ZLIBDIR=$(WXDIR)\src\zlib
25 OS2ZLIBINC=$(WINPNGDIR)
26 OS2ZLIBLIB=$(WXDIR)\lib\os2zlib.lib
47 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
48 LINK_DEBUG_FLAGS=/DEBUG
56 LINK_DEBUG_FLAGS=/RELEASE
60 !if [md $(OS2ZLIBDIR)\$D]
63 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
65 {..\zlib}.c{..\zlib\$D}.obj:
68 $(CPPFLAGS) /Fo$@ /Tp $<
72 ..\zlib\$D\adler32.obj \
73 ..\zlib\$D\compress.obj \
74 ..\zlib\$D\crc32.obj \
75 ..\zlib\$D\deflate.obj \
77 ..\zlib\$D\infblock.obj \
78 ..\zlib\$D\infcodes.obj \
79 ..\zlib\$D\inflate.obj \
80 ..\zlib\$D\inftrees.obj \
81 ..\zlib\$D\infutil.obj \
82 ..\zlib\$D\inffast.obj \
83 ..\zlib\$D\trees.obj \
84 ..\zlib\$D\uncompr.obj \
89 $(WXDIR)\lib\os2zlib.lib: $(OBJECTS)
90 touch $(WXDIR)\lib\os2zlib.lib
91 del $(WXDIR)\lib\os2zlib.lib
92 ilib $(OS2LIBFLAGS) $@ @<<
98 erase /N $(OS2ZLIBDIR)\$D