From 5aebef4f64d0fd4c19f794fb9725686c39a7e395 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Tue, 5 Mar 2019 15:01:38 +0100 Subject: [PATCH] Makefile: Indicate high level SWD/JTAG implemenatation. --- src/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index 00881ac..27d03ec 100644 --- a/src/Makefile +++ b/src/Makefile @@ -34,9 +34,6 @@ SRC = \ gdb_hostio.c \ gdb_packet.c \ hex_utils.c \ - jtag_scan.c \ - jtagtap.c \ - jtagtap_generic.c \ lmi.c \ lpc_common.c \ lpc11xx.c \ @@ -58,15 +55,22 @@ SRC = \ stm32h7.c \ stm32l0.c \ stm32l4.c \ - swdptap.c \ - swdptap_generic.c \ target.c \ include $(PLATFORM_DIR)/Makefile.inc + ifndef TARGET TARGET=blackmagic endif +ifndef SWD_HL +SRC += swdptap.c swdptap_generic.c +endif + +ifndef JTAG_HL +SRC += jtag_scan.c jtagtap.c jtagtap_generic.c +endif + OBJ = $(SRC:.c=.o) $(TARGET): include/version.h $(OBJ)