Subversion Repositories pspware

Rev

Rev 346 | Rev 356 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
345 Oobles 1
BUILD_PRX=1
346 Oobles 2
PRX_EXPORTS=src/exports.exp
345 Oobles 3
 
4
TARGET = luaplayer
5
OBJS = src/graphics.o src/sound.o src/luaplayer.o src/utility.o src/main.o src/framebuffer.o \
350 Oobles 6
	src/luacontrols.o src/luagraphics.o src/luasound.o src/luatimer.o src/luasystem.o src/luawlan.o src/lua3d.o loadlib.o
210 shine 7
INCDIR =
345 Oobles 8
CFLAGS = -g -G0 -Wall -O0 -fno-strict-aliasing -mno-explicit-relocs $(EXTRA_CFLAGS) $(shell freetype-config --cflags)
210 shine 9
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
10
ASFLAGS = $(CFLAGS)
11
LIBDIR =
12
LDFLAGS =
345 Oobles 13
LIBS=  -llua -llualib -lpng -ljpeg -lz -lpspgum -lm -lmikmod -lmmio $(shell freetype-config --libs) \
14
	-lpspaudiolib -lpspaudio -lpspusb -lpspusbstor -lpsppower \
15
	-lpspwlan -lpspgu -lpspdebug -lpsphprm_driver
286 shine 16
# TODO: without -lpspsdk it says: libpspsdk.a(inethelper.o): In function `pspSdkInetInit': inethelper.c:67: undefined reference to `sceNetInit'
17
 
249 mrbrown 18
EXTRA_CLEAN = moreclean
210 shine 19
PSPSDK=$(shell psp-config --pspsdk-path)
212 shine 20
 
210 shine 21
include $(PSPSDK)/lib/build.mak
22
 
350 Oobles 23
loadlib.S: modules/loadlib/exports.exp
24
	$(shell psp-config --pspdev-path)/bin/psp-build-exports --build-stubs $<
25
 
291 shine 26
src/main.o: boot.cpp vera.cpp veraMono.cpp
212 shine 27
 
279 shine 28
boot.cpp: src/auxiliary/boot.lua
249 mrbrown 29
	$(shell psp-config --pspdev-path)/bin/bin2c $< $@ bootString
30
 
291 shine 31
vera.cpp: src/auxiliary/Vera.ttf
32
	$(shell psp-config --pspdev-path)/bin/bin2c $< $@ ttfVera
33
 
34
veraMono.cpp: src/auxiliary/VeraMono.ttf
35
	$(shell psp-config --pspdev-path)/bin/bin2c $< $@ ttfVeraMono
36
 
249 mrbrown 37
.PHONY: moreclean
38
moreclean:
279 shine 39
	-rm -f boot.cpp
291 shine 40
	-rm -f vera.cpp
41
	-rm -f veraMono.cpp
42