Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/Makefile.linux @ 532:cd2985cd3461
add .hgignore
modify test_render/Makefile.linux
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 21 Oct 2009 11:55:16 +0900 |
parents | 7578005fb76b |
children | 6c56957ef335 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/Makefile.linux Wed Oct 21 01:51:00 2009 +0900 +++ b/TaskManager/Test/test_render/Makefile.linux Wed Oct 21 11:55:16 2009 +0900 @@ -1,33 +1,35 @@ include ./Makefile.def -SRCS_TMP = $(wildcard *.cpp) -SRCS_EXCLUDE = # ½ü³° +SRCS_TMP = $(wildcard *.cc) +SRCS_EXCLUDE = # 除外 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) -OBJS = $(SRCS:.cpp=.o) +OBJS = $(SRCS:.cc=.o) TASK_DIR = task -TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp) -TASK_SRCS_EXCLUDE = span_pack_draw.cpp +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:.cpp=.o) +TASK_OBJS = $(TASK_SRCS:.cc=.o) LIBS += -lFifoManager CFLAGS += `sdl-config --cflags` `xml2-config --cflags` LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` -.SUFFIXES: .cpp .o +.SUFFIXES: .cpp .o .cc .cpp.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ - -all: $(TARGET) +.cc.o: + $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ -$(TARGET): SGList.o $(OBJS) $(TASK_OBJS) - $(CC) -o $@ $(OBJS) $(TASK_OBJS) SGList.o $(LIBS) +all: SGList.o $(TARGET) + +$(TARGET): $(OBJS) $(TASK_OBJS) + $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) SGList.o: create_sg_list - $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cpp -o $@ + $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@ create_sg_list: @if [ ! -f SGList.h ]; then \ @@ -49,4 +51,4 @@ clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#* - rm -f SGList.h SGList.cpp \ No newline at end of file + rm -f SGList.h SGList.cc