Mercurial > hg > Members > kono > Cerium
changeset 630:71863d91959b
modify Makefile for linux
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Nov 2009 12:03:28 +0900 |
parents | 306c9a7717c3 |
children | 855f7c222669 |
files | Renderer/Engine/Makefile.linux |
diffstat | 1 files changed, 12 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/Makefile.linux Tue Nov 17 01:35:12 2009 +0900 +++ b/Renderer/Engine/Makefile.linux Wed Nov 18 12:03:28 2009 +0900 @@ -1,39 +1,38 @@ include ./Makefile.def -SRCS_TMP = $(wildcard *.cpp) +SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.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: .cc .o -.cpp.o: +.cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ all: $(TARGET) -$(TARGET): SGList.o $(OBJS) $(TASK_OBJS) - $(CC) -o $@ $(OBJS) $(TASK_OBJS) SGList.o $(LIBS) +$(TARGET): $(OBJS) $(TASK_OBJS) + $(AR) crus $@ $(OBJS) $(TASK_OBJS) -SGList.o: create_sg_list - $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cpp -o $@ +#SGList.o: create_sg_list + #$(CC) $(CFLAGS) $(INCLUDE) -c SGList.cpp -o $@ create_sg_list: @if [ ! -f SGList.h ]; then \ cd tools/;\ ./create_sglist.pl ../xml_file/*.xml;\ - cd ../;\ fi run: $(TARGET) @@ -49,4 +48,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.cpp