comparison Renderer/Test/Makefile @ 542:109a33b72b10 draft

continue...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 15:48:40 +0900
parents
children 0c53fa91602f
comparison
equal deleted inserted replaced
541:1a31b8820a4d 542:109a33b72b10
1 include ./Makefile.def
2
3
4 TASK_DIR = task
5 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
6 TASK_SRCS_EXCLUDE =
7 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
8 TASK_OBJS = $(TASK_SRCS:.cc=.o)
9
10 LIBS += -lFifoManager -lCerium
11
12 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
13 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
14
15 .SUFFIXES: .cc .o
16
17 .cc.o:
18 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
19
20 all: ball_bound
21
22 ball_bound : ball_bound.o
23 $(CC) -o $@ $< $(LIBS)
24
25 # SGList.o: create_sg_list
26 # $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@
27
28 create_sg_list:
29 @if [ ! -f SGList.h ]; then \
30 cd tools/;\
31 ./create_sglist.pl ../xml_file/*.xml;\
32 fi
33
34
35 run: $(TARGET)
36 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
37
38 debug: $(TARGET)
39 sudo ppu-gdb ./$(TARGET)
40
41 depend:
42 $(RM) depend.inc
43 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
44
45 clean:
46 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
47 rm -f *~ \#*
48 rm -f SGList.h SGList.cc
49
50 -include depend.inc