blackmagic/src/Makefile

47 lines
764 B
Makefile
Raw Normal View History

ifndef PROBE_HOST
PROBE_HOST = stm32
2011-02-04 07:23:52 +00:00
endif
VPATH += $(PROBE_HOST)
2011-02-04 07:23:52 +00:00
BUILDDATE := `date +"%Y%m%d"`
CFLAGS += -Wall -Wextra -Wno-pointer-sign -Wno-char-subscripts\
2011-03-10 11:02:08 +00:00
-O0 -std=gnu99 -g3 -DBUILDDATE=\"$(BUILDDATE)\"\
-I. -Iinclude -I$(PROBE_HOST) \
-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 \
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 \
arm7tdmi.c \
stm32f4.c \
crc32.c \
2011-02-04 07:23:52 +00:00
include $(PROBE_HOST)/Makefile.inc
2011-02-04 07:23:52 +00:00
OBJ = $(SRC:.c=.o)
blackmagic: $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
2011-02-04 07:23:52 +00:00
.PHONY: clean host_clean
clean: host_clean
$(RM) *.o *~ blackmagic $(HOSTFILES)