From 80001a934a2904fb3ed7cf3d8f3c5a87b83f8e46 Mon Sep 17 00:00:00 2001 From: Dave Vasilevsky Date: Sun, 10 Oct 2010 23:39:21 -0400 Subject: [PATCH] Allow multiple build prefixes --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c79e7a9..c9ee2d2 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,15 @@ ifneq ($(shell gcc -v 2>&1 | grep 'Apple Inc'),) APPLE=1 endif -LIBPREFIX = /Library/Fink/sl64 -LDFLAGS = -L$(LIBPREFIX)/lib -g -Wall +LIBPREFIX = /Library/Fink/sl64 /opt/local +LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) -g -Wall ifdef APPLE ifeq ($(CC),gcc) LDFLAGS += -search_paths_first endif endif -CFLAGS = -I$(LIBPREFIX)/include -g -O0 -std=c99 -Wall -Wno-unknown-pragmas +CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) -g -O0 -std=c99 \ + -Wall -Wno-unknown-pragmas CC = gcc COMPILE = $(CC) $(CFLAGS) -c -o