0
|
1 # Makefile to build the SDL tests
|
|
2 include ./Makefile.def
|
|
3
|
|
4 srcdir = .
|
|
5 ABI = -m32
|
|
6
|
1
|
7 TASK_DIR = ppe
|
|
8 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
|
|
9 TASK_SRCS_EXCLUDE =
|
|
10 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
|
|
11 TASK_OBJS = $(TASK_SRCS:.cc=.o)
|
|
12
|
0
|
13 CFLAGS += -g $(ABI) -O2 -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
|
|
14 LIBS += `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs`
|
|
15 LIBS += -lCerium -lFifoManager
|
|
16
|
1
|
17 TARGET = demo dandy t_dandy
|
|
18 OBJS = Character.o Bom.o tokuten.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
|
19
|
|
20 all: $(TARGET)
|
|
21
|
|
22 test: $(TARGET)
|
|
23 ./demo -test
|
|
24
|
1
|
25 demo: $(OBJS) sgoex.o main.o collision.o
|
|
26 $(CC) $(ABI) -o $@ main.o sgoex.o collision.o $(OBJS) $(LIBS)
|
0
|
27
|
1
|
28 dandy: $(OBJS) Dandy.o collision.o
|
|
29 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o collision.o $(LIBS)
|
|
30
|
|
31 t_dandy: $(OBJS) $(TASK_OBJS) tcollision.o Dandy.o
|
|
32 $(CC) $(ABI) -o $@ $(OBJS) $(TASK_OBJS) tcollision.o Dandy.o $(LIBS)
|
0
|
33
|
|
34 clean:
|
|
35 rm -f $(TARGET) $(OBJS)
|
1
|
36 rm -f Dandy.o tcollision.o ppe/collision.o ppe/task_init.o
|
0
|
37
|
|
38 .c.o:
|
|
39 $(CC) $(CFLAGS) $(INCLUDES) -c $<
|
|
40
|
|
41 .cc.o:
|
1
|
42 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
|
0
|
43
|
|
44 debug.o:debug.h
|