Mercurial > hg > Members > kono > Cerium
comparison Renderer/test_render/Makefile.linux @ 283:55ea4465b1a2
fix test_render
author | e065746@localhost.localdomain |
---|---|
date | Fri, 05 Jun 2009 16:49:12 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
282:ef061be0baff | 283:55ea4465b1a2 |
---|---|
1 include ./Makefile.def | |
2 | |
3 SRCS_TMP = $(wildcard *.cpp) | |
4 SRCS_EXCLUDE = # ½ü³° | |
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
6 OBJS = $(SRCS:.cpp=.o) | |
7 | |
8 TASK_DIR = task | |
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp) | |
10 TASK_SRCS_EXCLUDE = span_pack_draw.cpp | |
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
12 TASK_OBJS = $(TASK_SRCS:.cpp=.o) | |
13 | |
14 LIBS += -lFifoManager | |
15 | |
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` | |
17 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` | |
18 | |
19 .SUFFIXES: .cpp .o | |
20 | |
21 .cpp.o: | |
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
23 | |
24 all: $(TARGET) | |
25 | |
26 $(TARGET): SGList.o $(OBJS) $(TASK_OBJS) | |
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) SGList.o $(LIBS) | |
28 | |
29 SGList.o: create_sg_list | |
30 $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cpp -o $@ | |
31 | |
32 create_sg_list: | |
33 @if [ ! -f SGList.h ]; then \ | |
34 cd tools/;\ | |
35 ./create_sglist.pl ../xml_file/*.xml;\ | |
36 cd ../;\ | |
37 fi | |
38 | |
39 run: $(TARGET) | |
40 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
41 | |
42 debug: $(TARGET) | |
43 sudo ppu-gdb ./$(TARGET) | |
44 | |
45 depend: | |
46 $(RM) depend.inc | |
47 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
48 | |
49 clean: | |
50 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
51 rm -f *~ \#* | |
52 rm -f SGList.h SGList.cpp |