3 # Author: David Webster
7 # Licence: wxWindows Licence
11 # Makefile : Builds os2png.lib library for OS/2 3.0/4.0
17 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Ss /Q /N100
18 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
20 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
22 !if "$(WXMAKINGDLL)" != "0"
23 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
27 # Change WXDIR or WXWIN to wherever wxWindows is found
30 OS2PNGDIR=$(WXDIR)\src\png
31 OS2PNGINC=$(WINPNGDIR)
32 OS2PNGLIB=$(WXDIR)\lib\os2png.lib
33 !if "$(WXMAKINGDLL)" != "1"
34 OS2PNGLIB=$(WXDIR)\lib\os2png.lib
36 OS2PNGLIB=$(WXDIR)\lib\os2png.dll
38 INC=-I$(WXDIR)\src\zlib -I$(OS2PNGINC)
55 !if "$(WXMAKINGDLL)" == "1"
61 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
62 LINK_DEBUG_FLAGS=/DEBUG
67 !if "$(WXMAKINGDLL)" == "1"
74 LINK_DEBUG_FLAGS=/RELEASE
78 !if [md $(OS2PNGDIR)\$D]
81 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
82 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
83 LIBS=..\\..\\lib\os2zlibd.lib
85 {..\png}.c{..\png\$D}.obj:
88 $(CPPFLAGS) /Fo$@ /Tp $<
93 ..\png\$D\pngread.obj \
94 ..\png\$D\pngrtran.obj \
95 ..\png\$D\pngrutil.obj \
96 ..\png\$D\pngpread.obj \
97 ..\png\$D\pngtrans.obj \
98 ..\png\$D\pngwrite.obj \
99 ..\png\$D\pngwtran.obj \
100 ..\png\$D\pngwutil.obj \
101 ..\png\$D\pngerror.obj \
102 ..\png\$D\pngmem.obj \
103 ..\png\$D\pngwio.obj \
104 ..\png\$D\pngrio.obj \
105 ..\png\$D\pngget.obj \
110 !if "$(WXMAKINGDLL)" != "1"
112 $(WXDIR)\lib\os2png.lib: $(OBJECTS)
113 touch $(WXDIR)\lib\os2png.lib
114 del $(WXDIR)\lib\os2png.lib
115 ilib $(OS2LIBFLAGS) $@ @<<
121 # Update the dynamic link library
122 $(WXDIR)\lib\os2png.dll: $(OBJECTS)
124 /B" $(LINKFLAGS)" /Fe$@
127 $(WXDIR)\src\os2\os2png.def
129 implib $(WXDIR)\lib\os2pngd.lib $(WXDIR)\src\os2\os2png.def
135 erase /N $(OS2PNGDIR)\$D