[libpng16] $(CP) is now used alongside $(RM_F). Also, use 'copy' instead

of 'cp' where applicable, and applied other minor makefile changes.
This commit is contained in:
Cosmin Truta
2014-03-22 09:29:59 -05:00
committed by Glenn Randers-Pehrson
parent 6572c7dab5
commit 82200daec2
38 changed files with 88 additions and 45 deletions

View File

@@ -22,6 +22,7 @@ CC=cc
MKDIR_P=mkdir
LN_SF=ln -f -s
RANLIB=ranlib
CP=cp
RM_F=/bin/rm -f
# where make install puts libpng.a and png.h
@@ -68,7 +69,7 @@ all: $(LIBSO) libpng.a pngtest libpng.pc libpng-config
# see scripts/pnglibconf.mak for more options
pnglibconf.h: scripts/pnglibconf.h.prebuilt
cp scripts/pnglibconf.h.prebuilt $@
$(CP) $< $@
libpng.a: $(OBJS)
$(AR_RC) $@ $(OBJS)
@@ -181,7 +182,7 @@ test-installed:
./pngtesti pngtest.png
clean:
/bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
$(RM_F) *.o libpng.a pngtest pngtesti pngout.png \
libpng-config $(LIBSO) $(LIBSOMAJ)* \
libpng.pc pnglibconf.h