From df7458e35a67abb216d9816c59f218cad45f1c44 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Tue, 5 Mar 2019 10:53:33 +0100 Subject: [PATCH] Build-Infrastructure: Allow a different target name. --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 7ccdc1a..00881ac 100644 --- a/src/Makefile +++ b/src/Makefile @@ -63,10 +63,13 @@ SRC = \ target.c \ include $(PLATFORM_DIR)/Makefile.inc +ifndef TARGET +TARGET=blackmagic +endif OBJ = $(SRC:.c=.o) -blackmagic: include/version.h $(OBJ) +$(TARGET): include/version.h $(OBJ) @echo " LD $@" $(Q)$(CC) -o $@ $(OBJ) $(LDFLAGS)