|
fukasawa |
e60969 |
# makefile for libpng
|
|
fukasawa |
e60969 |
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
|
fukasawa |
e60969 |
# Copyright (C) 2006, 2009, 2014 Glenn Randers-Pehrson
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
# This code is released under the libpng license.
|
|
fukasawa |
e60969 |
# For conditions of distribution and use, see the disclaimer
|
|
fukasawa |
e60969 |
# and license in png.h
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
# Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# -------- Microsoft C 5.1 and later, does not use assembler code --------
|
|
fukasawa |
e60969 |
MODEL=L
|
|
fukasawa |
e60969 |
CPPFLAGS=-I..\zlib
|
|
fukasawa |
e60969 |
CFLAGS=-Oait -Gs -nologo -W3 -A$(MODEL)
|
|
fukasawa |
e60969 |
#-Ox generates bad code with MSC 5.1
|
|
fukasawa |
e60969 |
CC=cl
|
|
fukasawa |
e60969 |
LD=link
|
|
fukasawa |
e60969 |
LDFLAGS=/e/st:0x1500/noe
|
|
fukasawa |
e60969 |
CP=copy
|
|
fukasawa |
e60969 |
O=.obj
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Pre-built configuration
|
|
fukasawa |
e60969 |
# See scripts\pnglibconf.mak for more options
|
|
fukasawa |
e60969 |
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#uncomment next to put error messages in a file
|
|
fukasawa |
e60969 |
ERRFILE= >> pngerrs
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# variables
|
|
fukasawa |
e60969 |
OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
|
|
fukasawa |
e60969 |
OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
|
|
fukasawa |
e60969 |
OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
all: libpng.lib
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|
fukasawa |
e60969 |
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
|
|
fukasawa |
e60969 |
del libpng.lib
|
|
fukasawa |
e60969 |
lib libpng $(OBJS1);
|
|
fukasawa |
e60969 |
lib libpng $(OBJS2);
|
|
fukasawa |
e60969 |
lib libpng $(OBJS3);
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest$(O): png.h pngconf.h pnglibconf.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest.exe: pngtest.obj libpng.lib
|
|
fukasawa |
e60969 |
$(LD) $(LDFLAGS) pngtest.obj,,,libpng.lib ..\zlib\zlib.lib ;
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
test: pngtest.exe
|
|
fukasawa |
e60969 |
pngtest
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# End of makefile for libpng
|
|
fukasawa |
e60969 |
|