annotate Makefile.ps3 @ 35:3b92a4b17049 default tip

fix for macosx Yosemite
author Nozomi
date Thu, 19 May 2016 18:18:34 +0900
parents 3c14f64cbd31
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # Makefile to build the SDL tests
17
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
2 include ./Makefile.def
0
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 srcdir = .
17
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
5 ABI = -m32
0
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
17
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
7 CFLAGS += -g $(ABI) -O2 -Wall `/usr/bin/sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
8 LIBS += `/usr/bin/sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs`
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
9 LIBS += -lCerium -lCellManager -lspe2
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
10
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
11
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
12 TARGET = demo dandy
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
13 OBJS = Character.o Bom.o tokuten.o collision.o count2.o Character_state.o schedule3.o tama2.o syokika.o Ss.o sound.o profile.o debug.o trace.o LoadSprite.o xml.o b64_de.o tree_controll.o object.o sys.o
0
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 all: $(TARGET)
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 test: $(TARGET)
17
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
18 ./demo -test
0
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
17
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
20 demo: $(OBJS) sgoex.o main.o
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
21 $(CC) $(ABI) -o $@ main.o sgoex.o $(OBJS) $(LIBS)
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
22
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
23 dandy: $(OBJS) Dandy.o
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
24 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o $(LIBS)
0
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 clean:
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 rm -f $(TARGET) $(OBJS)
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 .c.o:
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 $(CC) $(CFLAGS) $(INCLUDES) -c $<
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
17
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
32 .cc.o:
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
33 $(CC) $(CFLAGS) $(INCLUDES) -c $<
0
01387a2e419e initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
17
3c14f64cbd31 compile on ps3
tkaito@henri
parents: 0
diff changeset
35 debug.o:debug.h