-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile.za_voice
59 lines (43 loc) · 1.3 KB
/
makefile.za_voice
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
TARGET = za_voice
ATTR = prx
OBJS = za_voice_entry.o za_voice.o hook.o hook2.o ctrl.o \
draw.o player.o config.o voice_pack.o \
io.o event.o mutex.o \
sceKernelMutex.o sceDmac.o \
RCS = font.dat
DIR_BIN = bin
DIR_SRC = src
DIR_TMP = bin/tmp
ifeq ($(DIR_TMP),)
EXTRA_CLEAN += sf_ogg.o sf_wav.o sf_at3.o
else
EXTRA_CLEAN += $(DIR_TMP)/sf_ogg.o $(DIR_TMP)/sf_wav.o $(DIR_TMP)/sf_at3.o
endif
CFLAGS = -O2 -G0 -Wall -std=c99
CXXFLAGS = -O2 -G0 -Wall -std=c++0x -fno-exceptions -fno-rtti
LDFLAGS =
INCDIR = ./extlibs/include $(PSPDEV)/psp/include
LIBDIR = ./extlibs/lib
LIBS = -lvorbisidec -logg
LIBS += -lc -lpsprtc -lpspatrac3 -lpspaudio -lpspuser
#USE_PSPSDK_LIBC = 1
ifneq ($(DEBUG),)
CFLAGS += -DDEBUG=1
CXXFLAGS += -DDEBUG=1
endif
ifneq ($(AT3),0)
OBJS += sf_at3.o
endif
ifneq ($(WAV),0)
OBJS += sf_wav.o
endif
ifneq ($(OGG),0)
OBJS += sf_ogg.o
endif
PSP_FW_VERSION=660
PRX_EXPORTS=exports_za_voice.exp
PSPSDK = $(shell psp-config --pspsdk-path)
include ./build_prx.mak
$(DIR_SRC)/hook2.c : $(DIR_SRC)/asm_offset_define.h
$(DIR_SRC)/asm_offset_define.h : $(DIR_SRC)/offset_define.c $(DIR_SRC)/offset_define.h $(DIR_SRC)/global.h $(DIR_SRC)/config.h $(DIR_SRC)/hook_data.h
$(CC) -S $< -o - | awk -F'[\t:]' '{ if($$1 ~ /OFF/) { printf "#define " $$1 " "} else if($$2 == ".word") {print $$3} }' > $@