6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds winpng.lib library for Windows 3.1
12 # Change WXDIR or WXWIN to wherever wxWindows is found
14 WXLIB = $(WXDIR)\lib\wx.lib
15 WXINC = $(WXDIR)\include
18 WINPNGINC = $(WINPNGDIR)
19 WINPNGLIB = ..\..\lib\winpng.lib
23 # Set this to nothing if your compiler is MS C++ 7
34 CPPFLAGS= /W4 /Zi /MDd /GX $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
35 CFLAGS= /W4 /Zi /MDd /GX /Od /Dwx_msw $(INC)
36 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
38 # /Ox for real FINAL version
40 CPPFLAGS= /W4 /MDd /GX /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
41 CFLAGS= /W4 /MDd /GX /Dwx_msw $(INC)
42 LINKFLAGS=/NOD /ONERROR:NOEXE
45 OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
46 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
47 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
51 $(WINPNGLIB): $(OBJECTS)
59 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c
62 erase *.obj *.exe *.lib