/
Makefile
41 lines (30 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
TARGET = category_lite
STUBS = imports.o scePaf.o func_stubs.o
CATEGORY_MODES = multims.o context.o vshitem.o mode.o selection.o
HELPER = clearcache.o logger.o utils.o config.o
OBJS = main.o category.o gcread.o gcpatches.o sysconf.o language.o
OBJS += $(CATEGORY_MODES) $(HELPER) $(STUBS)
LIBS = -lpsprtc -lpspreg
EXTRA_TARGETS = category_lang
EXTRA_CLEAN = category_lite_??.h
ifeq (x$(CONFIG_LANG), x)
CONFIG_LANG = en
endif
all: category_lang
# -psp-packer category_lite.prx category_lite.prx
category_lang:
bin2c category_lite_$(CONFIG_LANG).txt category_lite_lang.h category_lite_lang
EXTRA_WARNS= -Wextra -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wwrite-strings -Wunreachable-code
CFLAGS =-O2 -Wall -G0 -std=c99 -fshort-wchar $(EXTRA_WARNS)
ifeq ($(DEBUG), 1)
CFLAGS+=-DDEBUG
endif
ASFLAGS = $(CFLAGS)
LDFLAGS = -mno-crt0 -nostartfiles
BUILD_PRX = 1
PRX_EXPORTS = exports.exp
USE_USER_LIBS = 1
USE_USER_LIBC = 1
PSP_FW_VERSION=620
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak