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 OS2PNGDIR=$(WXDIR)\src\png
25 OS2PNGINC=$(WINPNGDIR)
26 OS2PNGLIB=$(WXDIR)\lib\os2png.lib
28 INC=-I$(WXDIR)\src\zlib -I$(OS2PNGINC)
47 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
48 LINK_DEBUG_FLAGS=/DEBUG
56 LINK_DEBUG_FLAGS=/RELEASE
60 !if [md $(OS2PNGDIR)\$D]
63 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
65 {..\png}.c{..\png\$D}.obj:
68 $(CPPFLAGS) /Fo$@ /Tp $<
73 ..\png\$D\pngread.obj \
74 ..\png\$D\pngrtran.obj \
75 ..\png\$D\pngrutil.obj \
76 ..\png\$D\pngpread.obj \
77 ..\png\$D\pngtrans.obj \
78 ..\png\$D\pngwrite.obj \
79 ..\png\$D\pngwtran.obj \
80 ..\png\$D\pngwutil.obj \
81 ..\png\$D\pngerror.obj \
82 ..\png\$D\pngmem.obj \
83 ..\png\$D\pngwio.obj \
84 ..\png\$D\pngrio.obj \
85 ..\png\$D\pngget.obj \
90 $(WXDIR)\lib\os2png.lib: $(OBJECTS)
91 touch $(WXDIR)\lib\os2png.lib
92 del $(WXDIR)\lib\os2png.lib
93 ilib $(OS2LIBFLAGS) $@ @<<
99 erase /N $(OS2PNGDIR)\$D