# HG changeset patch # User Michael Pavone # Date 1549741963 28800 # Node ID c5d4e1d14dac3ebd32331155f5c3e139e993365f # Parent 01236179fc7190a9a07fc7489e358693d07f8365 Allow profiling blastcpm with perftools diff -r 01236179fc71 -r c5d4e1d14dac Makefile --- a/Makefile Sat Feb 09 11:34:31 2019 -0800 +++ b/Makefile Sat Feb 09 11:52:43 2019 -0800 @@ -117,7 +117,8 @@ endif ifdef PROFILE -LDFLAGS+= -Wl,--no-as-needed -lprofiler -Wl,--as-needed +PROFFLAGS:= -Wl,--no-as-needed -lprofiler -Wl,--as-needed +CFLAGS+= -g3 endif ifdef NOGL CFLAGS+= -DDISABLE_OPENGL @@ -236,7 +237,7 @@ $(CC) -shared -o $@ $^ $(LDFLAGS) blastem$(EXE) : $(MAINOBJS) - $(CC) -o $@ $^ $(LDFLAGS) + $(CC) -o $@ $^ $(LDFLAGS) $(PROFFLAGS) $(FIXUP) ./$@ blastjag$(EXE) : jaguar.o jag_video.o $(RENDEROBJS) serialize.o $(M68KOBJS) $(TRANSOBJS) $(CONFIGOBJS) @@ -275,7 +276,7 @@ $(FIXUP) ./$@ blastcpm : blastcpm.o util.o serialize.o $(Z80OBJS) $(TRANSOBJS) - $(CC) -o $@ $^ $(OPT) + $(CC) -o $@ $^ $(OPT) $(PROFFLAGS) test : test.o vdp.o $(CC) -o test test.o vdp.o