blackmagic/src/Makefile

49 lines
786 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\
-O2 -std=gnu99 -g3 -DBUILDDATE=\"$(BUILDDATE)\"\
-I. -Iinclude -I$(PROBE_HOST) \
-DVERSION_SUFFIX=\"`../scripts/setlocalversion`\" -MD
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
2012-05-18 23:54:22 +00:00
$(RM) *.o *.d *~ blackmagic $(HOSTFILES)
2011-02-04 07:23:52 +00:00
-include *.d