makefile: Add support for building with libpng

This commit is contained in:
Mark Pizzolato 2015-09-24 15:25:53 -07:00
parent 9cb2697dcd
commit 650f768843

View file

@ -393,6 +393,13 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
endif
endif
endif
ifneq (,$(call find_include,png))
ifneq (,$(call find_lib,png))
OS_CCDEFS += -DHAVE_LIBPNG
OS_LDFLAGS += -lpng
$(info using libpng: $(call find_lib,png) $(call find_include,png))
endif
endif
ifneq (,$(call find_include,glob))
OS_CCDEFS += -DHAVE_GLOB
else