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