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
16 WINPNGINC = $(WINPNGDIR)
17 WINPNGLIB = ..\..\lib\winpng.lib
21 # Set this to nothing if your compiler is MS C++ 7
32 CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
33 CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC)
34 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
37 # /Ox for real FINAL version
39 CPPFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
40 CFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
41 LINKFLAGS=/NOD /ONERROR:NOEXE
45 !if "$(CRTFLAG)" == ""
50 OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
51 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
52 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
56 $(WINPNGLIB): $(OBJECTS)
64 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c