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)
19 WINPNGLIB=..\..\lib\png.lib
21 WINPNGLIB=..\..\lib\pngd.lib
26 # Set this to nothing if your compiler is MS C++ 7
37 CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
38 CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC)
39 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
42 # /Ox for real FINAL version
44 CPPFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
45 CFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
46 LINKFLAGS=/NOD /ONERROR:NOEXE
50 !if "$(CRTFLAG)" == ""
55 OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
56 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
57 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
61 $(WINPNGLIB): $(OBJECTS)
69 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c