Mercurial > hg > Game > Cerium
comparison Renderer/Test/Makefile.macosx @ 558:00428ba0ba03 draft
boss1_action
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 18:38:07 +0900 |
parents | 109a33b72b10 |
children | 51960ab890e0 |
comparison
equal
deleted
inserted
replaced
557:764772be1e3c | 558:00428ba0ba03 |
---|---|
1 include ./Makefile.def | 1 include ./Makefile.def |
2 | 2 |
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) | 3 LIBS += -lFifoManager -lCerium |
4 SRCS_EXCLUDE = # ½ü³° | |
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
6 OBJS = $(SRCS:.cc=.o) | |
7 | |
8 TASK_DIR = task | |
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc | |
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
12 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
13 | |
14 LIBS += -lFifoManager | |
15 | 4 |
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` | 5 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` |
17 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL | 6 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL |
18 | 7 |
19 .SUFFIXES: .cc .o | 8 .SUFFIXES: .cc .o .xml .xml.h |
20 | 9 |
21 .cc.o: | 10 .cc.o: |
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | 11 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
23 | 12 |
24 all: $(TARGET) | 13 all: ball_bound boss1_action |
25 | 14 |
26 $(TARGET) : $(OBJS) $(TASK_OBJS) | |
27 $(AR) crus $@ $(OBJS) $(TASK_OBJS) | |
28 | 15 |
29 # SGList.o: create_sg_list | 16 BALL_BOUND_OBJ = ball_bound.o |
30 # $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@ | 17 BALL_BOUND_XML = xml_file/Ball.xml |
18 ball_bound : $(BALL_BOUND_OBJ) $(BALL_BOUND_XML).o | |
19 $(CC) -o $@ $< $(BALL_BOUND_XML).o $(LIBS) | |
20 ball_bound.cc : $(BALL_BOUND_XML).h | |
21 $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h : $(BALL_BOUND_XML) | |
22 perl $(TOOL)/create_sglist.pl -o $@ $(BALL_BOUND_XML) | |
31 | 23 |
32 create_sg_list: | 24 BOSS_OBJ = boss1_action.o |
33 @if [ ! -f SGList.h ]; then \ | 25 BOSS_XML = xml_file/boss1.xml xml_file/player1.xml xml_file/p_shot.xml xml_file/blast.xml |
34 cd tools/;\ | 26 boss1_action : $(BOSS_OBJ) xml_file/boss1.xml.o |
35 ./create_sglist.pl ../xml_file/*.xml;\ | 27 $(CC) -o $@ $< xml_file/boss1.xml.o $(LIBS) |
36 fi | 28 boss1_action.cc : xml_file/boss1.xml.h |
37 | 29 xml_file/boss1.xml.h xml_file/boss1.xml.cc : $(BOSS_XML) |
30 perl $(TOOL)/create_sglist.pl -o $@ $(BOSS_XML) | |
38 | 31 |
39 run: $(TARGET) | 32 run: $(TARGET) |
40 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | 33 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 |
41 | 34 |
42 debug: $(TARGET) | 35 debug: $(TARGET) |
45 depend: | 38 depend: |
46 $(RM) depend.inc | 39 $(RM) depend.inc |
47 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | 40 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc |
48 | 41 |
49 clean: | 42 clean: |
50 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | 43 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o |
51 rm -f *~ \#* | 44 rm -f *~ \#* |
52 rm -f SGList.h SGList.cc | 45 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ) |
53 | 46 |
54 -include depend.inc | 47 -include depend.inc |