2011-11-25 09:55:07 +00:00
|
|
|
ifndef PROBE_HOST
|
|
|
|
PROBE_HOST = stm32
|
2011-02-04 07:23:52 +00:00
|
|
|
endif
|
|
|
|
|
2011-11-25 09:55:07 +00:00
|
|
|
VPATH += $(PROBE_HOST)
|
2011-02-04 07:23:52 +00:00
|
|
|
|
|
|
|
BUILDDATE := `date +"%Y%m%d"`
|
|
|
|
|
2011-02-06 23:09:07 +00:00
|
|
|
CFLAGS += -Wall -Wextra -Wno-pointer-sign -Wno-char-subscripts\
|
2011-03-10 11:02:08 +00:00
|
|
|
-O0 -std=gnu99 -g3 -DBUILDDATE=\"$(BUILDDATE)\"\
|
2011-11-25 09:55:07 +00:00
|
|
|
-I. -Iinclude -I$(PROBE_HOST) \
|
2011-02-18 00:50:21 +00:00
|
|
|
-DVERSION_SUFFIX=\"`../scripts/setlocalversion`\"
|
2011-02-04 07:23:52 +00:00
|
|
|
|
|
|
|
SRC = gdb_if.c \
|
|
|
|
gdb_packet.c \
|
|
|
|
gdb_main.c \
|
|
|
|
hex_utils.c \
|
|
|
|
jtagtap.c \
|
|
|
|
swdptap.c \
|
|
|
|
adiv5.c \
|
|
|
|
adiv5_swdp.c \
|
|
|
|
cortexm3.c \
|
|
|
|
stm32_tgt.c \
|
2011-12-26 10:34:45 +00:00
|
|
|
nxp_tgt.c \
|
2011-02-04 07:23:52 +00:00
|
|
|
main.c \
|
|
|
|
platform.c \
|
|
|
|
command.c \
|
|
|
|
jtag_scan.c \
|
|
|
|
adiv5_jtagdp.c \
|
|
|
|
lmi.c \
|
2011-03-09 06:03:41 +00:00
|
|
|
arm7tdmi.c \
|
2011-11-12 06:15:52 +00:00
|
|
|
stm32f4.c \
|
2011-12-17 08:46:22 +00:00
|
|
|
crc32.c \
|
2011-02-04 07:23:52 +00:00
|
|
|
|
2011-11-25 09:55:07 +00:00
|
|
|
include $(PROBE_HOST)/Makefile.inc
|
2011-02-04 07:23:52 +00:00
|
|
|
|
|
|
|
OBJ = $(SRC:.c=.o)
|
|
|
|
|
|
|
|
blackmagic: $(OBJ)
|
2011-02-17 04:24:26 +00:00
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
2011-02-04 07:23:52 +00:00
|
|
|
|
|
|
|
.PHONY: clean host_clean
|
|
|
|
|
|
|
|
clean: host_clean
|
|
|
|
$(RM) *.o *~ blackmagic $(HOSTFILES)
|
|
|
|
|