-
Notifications
You must be signed in to change notification settings - Fork 71
/
Makefile.psp
78 lines (57 loc) · 2 KB
/
Makefile.psp
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
include version.txt
#if defined(NO_SOUND)
EXTRA_DEFINES+= -DNOSOUND
#endif
#if defined(NO_MERCURY)
EXTRA_DEFINES+= -DNO_MERCURY
#endif
EXTRA_INCLUDES= -I./x11 -I./x68k -I./fmgen -I./win32api \
$(GTK_INCLUDE) $(SDL_INCLUDE)
CXXEXTRA_INCLUDES= $(EXTRA_INCLUDES)
CXXEXTRA_DEFINES= $(EXTRA_DEFINES)
CXXDEBUGFLAGS= $(CDEBUGFLAGS)
LOCAL_LIBRARIES= $(XLIB) $(GTK_LIB) $(SDL_LIB)
#define PassCDebugFlags
CPUOBJS= x68k/d68k.o m68000/c68k.o m68000/m68000.o
X68KOBJS= \
x68k/adpcm.o x68k/bg.o x68k/crtc.o x68k/dmac.o x68k/fdc.o \
x68k/fdd.o x68k/disk_d88.o x68k/disk_dim.o x68k/disk_xdf.o \
x68k/gvram.o x68k/ioc.o x68k/irqh.o x68k/mem_wrap.o x68k/mercury.o \
x68k/mfp.o x68k/palette.o x68k/midi.o x68k/pia.o x68k/rtc.o \
x68k/sasi.o x68k/scc.o x68k/scsi.o x68k/sram.o x68k/sysport.o \
x68k/tvram.o
FMGENOBJS= \
fmgen/fmgen.o fmgen/fmg_wrap.o fmgen/file.o fmgen/fmtimer.o \
fmgen/opm.o fmgen/opna.o fmgen/psg.o
X11OBJS= \
x11/joystick.o x11/juliet.o x11/keyboard.o x11/mouse.o x11/prop.o \
x11/status.o x11/timer.o \
x11/dswin.o x11/windraw.o x11/winui.o \
x11/about.o x11/common.o
X11CXXOBJS= x11/winx68k.o
WIN32APIOBJS= win32api/dosio.o win32api/fake.o win32api/peace.o
COBJS= $(X68KOBJS) $(X11OBJS) $(WIN32APIOBJS) $(CPUOBJS)
CXXOBJS= $(FMGENOBJS) $(X11CXXOBJS)
OBJS= $(COBJS) $(CXXOBJS)
TARGET = px68k
#OBJS = cube.o logo.o ../common/callbacks.o ../common/vram.o
# for psplink
#BUILD_PRX = 1
PSPDEV = $(shell psp-config -d)
PSPBIN = $(PSPDEV)/psp/bin
SDL_CONFIG = $(PSPBIN)/sdl-config
SDL_INCLUDE= `$(SDL_CONFIG) --cflags`
SDL_LIB= `$(SDL_CONFIG) --libs`
INCDIR = ./x11 ./x68k ./fmgen ./win32api
CFLAGS = -G0 -O2 -Wall $(SDL_INCLUDE) -DPX68K_VERSION=$(PX68K_VERSION)
# for debugging
#CFLAGS = -g -G0 -Wall $(SDL_INCLUDE)
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
LIBDIR =
LDFLAGS =
LIBS= -lpspgum -lpspgu -lm -lstdc++ $(SDL_LIB)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PX68K for PSP ver.$(PX68K_VERSION)
PSP_EBOOT_ICON = psp_logo.png
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak