From a29d92e6cd33325a21974b15a788bbe94736f59b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 29 May 2013 10:01:30 +0200 Subject: Clean up thirdparty / system library makefile variables. --- Makerules | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 82a664b4..4f849f95 100644 --- a/Makerules +++ b/Makerules @@ -25,17 +25,31 @@ endif # Mac OS X doesn't have pkg-config so we hard code paths. ifeq "$(OS)" "Darwin" -SYS_FREETYPE_CFLAGS = -I/usr/X11R6/include/freetype2 SYS_X11_CFLAGS = -I/usr/X11R6/include SYS_X11_LIBS = -L/usr/X11R6/lib -lX11 -lXext + +SYS_FREETYPE_CFLAGS = -I/usr/X11R6/include/freetype2 +SYS_FREETYPE_LIBS = -lfreetype +SYS_OPENJPEG_LIBS = -lopenjpeg +SYS_JBIG2DEC_LIBS = -ljbig2dec +SYS_JPEG_LIBS = -ljpeg +SYS_ZLIB_LIBS = -lz + RANLIB_CMD = ranlib $@ -# Other Unixes use pkg-config for system third party libs +# Other Unixes use pkg-config for system libraries. else -SYS_FREETYPE_CFLAGS = $(shell pkg-config --cflags freetype2) -SYS_OPENJPEG_CFLAGS = $(shell pkg-config --cflags libopenjpeg1) SYS_X11_CFLAGS = $(shell pkg-config --cflags x11 xext) SYS_X11_LIBS = $(shell pkg-config --libs x11 xext) + +SYS_FREETYPE_CFLAGS = $(shell pkg-config --cflags freetype2) +SYS_FREETYPE_LIBS = $(shell pkg-config --libs freetype2) +SYS_OPENJPEG_CFLAGS = $(shell pkg-config --cflags libopenjpeg1) +SYS_OPENJPEG_LIBS = $(shell pkg-config --libs libopenjpeg1) +SYS_JBIG2DEC_LIBS = -ljbig2dec +SYS_JPEG_LIBS = -ljpeg +SYS_ZLIB_LIBS = -lz + endif # The following section is an example of how to simply do cross-compilation @@ -105,4 +119,3 @@ RANLIB_CMD = $(PLATFORM_DEVELOPER_BIN_DIR)/ranlib $@ CROSSCOMPILE=yes NOX11=yes endif - -- cgit v1.2.3