From a9cb719f342202f4dde91d60662e9a6763bb83dd Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 30 Sep 2012 22:24:02 -0700 Subject: Moved static flag to be assigned with FreeBSD. This only applies to Mac OS X, so I will move this later. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3