diff options
Diffstat (limited to 'Build/source/libs/libpng/libpng-src/scripts/makefile.aix')
-rw-r--r-- | Build/source/libs/libpng/libpng-src/scripts/makefile.aix | 51 |
1 files changed, 7 insertions, 44 deletions
diff --git a/Build/source/libs/libpng/libpng-src/scripts/makefile.aix b/Build/source/libs/libpng/libpng-src/scripts/makefile.aix index c5cc530a790..f00734e9072 100644 --- a/Build/source/libs/libpng/libpng-src/scripts/makefile.aix +++ b/Build/source/libs/libpng/libpng-src/scripts/makefile.aix @@ -19,28 +19,10 @@ AR_RC = ar rcs RANLIB = ranlib MKDIR_P = mkdir -p RM_F = rm -f -LN_SF = ln -f -s LIBNAME = libpng16 PNGMAJ = 16 -prefix=/usr/local -INCPATH=$(prefix)/include -LIBPATH=$(prefix)/lib - -# override DESTDIR= on the make install command line to easily support -# installing into a temporary location. Example: -# -# make install DESTDIR=/tmp/build/libpng -# -# If you're going to install into a temporary location -# via DESTDIR, $(DESTDIR)$(prefix) must already exist before -# you execute make install. -DESTDIR= - -DI=$(DESTDIR)$(INCPATH) -DL=$(DESTDIR)$(LIBPATH) - WARNMORE = CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5 CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g @@ -55,7 +37,7 @@ OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ .c.o: $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< -all: $(LIBNAME).a pngtest$(E) +all: $(LIBNAME).a pngtest include scripts/pnglibconf.mak REMOVE = $(RM_F) @@ -65,34 +47,15 @@ $(LIBNAME).a: $(OBJS) $(AR_RC) $@ $(OBJS) $(RANLIB) $@ -test: pngtest$(E) - ./pngtest$(E) +test: pngtest + ./pngtest -pngtest$(E): pngtest.o $(LIBNAME).a +pngtest: pngtest.o $(LIBNAME).a $(LD) -o $@ pngtest.o $(LDFLAGS) -install: $(LIBNAME).a - -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi - -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi - -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi - -@$(RM_F) $(DI)/$(LIBNAME)/png.h - -@$(RM_F) $(DI)/$(LIBNAME)/pngconf.h - -@$(RM_F) $(DI)/$(LIBNAME)/pnglibconf.h - -@$(RM_F) $(DI)/png.h - -@$(RM_F) $(DI)/pngconf.h - -@$(RM_F) $(DI)/pnglibconf.h - cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) - chmod 644 $(DI)/$(LIBNAME)/png.h \ - $(DI)/$(LIBNAME)/pngconf.h \ - $(DI)/$(LIBNAME)/pnglibconf.h - -@$(RM_F) -r $(DI)/libpng - (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) - -@$(RM_F) $(DL)/$(LIBNAME).a - -@$(RM_F) $(DL)/libpng.a - cp $(LIBNAME).a $(DL)/$(LIBNAME).a - chmod 644 $(DL)/$(LIBNAME).a - (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) - (cd $(DI); $(LN_SF) libpng/* .;) +install: + @echo "The $@ target is no longer supported by this makefile." + @false clean: $(RM_F) *.o $(LIBNAME).a pngtest pngout.png pnglibconf.h |