Mercurial > hg > Game > Cerium
diff 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 |
line wrap: on
line diff
--- a/Renderer/Test/Makefile.macosx Thu Oct 22 17:34:12 2009 +0900 +++ b/Renderer/Test/Makefile.macosx Thu Oct 22 18:38:07 2009 +0900 @@ -1,40 +1,33 @@ include ./Makefile.def -SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) -SRCS_EXCLUDE = # ½ü³° -SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) -OBJS = $(SRCS:.cc=.o) - -TASK_DIR = task -TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) -TASK_SRCS_EXCLUDE = span_pack_draw.cc -TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) -TASK_OBJS = $(TASK_SRCS:.cc=.o) - -LIBS += -lFifoManager +LIBS += -lFifoManager -lCerium CFLAGS += `sdl-config --cflags` `xml2-config --cflags` LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL -.SUFFIXES: .cc .o +.SUFFIXES: .cc .o .xml .xml.h .cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ -all: $(TARGET) +all: ball_bound boss1_action -$(TARGET) : $(OBJS) $(TASK_OBJS) - $(AR) crus $@ $(OBJS) $(TASK_OBJS) -# SGList.o: create_sg_list -# $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@ +BALL_BOUND_OBJ = ball_bound.o +BALL_BOUND_XML = xml_file/Ball.xml +ball_bound : $(BALL_BOUND_OBJ) $(BALL_BOUND_XML).o + $(CC) -o $@ $< $(BALL_BOUND_XML).o $(LIBS) +ball_bound.cc : $(BALL_BOUND_XML).h +$(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h : $(BALL_BOUND_XML) + perl $(TOOL)/create_sglist.pl -o $@ $(BALL_BOUND_XML) -create_sg_list: - @if [ ! -f SGList.h ]; then \ - cd tools/;\ - ./create_sglist.pl ../xml_file/*.xml;\ - fi - +BOSS_OBJ = boss1_action.o +BOSS_XML = xml_file/boss1.xml xml_file/player1.xml xml_file/p_shot.xml xml_file/blast.xml +boss1_action : $(BOSS_OBJ) xml_file/boss1.xml.o + $(CC) -o $@ $< xml_file/boss1.xml.o $(LIBS) +boss1_action.cc : xml_file/boss1.xml.h +xml_file/boss1.xml.h xml_file/boss1.xml.cc : $(BOSS_XML) + perl $(TOOL)/create_sglist.pl -o $@ $(BOSS_XML) run: $(TARGET) sudo ./$(TARGET) -width 576 -height 384 -bpp 32 @@ -47,8 +40,8 @@ $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc clean: - rm -f $(TARGET) $(OBJS) $(TASK_OBJS) + rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o rm -f *~ \#* - rm -f SGList.h SGList.cc + rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ) -include depend.inc