annotate Renderer/Test/Makefile.macosx @ 542:109a33b72b10 draft

continue...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 15:48:40 +0900
parents
children 00428ba0ba03
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 include ./Makefile.def
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 SRCS_EXCLUDE = # ½ü³°
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 OBJS = $(SRCS:.cc=.o)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 TASK_DIR = task
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 LIBS += -lFifoManager
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 .SUFFIXES: .cc .o
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 .cc.o:
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 all: $(TARGET)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 $(TARGET) : $(OBJS) $(TASK_OBJS)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 $(AR) crus $@ $(OBJS) $(TASK_OBJS)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 # SGList.o: create_sg_list
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 # $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 create_sg_list:
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 @if [ ! -f SGList.h ]; then \
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 cd tools/;\
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 ./create_sglist.pl ../xml_file/*.xml;\
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 fi
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 run: $(TARGET)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 debug: $(TARGET)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 sudo ppu-gdb ./$(TARGET)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 depend:
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 $(RM) depend.inc
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 clean:
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 rm -f *~ \#*
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 rm -f SGList.h SGList.cc
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 -include depend.inc