|
|
@ -3,7 +3,6 @@ ifneq ($(shell gcc -v 2>&1 | grep 'Apple Inc'),)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
LIBPREFIX = /Library/Fink/sl64 /opt/local
|
|
|
|
LIBPREFIX = /Library/Fink/sl64 /opt/local
|
|
|
|
LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) -g -Wall
|
|
|
|
|
|
|
|
ifdef APPLE
|
|
|
|
ifdef APPLE
|
|
|
|
ifeq ($(CC),gcc)
|
|
|
|
ifeq ($(CC),gcc)
|
|
|
|
LDFLAGS += -search_paths_first
|
|
|
|
LDFLAGS += -search_paths_first
|
|
|
@ -12,6 +11,7 @@ endif
|
|
|
|
OPT = -g -O0
|
|
|
|
OPT = -g -O0
|
|
|
|
CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=c99 \
|
|
|
|
CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=c99 \
|
|
|
|
-Wall -Wno-unknown-pragmas
|
|
|
|
-Wall -Wno-unknown-pragmas
|
|
|
|
|
|
|
|
LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT) -Wall
|
|
|
|
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
CC = gcc
|
|
|
|
COMPILE = $(CC) $(CFLAGS) -c -o
|
|
|
|
COMPILE = $(CC) $(CFLAGS) -c -o
|
|
|
|