Mercurial > hg > Game > Cerium
view Renderer/Engine/Makefile.macosx @ 1479:163220e54cc0 draft
remove hard code for TaskLog
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Jul 2012 17:15:15 +0900 |
parents | 3361f2b7c63b |
children | 363b7c401c79 |
line wrap: on
line source
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 Bridge.cc TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) TASK_OBJS = $(TASK_SRCS:.cc=.o) LIBS += -lFifoManager CFLAGS += `sdl-config --cflags` `xml2-config --cflags` `freetype-config --cflags` -Drestrict=__restrict__ LIBS += `sdl-config --libs` `xml2-config --libs` `freetype-config --libs` -lSDL_image -Wl,-framework,OpenGL .SUFFIXES: .cc .o .cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ all: $(TARGET) $(TARGET) : $(OBJS) $(TASK_OBJS) rm -f $@ $(AR) crus $@ $(OBJS) $(TASK_OBJS) run: $(TARGET) sudo ./$(TARGET) -width 576 -height 384 -bpp 32 debug: $(TARGET) sudo ppu-gdb ./$(TARGET) depend: $(RM) depend.inc $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#* *.o -include depend.inc