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
20 !else if "$(FINAL)" == "hybrid"
21 WINPNGLIB=..\..\lib\pngh.lib
23 WINPNGLIB=..\..\lib\pngd.lib
28 # Set this to nothing if your compiler is MS C++ 7
39 CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
40 CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC)
41 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
43 !else if "$(FINAL)" == "hybrid"
45 CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
46 CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC)
47 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
50 # /Ox for real FINAL version
52 CPPFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
53 CFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
54 LINKFLAGS=/NOD /ONERROR:NOEXE
58 !if "$(CRTFLAG)" == ""
63 OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
64 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
65 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
69 $(WINPNGLIB): $(OBJECTS)
77 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c