aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron <cameron@suspectdevices.com>2012-09-30 22:24:02 -0700
committerCameron <cameron@soycow.org>2012-09-30 22:24:02 -0700
commita9cb719f342202f4dde91d60662e9a6763bb83dd (patch)
treedb6d5d58291cc11652d5602c485fe285aa8fac80
parente3bbc9ffd7b28dfe75841545e160b66162e46c62 (diff)
Moved static flag to be assigned with FreeBSD. This only applies to Mac OS X, so I will move this later.HEADmaster
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1e81da6..4bd83b1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
all: lpc21isp
GLOBAL_DEP = adprog.h lpc21isp.h lpcprog.h lpcterm.h
+# TODO use environment's chosen gcc or check for clang
CC = gcc
+CFLAGS += -Wall
ifneq ($(findstring(freebsd, $(OSTYPE))),)
CFLAGS+=-D__FREEBSD__
+CFLAGS += -static
endif
ifeq ($(OSTYPE),)
@@ -15,7 +18,6 @@ ifneq ($(findstring Darwin,$(OSTYPE)),)
CFLAGS+=-D__APPLE__
endif
-CFLAGS += -Wall -static
adprog.o: adprog.c $(GLOBAL_DEP)
$(CC) $(CDEBUG) $(CFLAGS) -c -o adprog.o adprog.c