|
fukasawa |
e60969 |
# Makefile for libpng
|
|
fukasawa |
e60969 |
# Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Copyright (C) 2006, 2014 Glenn Randers-Pehrson
|
|
fukasawa |
e60969 |
# Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
|
|
fukasawa |
e60969 |
# copyright 1995 Guy Eric Schalnat, Group 42, Inc.
|
|
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 |
# To use, do "nmake /f scripts\makefile.intel"
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
# ------------------- Intel C/C++ Compiler 4.0 and later -------------------
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Where the zlib library and include files are located
|
|
fukasawa |
e60969 |
ZLIBLIB=..\zlib
|
|
fukasawa |
e60969 |
ZLIBINC=..\zlib
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Target CPU
|
|
fukasawa |
e60969 |
CPU=6 # Pentium II
|
|
fukasawa |
e60969 |
#CPU=5 # Pentium
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Calling convention
|
|
fukasawa |
e60969 |
CALLING=r # __fastcall
|
|
fukasawa |
e60969 |
#CALLING=z # __stdcall
|
|
fukasawa |
e60969 |
#CALLING=d # __cdecl
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Uncomment next to put error messages in a file
|
|
fukasawa |
e60969 |
#ERRFILE=>>pngerrs
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# --------------------------------------------------------------------------
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
CC=icl -c
|
|
fukasawa |
e60969 |
CPPFLAGS=-I$(ZLIBINC)
|
|
fukasawa |
e60969 |
CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -nologo
|
|
fukasawa |
e60969 |
LD=link
|
|
fukasawa |
e60969 |
LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
|
|
fukasawa |
e60969 |
CP=cp
|
|
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 |
O=.obj
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
|
|
fukasawa |
e60969 |
pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
|
|
fukasawa |
e60969 |
pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
all: test
|
|
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) $(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) $(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) $(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) $(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) $(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) $(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) $(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) $(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) $(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) $(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) $(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) $(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) $(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) $(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) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
libpng.lib: $(OBJS)
|
|
fukasawa |
e60969 |
if exist libpng.lib del libpng.lib
|
|
fukasawa |
e60969 |
lib /NOLOGO /OUT:libpng.lib $(OBJS)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest.exe: pngtest.obj libpng.lib
|
|
fukasawa |
e60969 |
$(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest$(O): png.h pngconf.h pnglibconf.h
|
|
fukasawa |
e60969 |
$(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
test: pngtest.exe
|
|
fukasawa |
e60969 |
pngtest.exe
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# End of makefile for libpng
|