Build-Infrastructure: Allow a different target name.

This commit is contained in:
Uwe Bonnes 2019-03-05 10:53:33 +01:00
parent b4c680bb15
commit df7458e35a
1 changed files with 4 additions and 1 deletions

View File

@ -63,10 +63,13 @@ SRC = \
target.c \ target.c \
include $(PLATFORM_DIR)/Makefile.inc include $(PLATFORM_DIR)/Makefile.inc
ifndef TARGET
TARGET=blackmagic
endif
OBJ = $(SRC:.c=.o) OBJ = $(SRC:.c=.o)
blackmagic: include/version.h $(OBJ) $(TARGET): include/version.h $(OBJ)
@echo " LD $@" @echo " LD $@"
$(Q)$(CC) -o $@ $(OBJ) $(LDFLAGS) $(Q)$(CC) -o $@ $(OBJ) $(LDFLAGS)