diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2002-05-25 11:12:10 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2009-04-06 16:07:12 -0500 |
commit | 07748d1b2c0353bf7a5eadfbe988cb5b87e897b4 (patch) | |
tree | 526a5e0e99c104a30b5ac595f83b07b4697ca820 /scripts/makefile.sggcc | |
parent | cfbed9bdf200652db330ccefdc3ba0e4b4d20d25 (diff) | |
download | libpng-07748d1b2c0353bf7a5eadfbe988cb5b87e897b4.tar.gz |
Imported from libpng-1.2.4beta1.tarv1.2.4beta1
Diffstat (limited to 'scripts/makefile.sggcc')
-rw-r--r-- | scripts/makefile.sggcc | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/scripts/makefile.sggcc b/scripts/makefile.sggcc index d1c6e7eca..b71f9ae94 100644 --- a/scripts/makefile.sggcc +++ b/scripts/makefile.sggcc @@ -26,7 +26,7 @@ LDSHARED=CC $(ABI) -shared LIBNAME=libpng12 PNGMAJ = 0 -PNGMIN = 1.2.3 +PNGMIN = 1.2.4beta1 PNGVER = $(PNGMAJ).$(PNGMIN) LIBS=$(LIBNAME).so.$(PNGVER) INCPATH=$(prefix)/include @@ -40,14 +40,14 @@ BINPATH=$(prefix)/bin # make install DESTDIR=/tmp/build/libpng # # If you're going to install into a temporary location -# via DESTDIR, that location must already exist before +# via DESTDIR, $(DESTDIR)$(prefix) must already exist before # you execute make install. DESTDIR= -DB=$(DESTDIR)/$(BINPATH) -DI=$(DESTDIR)/$(INCPATH) -DL=$(DESTDIR)/$(LIBPATH) -DM=$(DESTDIR)/$(MANPATH) +DB=$(DESTDIR)$(BINPATH) +DI=$(DESTDIR)$(INCPATH) +DL=$(DESTDIR)$(LIBPATH) +DM=$(DESTDIR)$(MANPATH) RANLIB=echo #RANLIB=ranlib @@ -56,7 +56,7 @@ OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ pngwtran.o pngmem.o pngerror.o pngpread.o -all: libpng.a $(LIBNAME).so.$(PNGVER) pngtest +all: libpng.a $(LIBNAME).so.$(PNGVER) pngtest libpng.pc libpng-config libpng.a: $(OBJS) ar rc $@ $(OBJS) @@ -93,12 +93,10 @@ install-headers: png.h pngconf.h -@if [ ! -d $(DI) ]; then mkdir $(DI); fi -@if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi cp png.h pngconf.h $(DI)/$(LIBNAME) - chmod 644 $(DI)/$(LIBNAME)/png.h \ - $(DI)/$(LIBNAME)/pngconf.h + chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h -@/bin/rm -f $(DI)/libpng - (cd $(DI); ln -sf $(LIBNAME) libpng; \ - ln -sf $(LIBNAME)/* .) + (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .) install-static: install-headers libpng.a -@if [ ! -d $(DL) ]; then mkdir $(DL); fi @@ -109,8 +107,7 @@ install-static: install-headers libpng.a install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc -@if [ ! -d $(DL) ]; then mkdir $(DL); fi - -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGMAJ)* \ - $(DL)/$(LIBNAME).so + -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGMAJ)* $(DL)/$(LIBNAME).so -@/bin/rm -f $(DL)/libpng.so -@/bin/rm -f $(DL)/libpng.so.3 -@/bin/rm -f $(DL)/libpng.so.3.* |