0
|
1 # Makefile to build the SDL tests
|
|
2 include ./Makefile.def
|
|
3
|
|
4 srcdir = .
|
|
5 ABI = -m32
|
|
6
|
|
7 CFLAGS += -g $(ABI) -O2 -Wall `/usr/bin/sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
|
|
8 LIBS += `/usr/bin/sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs`
|
16
|
9 LIBS += -lCerium -lCellManager -lspe2 -lpthread
|
0
|
10
|
|
11
|
16
|
12 TARGET = dandy spe-main
|
0
|
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
|
|
14
|
|
15 all: $(TARGET)
|
|
16
|
16
|
17 speobject:
|
|
18 cd spe; $(MAKE)
|
|
19
|
|
20 spe-main:
|
|
21 ln -s $(CERIUM)/Renderer/Engine/spe-main .
|
|
22
|
|
23 run: $(TARGET)
|
|
24 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
|
|
25 run-hd: $(TARGET)
|
|
26 sudo /usr/sbin/ps3-video-mode -v 133
|
|
27 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32
|
|
28
|
0
|
29 test: $(TARGET)
|
|
30 ./demo -test
|
|
31
|
|
32 demo: $(OBJS) sgoex.o main.o
|
|
33 $(CC) $(ABI) -o $@ main.o sgoex.o $(OBJS) $(LIBS)
|
|
34
|
|
35 dandy: $(OBJS) Dandy.o
|
|
36 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o $(LIBS)
|
|
37
|
|
38 clean:
|
|
39 rm -f $(TARGET) $(OBJS)
|
|
40
|
|
41 .c.o:
|
|
42 $(CC) $(CFLAGS) $(INCLUDES) -c $<
|
|
43
|
|
44 .cc.o:
|
|
45 $(CC) $(CFLAGS) $(INCLUDES) -c $<
|
|
46
|
|
47 debug.o:debug.h
|