-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
252 lines (107 loc) · 3.02 KB
/
makefile
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
TARGET = pspChess
PSPSDK=$(shell psp-config --pspsdk-path)
MIKMOD = ../mikmod-3.0.3
CC = psp-gcc
LD = psp-gcc
STRIP = psp-strip
PACK_PBP = pack-pbp
CFLAGS = -O2 -Wall -I$(PSPSDK)/include -I$(MIKMOD)/include
LINK_FLAGS = -L$(MIKMOD)/lib -L$(PSPSDK)/lib \
-lpng -lz -lm \
-lmikmod \
-lmmio \
-lmad \
-lpspaudiolib \
-lpspaudio \
-lpspdebug \
-lpspdisplay \
-lpspge \
-lpspwlan \
-lpspctrl \
-lpspsdk \
-lc \
-lpspuser \
-lpspkernel \
PSP_DIR = G:/PSP/GAME/PSPCHESS
FTP = C:/WINDOWS/SYSTEM32/FTP.EXE
SFTP = "C:/PROGRAM FILES/PUTTY/PSFTP.EXE"
PKGNAME = PSPCHESS
HFILES = bce.h
CFILES = board.c main.c movegen.c domove.c user.c search.c \
vars.c book.c checktest.c eval.c hash.c \
osk.c \
network.c \
png_handler.c \
pgn.c \
file_select.c \
string_select.c \
random.c pg.c music.c \
book_moves.c option_menu.c \
title_image.c \
mp3player.c \
background_image.c \
images/image_captured_pieces_bevel.c \
images/image_lastmove.c \
images/image_thinking.c \
images/image_tomove.c \
images/black_empty.c \
images/white_empty.c \
images/black_b-bishop.png.c \
images/black_b-knight.png.c \
images/black_b-rook.png.c \
images/black_b-king.png.c \
images/black_b-queen.png.c \
images/black_b-pawn.png.c \
images/black_w-bishop.png.c \
images/black_w-knight.png.c \
images/black_w-rook.png.c \
images/black_w-king.png.c \
images/black_w-queen.png.c \
images/black_w-pawn.png.c \
images/white_b-bishop.png.c \
images/white_b-knight.png.c \
images/white_b-rook.png.c \
images/white_b-king.png.c \
images/white_b-queen.png.c \
images/white_b-pawn.png.c \
images/white_w-bishop.png.c \
images/white_w-knight.png.c \
images/white_w-rook.png.c \
images/white_w-king.png.c \
images/white_w-queen.png.c \
images/white_w-pawn.png.c \
OFILES = ${CFILES:.c=.o}
OBJS = $(OFILES)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = pspChess
# include $(PSPSDK)/lib/build.mak
BIN_DIST_FILES = EBOOT.PBP PSPCHESS/EBOOT.PBP PSPCHESS%/EBOOT.PBP \
readme.txt changelog.txt pieces.png pieces2.png
default:
@make eboot.pbp
@make PSPCHESS/EBOOT.PBP
@make PSPCHESS%/EBOOT.PBP
clean:
rm *.o
rm images/*.o
rm eboot.pbp
rm out
loadpsp: PSPCHESS/EBOOT.PBP
cp PSPCHESS/EBOOT.PBP $(PSP_DIR)/EBOOT.PBP
pspchess_src.zip: $(CFILES)
zip pspchess_src.zip * images/* -x \*.o freechess.txt -x out -x cvs
pspchess.zip: $(BIN_DIST_FILES)
zip pspchess.zip EBOOT.PBP $(BIN_DIST_FILES)
out: $(OFILES)
$(LD) $(CFLAGS) $(OFILES) $(LINK_FLAGS) -o out
$(STRIP) out
PARAM.SFO:
mksfo "pspChess" PARAM.SFO
eboot.pbp: out PARAM.SFO
$(PACK_PBP) EBOOT.PBP PARAM.SFO ICON0.PNG NULL NULL PICT1.png NULL out NULL
PSPCHESS%/EBOOT.PBP: PARAM.SFO
$(PACK_PBP) PSPCHESS%/EBOOT.PBP PARAM.SFO ICON0.PNG NULL NULL PICT1.png NULL NULL NULL
PSPCHESS/EBOOT.PBP: out
cp out PSPCHESS/EBOOT.PBP
.o: $(HFILES)
$(CC) $(CFLAGS) -c $<