3 # Author: David Webster
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 !if "$(WXMAKINGDLL)" != "0"
22 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
26 # Change WXDIR or WXWIN to wherever wxWindows is found
29 OS2PNGDIR=$(WXDIR)\src\png
30 OS2PNGINC=$(WINPNGDIR)
31 OS2PNGLIB=$(WXDIR)\lib\os2png.lib
32 !if "$(WXMAKINGDLL)" != "1"
33 OS2PNGLIB=$(WXDIR)\lib\os2png.lib
35 OS2PNGLIB=$(WXDIR)\lib\os2png.dll
37 INC=-I$(WXDIR)\src\zlib -I$(OS2PNGINC)
54 !if "$(WXMAKINGDLL)" == "1"
60 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
61 LINK_DEBUG_FLAGS=/DEBUG
66 !if "$(WXMAKINGDLL)" == "1"
73 LINK_DEBUG_FLAGS=/RELEASE
77 !if [md $(OS2PNGDIR)\$D]
80 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
81 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
82 LIBS=..\\..\\lib\os2zlibd.lib
84 {..\png}.c{..\png\$D}.obj:
87 $(CPPFLAGS) /Fo$@ /Tp $<
92 ..\png\$D\pngread.obj \
93 ..\png\$D\pngrtran.obj \
94 ..\png\$D\pngrutil.obj \
95 ..\png\$D\pngpread.obj \
96 ..\png\$D\pngtrans.obj \
97 ..\png\$D\pngwrite.obj \
98 ..\png\$D\pngwtran.obj \
99 ..\png\$D\pngwutil.obj \
100 ..\png\$D\pngerror.obj \
101 ..\png\$D\pngmem.obj \
102 ..\png\$D\pngwio.obj \
103 ..\png\$D\pngrio.obj \
104 ..\png\$D\pngget.obj \
109 !if "$(WXMAKINGDLL)" != "1"
111 $(WXDIR)\lib\os2png.lib: $(OBJECTS)
112 touch $(WXDIR)\lib\os2png.lib
113 del $(WXDIR)\lib\os2png.lib
114 ilib $(OS2LIBFLAGS) $@ @<<
120 # Update the dynamic link library
121 $(WXDIR)\lib\os2png.dll: $(OBJECTS)
123 /B" $(LINKFLAGS)" /Fe$@
126 $(WXDIR)\src\os2\os2png.def
128 implib $(WXDIR)\lib\os2pngd.lib $(WXDIR)\src\os2\os2png.def
134 erase /N $(OS2PNGDIR)\$D