Mercurial > hg > Members > kono > Cerium
comparison Renderer/Test/Makefile.macosx @ 510:97e1b0346597
continue...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 15:48:40 +0900 |
parents | |
children | b05bae017029 |
comparison
equal
deleted
inserted
replaced
509:8148c81d2660 | 510:97e1b0346597 |
---|---|
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: $(TARGET) | |
25 | |
26 $(TARGET) : $(OBJS) $(TASK_OBJS) | |
27 $(AR) crus $@ $(OBJS) $(TASK_OBJS) | |
28 | |
29 # SGList.o: create_sg_list | |
30 # $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@ | |
31 | |
32 create_sg_list: | |
33 @if [ ! -f SGList.h ]; then \ | |
34 cd tools/;\ | |
35 ./create_sglist.pl ../xml_file/*.xml;\ | |
36 fi | |
37 | |
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.cc | |
53 | |
54 -include depend.inc |