forked from tsuki/openroller
37 lines
947 B
Makefile
37 lines
947 B
Makefile
TARGET = openroller_psp
|
|
OBJS = src/main.o src/StageRuntime.o src/AudioPlayer.o src/Gameplay.o src/SongMenu.o
|
|
|
|
INCDIR = include ../include
|
|
ifeq ($(DEBUG),1)
|
|
CFLAGS = -Og -g3 -G0 -Wall -Wextra
|
|
else
|
|
CFLAGS = -O2 -G0 -Wall -Wextra
|
|
endif
|
|
CXXFLAGS = $(CFLAGS) -std=gnu++17 -fno-exceptions -fno-rtti
|
|
CXXFLAGS += -DOPENROLLER_BUILD_TIMESTAMP=\"$(BUILD_TIMESTAMP)\"
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
LIBDIR =
|
|
LDFLAGS =
|
|
LIBS = -lpspgum -lpspgu -lpspaudio -lpspmp3
|
|
|
|
BUILD_PRX = 1
|
|
|
|
EXTRA_TARGETS = EBOOT.PBP
|
|
PSP_EBOOT_TITLE = OpenRoller PSP
|
|
|
|
# XMB media is optional so the public source tree can be built without
|
|
# redistributing project-specific artwork or music.
|
|
ifneq ($(wildcard assets/ICON0.PNG),)
|
|
PSP_EBOOT_ICON = assets/ICON0.PNG
|
|
endif
|
|
ifneq ($(wildcard assets/PIC1.PNG),)
|
|
PSP_EBOOT_PIC1 = assets/PIC1.PNG
|
|
endif
|
|
ifneq ($(wildcard assets/SND0.AT3),)
|
|
PSP_EBOOT_SND0 = assets/SND0.AT3
|
|
endif
|
|
|
|
PSPSDK := $(shell psp-config --pspsdk-path)
|
|
include $(PSPSDK)/lib/build.mak
|