mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-10 06:31:40 +00:00
Add support for gprof profiling with USE_GPROF
This commit is contained in:
parent
d4e8999950
commit
94a8a52326
2 changed files with 16 additions and 7 deletions
9
MakePHAT
9
MakePHAT
|
@ -14,7 +14,12 @@ PSP_FW_VERSION=660
|
|||
MODE=-DKERNEL_MODE
|
||||
|
||||
|
||||
ifeq ($(USE_GPROF),1)
|
||||
GPROF_LIBS = -lpspprof
|
||||
GPROF_FLAGS = -pg -DPROFILE
|
||||
else
|
||||
BUILD_PRX = 1
|
||||
endif
|
||||
|
||||
COMMON_OBJS = \
|
||||
source/psp/battery.o \
|
||||
|
@ -113,9 +118,9 @@ AUDIO_LIBS = -lpspaudiolib -lpspaudio -lpspmp3 source/psp/m33libs/libpspaudiocod
|
|||
MISC_LIBS = -lpsprtc -lpspmath -lpsppower -lpsphprm -ljpeg -lpng source/psp/m33libs/libz.a source/psp/iridlibs/libPerf.a
|
||||
NET_LIBS = -lpspwlan -lpspnet_adhoc -lpspnet_adhocctl
|
||||
STD_LIBS = -lstdc++ -lm -lc
|
||||
LIBS = $(GU_LIBS) $(AUDIO_LIBS) $(MISC_LIBS) $(STD_LIBS) $(NET_LIBS)
|
||||
LIBS = $(GPROF_LIBS) $(GU_LIBS) $(AUDIO_LIBS) $(MISC_LIBS) $(STD_LIBS) $(NET_LIBS)
|
||||
|
||||
CFLAGS = -ffast-math -O3 -G0 -Wall -Did386="0" -DPSP $(MODE) $(HARDWARE_VIDEO_ONLY_FLAGS) -DSWIZZLE32 -DPSP_MP3_HWDECODE -DFULLBRIGHT -DHL_RENDER -Wno-strict-aliasing -DPSP_VFPU
|
||||
CFLAGS = -ffast-math -O3 -G0 -Wall $(GPROF_FLAGS) -Did386="0" -DPSP $(MODE) $(HARDWARE_VIDEO_ONLY_FLAGS) -DSWIZZLE32 -DPSP_MP3_HWDECODE -DFULLBRIGHT -DHL_RENDER -Wno-strict-aliasing -DPSP_VFPU
|
||||
CXXFLAGS = -fno-rtti -Wcast-qual -Wno-write-strings -Wno-sign-compare -Wno-strict-aliasing
|
||||
ASFLAGS = $(CFLAGS) -c
|
||||
|
||||
|
|
10
MakeSLIM
10
MakeSLIM
|
@ -15,8 +15,12 @@ PSP_LARGE_MEMORY = 1
|
|||
|
||||
MODE=-DKERNEL_MODE
|
||||
|
||||
|
||||
ifeq ($(USE_GPROF),1)
|
||||
GPROF_LIBS = -lpspprof
|
||||
GPROF_FLAGS = -pg -DPROFILE
|
||||
else
|
||||
BUILD_PRX = 1
|
||||
endif
|
||||
|
||||
COMMON_OBJS = \
|
||||
source/psp/battery.o \
|
||||
|
@ -115,9 +119,9 @@ AUDIO_LIBS = -lpspaudiolib -lpspaudio -lpspmp3 source/psp/m33libs/libpspaudiocod
|
|||
MISC_LIBS = -lpsprtc -lpsppower -lpspmath -lpsphprm -ljpeg -lpng source/psp/m33libs/libz.a source/psp/iridlibs/libPerf.a
|
||||
NET_LIBS = -lpspwlan -lpspnet_adhoc -lpspnet_adhocctl
|
||||
STD_LIBS = -lstdc++ -lm -lc
|
||||
LIBS = $(GU_LIBS) $(AUDIO_LIBS) $(MISC_LIBS) $(STD_LIBS) $(NET_LIBS)
|
||||
LIBS = $(GPROF_LIBS) $(GU_LIBS) $(AUDIO_LIBS) $(MISC_LIBS) $(STD_LIBS) $(NET_LIBS)
|
||||
|
||||
CFLAGS = -ffast-math -O3 -G0 -Wall -Did386="0" -DPSP $(MODE) $(HARDWARE_VIDEO_ONLY_FLAGS) -DSWIZZLE32 -DSLIM -DPSP_MP3_HWDECODE -DFULLBRIGHT -DHL_RENDER -Wno-strict-aliasing -DPSP_VFPU
|
||||
CFLAGS = -ffast-math -O3 -G0 -Wall $(GPROF_FLAGS) -Did386="0" -DPSP $(MODE) $(HARDWARE_VIDEO_ONLY_FLAGS) -DSWIZZLE32 -DSLIM -DPSP_MP3_HWDECODE -DFULLBRIGHT -DHL_RENDER -Wno-strict-aliasing -DPSP_VFPU
|
||||
CXXFLAGS = -fno-rtti -Wcast-qual -Wno-write-strings -Wno-sign-compare -Wno-strict-aliasing
|
||||
ASFLAGS = $(CFLAGS) -c
|
||||
|
||||
|
|
Loading…
Reference in a new issue