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:
@@ -6,7 +6,7 @@
|
||||
# Library name:
|
||||
LIBNAME=libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
@@ -43,9 +43,8 @@ ABI=
|
||||
|
||||
WARNMORE=-fullwarn
|
||||
# Note: -KPIC is the default anyhow
|
||||
#CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC -DPNG_USE_PNGGCCRD # -g -DPNG_DEBUG=5
|
||||
CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) -DPNG_USE_PNGGCCRD \
|
||||
-DPNG_NO_MMX_CODE
|
||||
#CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC # -g -DPNG_DEBUG=5
|
||||
CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE)
|
||||
LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng14 -lz -lm
|
||||
LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||
LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \
|
||||
@@ -79,6 +78,20 @@ OBJS = pnggccrd.o png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||
|
||||
all: libpng.a pngtest shared libpng.pc libpng-config
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
|
||||
/* if you don't want to use the intel MMX code, uncomment this */
|
||||
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
|
||||
/* if you don't need thread safety you can uncomment this */
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
libpng.a: $(OBJS)
|
||||
$(AR_RC) $@ $(OBJS)
|
||||
$(RANLIB) $@
|
||||
@@ -215,6 +228,7 @@ pngwio.o: png.h pngconf.h pngintrn.h
|
||||
pngmem.o: png.h pngconf.h pngintrn.h
|
||||
pngset.o: png.h pngconf.h pngintrn.h
|
||||
pngget.o: png.h pngconf.h pngintrn.h
|
||||
pnggccrd.o: png.h pngconf.h pngintrn.h
|
||||
pngread.o: png.h pngconf.h pngintrn.h
|
||||
pngrtran.o: png.h pngconf.h pngintrn.h
|
||||
pngrutil.o: png.h pngconf.h pngintrn.h
|
||||
|
||||
Reference in New Issue
Block a user