mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Imported from libpng-1.4.0beta4.tar
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Makefile for libpng
|
||||
# Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
|
||||
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
|
||||
# copyright 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
@@ -13,8 +14,6 @@
|
||||
# Caution: the assembler code was introduced at libpng version 1.0.4 and has
|
||||
# not yet been thoroughly tested.
|
||||
|
||||
# Use assembler code
|
||||
ASMCODE=-DPNG_USE_PNGVCRD
|
||||
|
||||
# Where the zlib library and include files are located
|
||||
ZLIBLIB=..\zlib
|
||||
@@ -36,7 +35,7 @@ CALLING=r # __fastcall
|
||||
|
||||
|
||||
CC=icl -c
|
||||
CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) $(ASMCODE) -nologo
|
||||
CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo
|
||||
LD=link
|
||||
LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
|
||||
|
||||
@@ -49,6 +48,16 @@ pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
|
||||
|
||||
all: test
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
# Remove the line with #define PNG_THREAD_UNSAFE_OK if you need thread safety
|
||||
### for generic gcc:
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
echo "#define PNG_USE_PNGVCRD" >> pngconf.h
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
png$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user