4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# makefile for libpng
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Copyright (C) 1998 Tim Wegner
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# For conditions of distribution and use, see copyright notice in png.h
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# To use, do "nmake /f scripts\makefile.vcawin32"
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# -------- Microsoft Visual C++ 5.0 and later, uses assembler code --------
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# If you don't want to use assembler (MMX) code, use makefile.vcwin32 instead.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# Compiler, linker, librarian, and other tools
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacCC = cl
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeLD = link
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeAR = lib
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeCFLAGS = -DPNG_USE_PNGVCRD -nologo -MD -O2 -W3 -I..\zlib
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeLDFLAGS = -nologo
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacARFLAGS = -nologo
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacRM = del
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# File extensions
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeO=.obj
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#uncomment next to put error messages in a file
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#ERRFILE= >> pngerrs.log
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
a3d3ab94806056d2355afea6fe8daac41059b9fbludovicp# Variables
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludoOBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeOBJS2 = pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O)
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeOBJS3 = pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeOBJS4 = pngvcrd$(O)
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeOBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo# Targets
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeall: libpng.lib
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergarapng$(O): png.h pngconf.h
266c5071a91fda6a5159b08ea8d45261228d03d5neil_a_wilson $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
9da44d3de0a7180285a77b7e8d2426a72aca249ejvergarapngset$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngget$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngread$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngpread$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngrtran$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngrutil$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngerror$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngmem$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngrio$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngwio$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngtest$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngtrans$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngwrite$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngwtran$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngwutil$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
pngvcrd$(O): png.h pngconf.h
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
libpng.lib: $(OBJS)
-$(RM) $@
$(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE)
pngtest.exe: pngtest$(O) libpng.lib
$(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE)
test: pngtest.exe
pngtest
clean:
-$(RM) *$(O)
-$(RM) libpng.lib
-$(RM) pngtest.exe
-$(RM) pngout.png
# End of makefile for libpng