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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMS Alfredo
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
No related tags found
No related merge requests found
Changes
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
#Add-on Makefile for wxDev-C++ project file
ifdef
ComSpec
ifdef
ComSpec
COMSPEC
=
$(
ComSpec
)
COMSPEC
=
$(
ComSpec
)
endif
endif
ifdef
COMSPEC
ifdef
COMSPEC
OBJCOPY
=
objcopy.exe
OBJCOPY
?
=
objcopy.exe
OBJDUMP
=
objdump.exe
OBJDUMP
?
=
objdump.exe
GZIP
?=
gzip.exe
GZIP
?=
gzip.exe
else
else
OBJCOPY
=
objcopy
OBJCOPY
?
=
objcopy
OBJDUMP
=
objdump
OBJDUMP
?
=
objdump
GZIP
?=
gzip
GZIP
?=
gzip
endif
endif
DBGNAME
=
$(
BIN
)
.debug
DBGNAME
=
$(
BIN
)
.debug
OBJDUMP_OPTS
?=
--wide
--source
--line-numbers
OBJDUMP_OPTS
?=
--wide
--source
--line-numbers
GZIP_OPTS
?=
-9
-f
-n
GZIP_OPTS
?=
-9
-f
-n
GZIP_OPT2
=
$(
GZIP_OPTS
)
--rsyncable
GZIP_OPT2
=
$(
GZIP_OPTS
)
--rsyncable
UPX
?=
upx
UPX
?=
upx
UPX_OPTS
?=
--best
--preserve-build-id
UPX_OPTS
?=
--best
--preserve-build-id
UPX_OPTS
+=
-q
UPX_OPTS
+=
-q
all-after
:
all-after
:
$(
OBJDUMP
)
$(
OBJDUMP_OPTS
)
"
$(
BIN
)
"
>
"
$(
DBGNAME
)
.txt"
$(
OBJDUMP
)
$(
OBJDUMP_OPTS
)
"
$(
BIN
)
"
>
"
$(
DBGNAME
)
.txt"
$(
OBJCOPY
)
$(
BIN
)
$(
DBGNAME
)
$(
OBJCOPY
)
$(
BIN
)
$(
DBGNAME
)
$(
OBJCOPY
)
--strip-debug
$(
BIN
)
$(
OBJCOPY
)
--strip-debug
$(
BIN
)
-$(
OBJCOPY
)
--add-gnu-debuglink
=
$(
DBGNAME
)
$(
BIN
)
-$(
OBJCOPY
)
--add-gnu-debuglink
=
$(
DBGNAME
)
$(
BIN
)
-$(
GZIP
)
$(
GZIP_OPTS
)
"
$(
DBGNAME
)
.txt"
-$(
GZIP
)
$(
GZIP_OPTS
)
"
$(
DBGNAME
)
.txt"
ifndef
COMSPEC
ifndef
COMSPEC
-$(
GZIP
)
$(
GZIP_OPT2
)
"
$(
DBGNAME
)
.txt"
-$(
GZIP
)
$(
GZIP_OPT2
)
"
$(
DBGNAME
)
.txt"
endif
endif
-$(
UPX
)
$(
UPX_OPTS
)
$(
BIN
)
-$(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