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