aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorGareth McMullin2012-06-10 16:40:07 +1200
committerGareth McMullin2012-06-10 16:40:07 +1200
commit8d190cdbb9c4e4377d0c33424e453c5ac166eed8 (patch)
treea8f51180449560e19de7f823e773810c8fde6c7e /src/Makefile
parentc82527056147beb170b93ffea2e668eb03022017 (diff)
Renamed platforms to 'native' and 'libftdi' and moved into 'platforms' dir.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Makefile b/src/Makefile
index 3ba0330..37abb00 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,14 +1,12 @@
-ifndef PROBE_HOST
-PROBE_HOST = stm32
-endif
-
-VPATH += $(PROBE_HOST)
+PROBE_HOST ?= native
+PLATFORM_DIR = platforms/$(PROBE_HOST)
+VPATH += $(PLATFORM_DIR)
BUILDDATE := `date +"%Y%m%d"`
CFLAGS += -Wall -Wextra -Wno-pointer-sign -Wno-char-subscripts\
-O2 -std=gnu99 -g3 -DBUILDDATE=\"$(BUILDDATE)\"\
- -I. -Iinclude -I$(PROBE_HOST) \
+ -I. -Iinclude -I$(PLATFORM_DIR) \
-DVERSION_SUFFIX=\"`../scripts/setlocalversion`\" -MD
SRC = gdb_if.c \
@@ -32,7 +30,7 @@ SRC = gdb_if.c \
stm32f4.c \
crc32.c \
-include $(PROBE_HOST)/Makefile.inc
+include $(PLATFORM_DIR)/Makefile.inc
OBJ = $(SRC:.c=.o)