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