diff options
| author | Cameron <cameron@suspectdevices.com> | 2012-09-30 22:24:02 -0700 |
|---|---|---|
| committer | Cameron <cameron@soycow.org> | 2012-09-30 22:24:02 -0700 |
| commit | a9cb719f342202f4dde91d60662e9a6763bb83dd (patch) | |
| tree | db6d5d58291cc11652d5602c485fe285aa8fac80 /Makefile | |
| parent | e3bbc9ffd7b28dfe75841545e160b66162e46c62 (diff) | |
Moved static flag to be assigned with FreeBSD. This only applies to Mac OS X, so I will move this later.HEADmaster
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |
