Mercurial > hg > Members > koba > t_dandy
view Makefile.mac @ 70:cee55c8365e9 default tip
fix
author | Kazuma |
---|---|
date | Thu, 19 May 2016 18:52:26 +0900 |
parents | e01948ce859a |
children |
line wrap: on
line source
# Makefile to build the SDL tests include ./Makefile.def TARGET = demo dandy t_dandy 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 TASK_DIR = ppe TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) TASK_SRCS_EXCLUDE = TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) TASK_OBJS = $(TASK_SRCS:.cc=.o) CFLAGS += `sdl-config --cflags` `xml2-config --cflags ` `freetype-config --cflags` -Drestrict=__restrict -Wno-int-to-pointer-cast $(INCLUDE) LIBS += `sdl-config --libs` -framework OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` `freetype-config --libs` LIBS += -lCerium -lFifoManager all: $(TARGET) test: $(TARGET) ./demo -test demo: $(OBJS) main.o collision.o Character_state.o sgoex.o $(CC) $(OPT) $(ABI) -o $@ $? $(LIBS) dandy: $(OBJS) Dandy.o collision.o Character_state.o $(CC) $(OPT) $(ABI) -o $@ $? $(LIBS) t_dandy: $(OBJS) TaskDandy.o collision_task.o state_task.o $(TASK_OBJS) $(CC) $(OPT) $(ABI) -o $@ $? $(LIBS) clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) Dandy.o TaskDandy.o main.o Character_state.o collision_task.o state_task.o sgoex.o .c.o: $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ .cc.o: $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ debug.o:debug.h