Subversion Repositories pspware

Rev

Blame | Last modification | View Log | RSS feed

TARGET = loadlib
OBJS = main.o libs.o

# Define to build this as a prx (instead of a static elf)
BUILD_PRX=1
# Define the name of our custom exports (minus the .exp extension)
PRX_EXPORTS=exports.exp

USE_NEWLIB_LIBC = 1

INCDIR = -I ..  
CFLAGS = -O2 -G0 -Wall -mno-explicit-relocs
CXXFLAGS = $(CFLAGS) -mno-explicit-relocs -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBS = -lc
LIBDIR =

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


EXTRA_CLEAN = luaplayer.S exports.o simple.elf

release: all
        cp loadlib.prx ../loadlib.prx

luaplayer.S: ../../src/exports.exp
        $(shell psp-config --pspdev-path)/bin/psp-build-exports --build-stubs $<