Subversion Repositories psp

[/] [branches/] [smsplus_adhoc/] [Makefile.psp] - Blame information for rev 354

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 54 jack
PSPSDK=$(shell psp-config --pspsdk-path)
2
 
3 71 jack
PSPAPP=./psp
4 54 jack
SOUND=./sound
5
Z80=./cpu
6 247 jack
PSPLIB=$(PSPAPP)/psplib
7 71 jack
DATA=$(PSPAPP)/data
8 54 jack
 
9 251 jack
PSP_FW_VERSION=200
10 247 jack
export PSP_FW_VERSION
11 208 jack
 
12 71 jack
PSP_APP_NAME=SMS Plus PSP
13 354 jack
PSP_APP_VER="1.2.5adhoc BETA"
14 71 jack
 
15 54 jack
TARGET=smsppsp
16
EXTRA_TARGETS=EBOOT.PBP
17 71 jack
PSP_EBOOT_TITLE=$(PSP_APP_NAME) $(PSP_APP_VER)
18 54 jack
PSP_EBOOT_ICON=$(DATA)/smsp-icon.png
19
 
20
BUILD_Z80=$(Z80)/z80.o
21 71 jack
BUILD_APP=sms.o pio.o memz80.o render.o vdp.o \
22 54 jack
          system.o error.o fileio.o state.o loadrom.o
23
BUILD_MINIZIP=unzip/ioapi.o unzip/unzip.o
24
BUILD_SOUND=$(SOUND)/sound.o $(SOUND)/sn76489.o $(SOUND)/emu2413.o \
25
            $(SOUND)/ym2413.o $(SOUND)/fmintf.o $(SOUND)/stream.o
26 71 jack
BUILD_PSPAPP=$(PSPAPP)/emumain.o $(PSPAPP)/menu.o $(PSPAPP)/main.o
27 54 jack
 
28
OBJS=$(BUILD_PSPLIB) $(BUILD_SOUND) $(BUILD_Z80) $(BUILD_MINIZIP) \
29 248 jack
     $(BUILD_APP) $(BUILD_PSPAPP)
30 54 jack
 
31 71 jack
DEFINES=-DLSB_FIRST -DALIGN_DWORD
32
BASE_DEFS=-DPSP -DPSP_APP_VER=\"$(PSP_APP_VER)\" -DPSP_APP_NAME="\"$(PSP_APP_NAME)\""
33
CFLAGS=-O2 -G0 -Wall $(BASE_DEFS) $(DEFINES)
34 54 jack
CXXFLAGS=$(CFLAGS) -fno-exceptions -fno-rtti
35
ASFLAGS=$(CFLAGS)
36
INCDIR=$(PSPLIB) ./cpu ./sound ./unzip
37 204 jack
LIBDIR=$(PSPLIB)
38 209 jack
LIBS=-lmypsp -lpng -lpspgu -lpsppower -lz -lm -lc -lpspaudio -lpsprtc \
39
  -lpspwlan -lpspnet_adhoc -lpspnet_adhocctl -lpspnet_adhocmatching
40 54 jack
 
41 247 jack
all: build_psplib
42
clean: clean_psplib
43
 
44 54 jack
include $(PSPSDK)/lib/build.mak
45 236 jack
 
46 247 jack
build_psplib:
47
        cd $(PSPLIB) ; $(MAKE)
48
 
49
clean_psplib:
50
        cd $(PSPLIB) ; $(MAKE) clean
51