Mercurial > hg > Game > Cerium
annotate TaskManager/Test/test_render/Makefile.macosx @ 525:27eea39f2ebb draft
merge
author | aaa |
---|---|
date | Wed, 21 Oct 2009 21:05:34 +0900 |
parents | 638bd307cde1 8d86242337ba |
children | ccbca48b6dfe |
rev | line source |
---|---|
109 | 1 include ./Makefile.def |
2 | |
405
2c592936bbdf
make Application sub directory
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
404
diff
changeset
|
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) |
109 | 4 SRCS_EXCLUDE = # ½ü³° |
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
404 | 6 OBJS = $(SRCS:.cc=.o) |
109 | 7 |
8 TASK_DIR = task | |
404 | 9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) |
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc | |
109 | 11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
404 | 12 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
109 | 13 |
118 | 14 LIBS += -lFifoManager |
524 | 15 LIBS += -llindaapi |
109 | 16 |
118 | 17 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` |
18 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL | |
109 | 19 |
404 | 20 .SUFFIXES: .cc .o |
109 | 21 |
404 | 22 .cc.o: |
118 | 23 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
109 | 24 |
520 | 25 all: |
109 | 26 |
321 | 27 $(TARGET): $(OBJS) $(TASK_OBJS) |
28 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
235 | 29 |
30 | |
31 SGList.o: create_sg_list | |
404 | 32 $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@ |
235 | 33 |
34 create_sg_list: | |
35 @if [ ! -f SGList.h ]; then \ | |
36 cd tools/;\ | |
37 ./create_sglist.pl ../xml_file/*.xml;\ | |
38 fi | |
39 | |
109 | 40 |
41 run: $(TARGET) | |
42 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
43 | |
44 debug: $(TARGET) | |
45 sudo ppu-gdb ./$(TARGET) | |
46 | |
221 | 47 depend: |
48 $(RM) depend.inc | |
49 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
50 | |
109 | 51 clean: |
52 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
221 | 53 rm -f *~ \#* |
404 | 54 rm -f SGList.h SGList.cc |
221 | 55 |
321 | 56 -include depend.inc |