summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/makefile b/makefile
index 837aa08682c..b79c0779771 100644
--- a/makefile
+++ b/makefile
@@ -215,6 +215,9 @@ BUILD_ZLIB = 1
# (default is SYMLEVEL = 2 normally; use 1 if you only need backtrace)
# SYMLEVEL = 2
+# uncomment next line to dump the symbols to a .sym file
+# DUMPSYM = 1
+
# uncomment next line to include profiling information from the compiler
# PROFILE = 1
@@ -296,6 +299,7 @@ CC = @gcc
LD = @g++
MD = -mkdir$(EXE)
RM = @rm -f
+OBJDUMP = @objdump
@@ -695,6 +699,11 @@ $(VERSIONOBJ): $(DRVLIBS) $(LIBOSD) $(LIBEMU) $(LIBCPU) $(LIBSOUND) $(LIBUTIL) $
$(EMULATOR): $(VERSIONOBJ) $(DRVLIBS) $(LIBOSD) $(LIBEMU) $(LIBCPU) $(LIBDASM) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(SOFTFLOAT) $(ZLIB) $(LIBOCORE) $(RESFILE)
@echo Linking $@...
$(LD) $(LDFLAGS) $(LDFLAGSEMULATOR) $^ $(LIBS) -o $@
+ifeq ($(TARGETOS),win32)
+ifdef SYMBOLS
+ $(OBJDUMP) --section=.text --line-numbers --syms --demangle $@ >$(FULLNAME).sym
+endif
+endif
endif