mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 03:51:05 +00:00
Makefile
Also allow overwrite of OBJCOPY, OBJDUMP and WINDRES
This commit is contained in:
parent
5449ca2dbf
commit
4e2324216d
3 changed files with 38 additions and 38 deletions
|
@ -78,7 +78,7 @@ build-i686-linux-gnu:
|
|||
- export OBJDUMP=i686-linux-gnu-objdump
|
||||
- export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
||||
- *ccache
|
||||
- make --directory=src CCACHE=1 OBJCOPY=$OBJCOPY OBJDUMP=$OBJDUMP LINUX=1
|
||||
- make --directory=src CCACHE=1 LINUX=1
|
||||
|
||||
build-aarch64-linux-gnu:
|
||||
<<: *job_build
|
||||
|
@ -95,7 +95,7 @@ build-aarch64-linux-gnu:
|
|||
- export OBJDUMP=aarch64-linux-gnu-objdump
|
||||
- export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig
|
||||
- *ccache
|
||||
- make --directory=src CCACHE=1 OBJCOPY=$OBJCOPY OBJDUMP=$OBJDUMP LINUX64=1 NONX86=1
|
||||
- make --directory=src CCACHE=1 LINUX64=1 NONX86=1
|
||||
|
||||
build-x86_64-linux-gnu:
|
||||
<<: *job_build
|
||||
|
@ -112,7 +112,7 @@ build-x86_64-linux-gnu:
|
|||
- export OBJDUMP=x86_64-linux-gnu-objdump
|
||||
- export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
|
||||
- *ccache
|
||||
- make --directory=src CCACHE=1 OBJCOPY=$OBJCOPY OBJDUMP=$OBJDUMP LINUX64=1
|
||||
- make --directory=src CCACHE=1 LINUX64=1
|
||||
|
||||
build-i686-w64-mingw32:
|
||||
<<: *job_build
|
||||
|
|
64
cpdebug.mk
64
cpdebug.mk
|
@ -1,32 +1,32 @@
|
|||
#Add-on Makefile for wxDev-C++ project file
|
||||
ifdef ComSpec
|
||||
COMSPEC=$(ComSpec)
|
||||
endif
|
||||
ifdef COMSPEC
|
||||
OBJCOPY?=objcopy.exe
|
||||
OBJDUMP?=objdump.exe
|
||||
GZIP?=gzip.exe
|
||||
else
|
||||
OBJCOPY?=objcopy
|
||||
OBJDUMP?=objdump
|
||||
GZIP?=gzip
|
||||
endif
|
||||
DBGNAME=$(BIN).debug
|
||||
OBJDUMP_OPTS?=--wide --source --line-numbers
|
||||
GZIP_OPTS?=-9 -f -n
|
||||
GZIP_OPT2=$(GZIP_OPTS) --rsyncable
|
||||
UPX?=upx
|
||||
UPX_OPTS?=--best --preserve-build-id
|
||||
UPX_OPTS+=-q
|
||||
|
||||
all-after:
|
||||
$(OBJDUMP) $(OBJDUMP_OPTS) "$(BIN)" > "$(DBGNAME).txt"
|
||||
$(OBJCOPY) $(BIN) $(DBGNAME)
|
||||
$(OBJCOPY) --strip-debug $(BIN)
|
||||
-$(OBJCOPY) --add-gnu-debuglink=$(DBGNAME) $(BIN)
|
||||
-$(GZIP) $(GZIP_OPTS) "$(DBGNAME).txt"
|
||||
ifndef COMSPEC
|
||||
-$(GZIP) $(GZIP_OPT2) "$(DBGNAME).txt"
|
||||
endif
|
||||
-$(UPX) $(UPX_OPTS) $(BIN)
|
||||
|
||||
#Add-on Makefile for wxDev-C++ project file
|
||||
ifdef ComSpec
|
||||
COMSPEC=$(ComSpec)
|
||||
endif
|
||||
ifdef COMSPEC
|
||||
OBJCOPY?=objcopy.exe
|
||||
OBJDUMP?=objdump.exe
|
||||
GZIP?=gzip.exe
|
||||
else
|
||||
OBJCOPY?=objcopy
|
||||
OBJDUMP?=objdump
|
||||
GZIP?=gzip
|
||||
endif
|
||||
DBGNAME=$(BIN).debug
|
||||
OBJDUMP_OPTS?=--wide --source --line-numbers
|
||||
GZIP_OPTS?=-9 -f -n
|
||||
GZIP_OPT2=$(GZIP_OPTS) --rsyncable
|
||||
UPX?=upx
|
||||
UPX_OPTS?=--best --preserve-build-id
|
||||
UPX_OPTS+=-q
|
||||
|
||||
all-after:
|
||||
$(OBJDUMP) $(OBJDUMP_OPTS) "$(BIN)" > "$(DBGNAME).txt"
|
||||
$(OBJCOPY) $(BIN) $(DBGNAME)
|
||||
$(OBJCOPY) --strip-debug $(BIN)
|
||||
-$(OBJCOPY) --add-gnu-debuglink=$(DBGNAME) $(BIN)
|
||||
-$(GZIP) $(GZIP_OPTS) "$(DBGNAME).txt"
|
||||
ifndef COMSPEC
|
||||
-$(GZIP) $(GZIP_OPT2) "$(DBGNAME).txt"
|
||||
endif
|
||||
-$(UPX) $(UPX_OPTS) $(BIN)
|
||||
|
||||
|
|
|
@ -141,9 +141,9 @@ endif
|
|||
|
||||
OBJDUMP_OPTS?=--wide --source --line-numbers
|
||||
|
||||
OBJCOPY:=$(call Prefix,objcopy)
|
||||
OBJDUMP:=$(call Prefix,objdump)
|
||||
WINDRES:=$(call Prefix,windres)
|
||||
OBJCOPY?=$(call Prefix,objcopy)
|
||||
OBJDUMP?=$(call Prefix,objdump)
|
||||
WINDRES?=$(call Prefix,windres)
|
||||
|
||||
GZIP?=gzip
|
||||
GZIP_OPTS?=-9 -f -n
|
||||
|
|
Loading…
Reference in a new issue