Makefile: Update/fix treatment of libpng libraries and headers under Windows and OS X.

git-svn-id: https://svn.eduke32.com/eduke32@2509 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2012-03-20 19:30:50 +00:00
parent dbbfb2d73b
commit 5564537510

View file

@ -73,11 +73,15 @@ endif
ifneq ($(PLATFORM),WINDOWS)
LIBS+= -ldl -pthread
ifneq ($(USE_LIBPNG),0)
LIBS+= -LWindows/lib -lpng -lz
OURCFLAGS+= -IWindows/include
endif
endif
ifeq ($(PLATFORM),DARWIN)
ifneq ($(USE_LIBPNG),0)
OURCFLAGS+= -I/opt/local/include
LIBS+= -L/opt/local/lib -lpng
OURCFLAGS+= -I/opt/local/include -I/usr/local/include
LIBS+= -L/opt/local/lib -L/usr/local/lib -lpng
endif
endif