Subversion Repositories psp

[/] [trunk/] [neopop/] [Makefile.psp] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 127 jack
PSPSDK=$(shell psp-config --pspsdk-path)
2
 
3
PSPAPP=System_PSP
4
DATA=$(PSPAPP)/data
5
PSPLIB=$(PSPAPP)/psplib
6
ZLIB=$(PSPAPP)/zLIB
7
 
8
CORE=Core
9
TLCS900=$(CORE)/TLCS-900h
10
Z80=$(CORE)/z80
11
 
12
PSP_APP_NAME=NeoPop PSP
13 145 jack
PSP_APP_VER=0.71.15
14 127 jack
 
15
TARGET=neopoppsp
16
EXTRA_TARGETS=EBOOT.PBP
17
PSP_EBOOT_TITLE=$(PSP_APP_NAME) $(PSP_APP_VER)
18 136 jack
PSP_EBOOT_ICON=$(DATA)/neopop-icon.png
19 127 jack
 
20
BUILD_APP=$(Z80)/Z80.o $(Z80)/dasm.o $(CORE)/Z80_interface.o \
21
          $(TLCS900)/TLCS900h_registers.o \
22
          $(TLCS900)/TLCS900h_interpret_src.o \
23
          $(TLCS900)/TLCS900h_interpret_single.o \
24
          $(TLCS900)/TLCS900h_interpret_reg.o \
25
          $(TLCS900)/TLCS900h_interpret_dst.o \
26
          $(TLCS900)/TLCS900h_interpret.o \
27
          $(TLCS900)/TLCS900h_disassemble_src.o \
28
          $(TLCS900)/TLCS900h_disassemble_reg.o \
29
          $(TLCS900)/TLCS900h_disassemble_extra.o \
30
          $(TLCS900)/TLCS900h_disassemble_dst.o \
31
          $(TLCS900)/TLCS900h_disassemble.o \
32
          $(CORE)/dma.o $(CORE)/bios.o $(CORE)/biosHLE.o $(CORE)/mem.o \
33
          $(CORE)/interrupt.o $(CORE)/gfx.o $(CORE)/sound.o \
34
          $(CORE)/gfx_scanline_colour.o $(CORE)/gfx_scanline_mono.o \
35
          $(CORE)/flash.o $(CORE)/rom.o $(CORE)/state.o $(CORE)/neopop.o \
36
          $(ZLIB)/crc32.o $(ZLIB)/adler32.o $(ZLIB)/unzip.o $(ZLIB)/zutil.o \
37
          $(ZLIB)/infblock.o $(ZLIB)/inffast.o $(ZLIB)/infutil.o \
38
          $(ZLIB)/infcodes.o $(ZLIB)/inflate.o $(ZLIB)/inftrees.o
39
BUILD_PSPLIB=$(PSPLIB)/psp.o $(PSPLIB)/font.o $(PSPLIB)/image.o \
40
             $(PSPLIB)/video.o $(PSPLIB)/audio.o $(PSPLIB)/fileio.o \
41
             $(PSPLIB)/menu.o $(PSPLIB)/ui.o $(PSPLIB)/ctrl.o \
42
             $(PSPLIB)/kybd.o $(PSPLIB)/perf.o $(PSPLIB)/util.o \
43
             $(PSPLIB)/init.o
44 133 jack
BUILD_PSPAPP=$(PSPAPP)/emulate.o $(PSPAPP)/emumenu.o $(PSPAPP)/neopop.o \
45 127 jack
             $(PSPAPP)/system_rom.o $(PSPAPP)/main.o
46
 
47
OBJS=$(BUILD_APP) $(BUILD_PSPLIB) $(BUILD_PSPAPP)
48
 
49 138 jack
DEFINES=-DCHIP_FREQUENCY=22050 #-DPSP_DEBUG
50 127 jack
BASE_DEFS=-DPSP \
51
  -DPSP_APP_VER=\"$(PSP_APP_VER)\" \
52
        -DPSP_APP_NAME="\"$(PSP_APP_NAME)\""
53
CFLAGS=-O2 -G0 -Wall $(BASE_DEFS) $(DEFINES)
54
CXXFLAGS=$(CFLAGS) -fno-exceptions -fno-rtti
55
ASFLAGS=$(CFLAGS)
56
INCDIR=$(PSPLIB) $(PSPAPP) $(CORE) $(TLCS900) $(Z80) $(ZLIB)
57
LIBS=-lpng -lz -lm -lc -lpspgu -lpsppower -lpspaudio -lpsprtc
58
 
59
include $(PSPSDK)/lib/build.mak
60
 
61
include $(PSPLIB)/build.mak
62