Change use of Makefile BINARY to TARGET.
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# Hey Emacs, this is a -*- makefile -*-
|
# Hey Emacs, this is a -*- makefile -*-
|
||||||
|
|
||||||
BINARY = blinky
|
TARGET = blinky
|
||||||
|
|
||||||
SRC = $(BINARY).c
|
SRC = $(TARGET).c
|
||||||
|
|
||||||
include ../common/Makefile_inc.mk
|
include ../common/Makefile_inc.mk
|
||||||
|
@ -49,10 +49,10 @@ CFLAGS += -O2 -g -Wall -Wextra -I$(LIBOPENCM3)/include -I../common \
|
|||||||
-fno-common -mcpu=cortex-m4 -mthumb -MD \
|
-fno-common -mcpu=cortex-m4 -mthumb -MD \
|
||||||
-mfloat-abi=hard -mfpu=fpv4-sp-d16 \
|
-mfloat-abi=hard -mfpu=fpv4-sp-d16 \
|
||||||
$(HACKRF_OPTS)
|
$(HACKRF_OPTS)
|
||||||
LDSCRIPT ?= $(BINARY).ld
|
LDSCRIPT ?= $(TARGET).ld
|
||||||
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib/armv7e-m/fpu \
|
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib/armv7e-m/fpu \
|
||||||
-L$(LIBOPENCM3)/lib/lpc43xx -T$(LDSCRIPT) -nostartfiles \
|
-L$(LIBOPENCM3)/lib/lpc43xx -T$(LDSCRIPT) -nostartfiles \
|
||||||
-Wl,--gc-sections -Xlinker -Map=$(BINARY).map
|
-Wl,--gc-sections -Xlinker -Map=$(TARGET).map
|
||||||
OBJ = $(SRC:.c=.o)
|
OBJ = $(SRC:.c=.o)
|
||||||
|
|
||||||
# Be silent per default, but 'make V=1' will show all compiler calls.
|
# Be silent per default, but 'make V=1' will show all compiler calls.
|
||||||
@ -69,8 +69,8 @@ endif
|
|||||||
|
|
||||||
all: images
|
all: images
|
||||||
|
|
||||||
images: $(BINARY).images
|
images: $(TARGET).images
|
||||||
flash: $(BINARY).flash
|
flash: $(TARGET).flash
|
||||||
|
|
||||||
%.images: %.bin %.hex %.srec %.list
|
%.images: %.bin %.hex %.srec %.list
|
||||||
@#echo "*** $* images generated ***"
|
@#echo "*** $* images generated ***"
|
||||||
|
Reference in New Issue
Block a user