dquakeplus/Makefile.psp
2024-09-08 18:10:06 -07:00

139 lines
No EOL
3.4 KiB
Text

MAKEFLAGS+="-j -l $(shell grep -c ^processor /proc/cpuinfo) "
PSPSDK = $(shell psp-config --pspsdk-path)
PSPLIBSDIR = $(PSPSDK)/..
TARGET = nzportable
PSP_EBOOT_TITLE = Nazi Zombies: Portable
PSP_EBOOT_ICON = source/psp/pics/icon.png
PSP_EBOOT_SND0 = source/psp/pics/snd0.at3
PSP_EBOOT_PIC1 = source/psp/pics/pic.png
PSP_FW_VERSION=400
ifeq ($(USE_GPROF),1)
GPROF_LIBS = -lpspprof
GPROF_FLAGS = -pg -DPROFILE
else
ifeq ($(DEBUG),1)
BUILD_PRX = 1
MODE=-DKERNEL_MODE
endif
endif
COMMON_OBJS = \
source/psp/battery.o \
source/psp/thread.o \
source/psp/VramExt.o \
source/psp/input.o \
source/psp/main.o \
source/psp/math.o \
source/psp/sound.o \
source/psp/system.o \
source/psp/module.o \
source/psp/network.o \
source/psp/network_psp.o \
source/psp/gethost.o \
source/psp/fnmatch.o \
source/psp/cd.o \
source/psp/mp3.o \
source/psp/Random.o \
\
source/chase.o \
source/cl_demo.o \
source/cl_input.o \
source/cl_main.o \
source/cl_parse.o \
source/cl_tent.o \
source/cl_slist.o \
source/cmd.o \
source/psp/common.o \
source/console.o \
source/crc.o \
source/cvar.o \
source/host.o \
source/host_cmd.o \
source/psp/keys.o \
source/mathlib.o \
source/matrixlib.o \
source/psp/menu.o \
source/psp/net_dgrm.o \
source/net_loop.o \
source/psp/net_main.o \
source/net_vcr.o \
source/pr_cmds.o \
source/pr_edict.o \
source/pr_exec.o \
source/snd_dma.o \
source/snd_mem.o \
source/snd_mix.o \
source/cl_hud.o \
source/sv_main.o \
source/sv_move.o \
source/sv_phys.o \
source/sv_user.o \
source/view.o \
source/wad.o \
source/world.o \
source/zone.o \
source/crypter.o
HARDWARE_VIDEO_ONLY_OBJS = \
source/psp/wad3.o \
source/psp/clipping.o \
source/psp/vram.o \
source/psp/gu/gu_psp.o \
source/psp/gu/gu_resample.o \
source/psp/gu/gu_images.o \
source/psp/gu/gu_fullbright.o \
source/psp/gu/gu_hlmdl.o \
source/psp/gu/gu_draw.o \
source/psp/gu/gu_entity_fragment.o \
source/psp/gu/gu_QMB.o \
source/psp/gu/gu_decals_QMB.o \
source/psp/gu/gu_part.o \
source/psp/gu/gu_light.o \
source/psp/gu/gu_main.o \
source/psp/gu/gu_mesh.o \
source/psp/gu/gu_mhex2.o \
source/psp/gu/gu_misc.o \
source/psp/gu/gu_model.o \
source/psp/gu/gu_screen.o \
source/psp/gu/gu_surface.o \
source/psp/gu/gu_warp.o \
source/psp/gu/gu_fog.o \
source/psp/gu/gu_dxtn.o \
source/psp/gu/gu_colorquant.o
HARDWARE_VIDEO_ONLY_FLAGS = -DPSP_HARDWARE_VIDEO
OBJS = $(COMMON_OBJS) $(HARDWARE_VIDEO_ONLY_OBJS)
GU_LIBS = -lpspgum_vfpu -lpspvfpu -lpspgu -lpspvram
AUDIO_LIBS = -lpspaudiolib -lpspaudio -lpspaudiocodec -lpspmp3 source/psp/m33libs/libpspkubridge.a
MISC_LIBS = -lpsppower -lpspmath -lpsphprm -ljpeg -lpng -lz
NET_LIBS = -lpspwlan -lpspnet_adhoc -lpspnet_adhocctl
STD_LIBS = -lstdc++ -lm -lc
LIBS = $(GPROF_LIBS) $(GU_LIBS) $(AUDIO_LIBS) $(MISC_LIBS) $(STD_LIBS) $(NET_LIBS)
CFLAGS = -ffast-math -O3 -Ofast -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
include $(PSPSDK)/lib/build.mak
clean:
rm -rf build/
rm source/psp/*.o
rm source/*.o
install: EBOOT.PBP
mkdir -p build/psp/
mkdir -p build/psp/bin
mv EBOOT.PBP build/psp/bin/
ifeq ($(DEBUG),1)
mv *.prx build/psp/
endif
mv *.elf build/psp/
mv *.SFO build/psp/
@echo DONE