diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-09-11 18:09:03 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-09-11 18:09:03 +0000 |
commit | ff4de95fcb6a03efbf1018f6f32bd044fd162907 (patch) | |
tree | bf5943e5a8ca2ec3243087c7642480766b3ca029 /converter | |
parent | 73d34245373c388a6fdca0cf99d521252ab02c07 (diff) | |
download | netpbm-mirror-ff4de95fcb6a03efbf1018f6f32bd044fd162907.tar.gz netpbm-mirror-ff4de95fcb6a03efbf1018f6f32bd044fd162907.tar.xz netpbm-mirror-ff4de95fcb6a03efbf1018f6f32bd044fd162907.zip |
Make it work with older GNU Make
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1568 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/other/Makefile | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/converter/other/Makefile b/converter/other/Makefile index f42242da..8d931433 100644 --- a/converter/other/Makefile +++ b/converter/other/Makefile @@ -32,19 +32,21 @@ ifneq ($(shell $(TEST_PKGCONFIG_LIBPNG)),) # pkg-config libpng works on this system HAVE_PNGLIB = Y EXTERN_INCLUDES += $(shell pkg-config libpng$(PNGVER) --cflags) -else ifneq ($(shell libpng$(PNGVER)-config --version),) - # No pkg-config, but we have libpng-config on this system - HAVE_PNGLIB = Y - EXTERN_INCLUDES += $(shell libpng$(PNGVER)-config --cflags) else - # System can't tell use where libpng is; use stuff from config.mk - ifneq ($(PNGLIB),NONE) + ifneq ($(shell libpng$(PNGVER)-config --version),) + # No pkg-config, but we have libpng-config on this system HAVE_PNGLIB = Y - ifneq ($(PNGHDR_DIR)x,x) - EXTERN_INCLUDES += -I$(PNGHDR_DIR) - endif - ifneq ($(ZHDR_DIR)x,x) - EXTERN_INCLUDES += -I$(ZHDR_DIR) + EXTERN_INCLUDES += $(shell libpng$(PNGVER)-config --cflags) + else + # System can't tell use where libpng is; use stuff from config.mk + ifneq ($(PNGLIB),NONE) + HAVE_PNGLIB = Y + ifneq ($(PNGHDR_DIR)x,x) + EXTERN_INCLUDES += -I$(PNGHDR_DIR) + endif + ifneq ($(ZHDR_DIR)x,x) + EXTERN_INCLUDES += -I$(ZHDR_DIR) + endif endif endif endif @@ -182,12 +184,14 @@ tifftopnm pamtotiff pnmtotiffcmyk: %: %.o tiff.o $(NETPBMLIB) $(LIBOPT) ifneq ($(shell $(TEST_PKGCONFIG_LIBPNG)),) # pkg-config libpng works on this system PNGLIB_LIBOPTS = $(shell pkg-config libpng$(PNGVER) --libs) -else ifneq ($(shell libpng$(PNGVER)-config --version),) - # No pkg-config, but we have libpng-config on this system - PNGLIB_LIBOPTS = $(shell libpng$(PNGVER)-config --ldflags) else - # System can't tell us where libpng is; use stuff from config.mk - PNGLIB_LIBOPTS = $(shell $(LIBOPT) $(LIBOPTR) $(PNGLIB) $(ZLIB)) + ifneq ($(shell libpng$(PNGVER)-config --version),) + # No pkg-config, but we have libpng-config on this system + PNGLIB_LIBOPTS = $(shell libpng$(PNGVER)-config --ldflags) + else + # System can't tell us where libpng is; use stuff from config.mk + PNGLIB_LIBOPTS = $(shell $(LIBOPT) $(LIBOPTR) $(PNGLIB) $(ZLIB)) + endif endif pngtopam: %: %.o pngx.o $(NETPBMLIB) $(LIBOPT) |