Makefile: add OBJCOPY
This commit is contained in:
parent
bee784c36e
commit
c6f2852242
4
Makefile
4
Makefile
@ -25,6 +25,8 @@ ifeq ($(OS),Windows_NT)
|
||||
LDFLAGS += -Wl,--subsystem,windows -mwindows
|
||||
endif
|
||||
|
||||
OBJCOPY ?= objcopy
|
||||
|
||||
ifndef GLFW
|
||||
$(error GLFW undefined)
|
||||
endif
|
||||
@ -59,7 +61,7 @@ OPT = -Og
|
||||
all: main
|
||||
|
||||
define BUILD_BINARY_O
|
||||
objcopy \
|
||||
$(OBJCOPY) \
|
||||
-I binary $(OBJARCH) \
|
||||
--rename-section .data=.data.$(basename $@) \
|
||||
$< $@
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user