Mercurial > hg > Members > koba > t_dandy
diff Makefile @ 1:b4c797eee72a
task dandy base
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 13 Dec 2010 04:56:23 +0900 |
parents | 435ac1cdb64e |
children | 6382d8f6a973 |
line wrap: on
line diff
--- a/Makefile Sat Dec 11 21:25:28 2010 +0900 +++ b/Makefile Mon Dec 13 04:56:23 2010 +0900 @@ -4,31 +4,41 @@ srcdir = . ABI = -m32 +TASK_DIR = ppe +TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) +TASK_SRCS_EXCLUDE = +TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) +TASK_OBJS = $(TASK_SRCS:.cc=.o) + CFLAGS += -g $(ABI) -O2 -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) LIBS += `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` LIBS += -lCerium -lFifoManager -TARGET = demo dandy -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 +TARGET = demo dandy t_dandy +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 all: $(TARGET) test: $(TARGET) ./demo -test -demo: $(OBJS) sgoex.o main.o - $(CC) $(ABI) -o $@ main.o sgoex.o $(OBJS) $(LIBS) +demo: $(OBJS) sgoex.o main.o collision.o + $(CC) $(ABI) -o $@ main.o sgoex.o collision.o $(OBJS) $(LIBS) -dandy: $(OBJS) Dandy.o - $(CC) $(ABI) -o $@ $(OBJS) Dandy.o $(LIBS) +dandy: $(OBJS) Dandy.o collision.o + $(CC) $(ABI) -o $@ $(OBJS) Dandy.o collision.o $(LIBS) + +t_dandy: $(OBJS) $(TASK_OBJS) tcollision.o Dandy.o + $(CC) $(ABI) -o $@ $(OBJS) $(TASK_OBJS) tcollision.o Dandy.o $(LIBS) clean: rm -f $(TARGET) $(OBJS) + rm -f Dandy.o tcollision.o ppe/collision.o ppe/task_init.o .c.o: $(CC) $(CFLAGS) $(INCLUDES) -c $< .cc.o: - $(CC) $(CFLAGS) $(INCLUDES) -c $< + $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ debug.o:debug.h