Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
fe65f2b2
Commit
fe65f2b2
authored
1 year ago
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
Update cpdebug.mk
Allow Env to overwrite Makefile's default OBJCOPY and OBJDUMP, just like CC
parent
fa76733f
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!2173
CI bot for Linux and Windows builds
,
!2172
CI bot for Linux and Windows builds
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpdebug.mk
+32
-32
32 additions, 32 deletions
cpdebug.mk
with
32 additions
and
32 deletions
cpdebug.mk
+
32
−
32
View file @
fe65f2b2
#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)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment