Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Makefile.macosx @ 591:65e52fd2c2e2 draft
send linda not work...
author | kazz@kazzone.st.ie.u-ryukyu.ac.jp |
---|---|
date | Sun, 01 Nov 2009 06:14:52 +0900 |
parents | 1a31b8820a4d |
children | 242a9db53612 |
rev | line source |
---|---|
283 | 1 include ./Makefile.def |
2 | |
539 | 3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) |
283 | 4 SRCS_EXCLUDE = # ½ü³° |
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
539 | 6 OBJS = $(SRCS:.cc=.o) |
283 | 7 |
8 TASK_DIR = task | |
539 | 9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) |
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc | |
283 | 11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
539 | 12 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
283 | 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 | |
539 | 19 .SUFFIXES: .cc .o |
283 | 20 |
539 | 21 .cc.o: |
283 | 22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
23 | |
541
1a31b8820a4d
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
24 all: $(TARGET) |
283 | 25 |
541
1a31b8820a4d
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
26 $(TARGET) : $(OBJS) $(TASK_OBJS) |
1a31b8820a4d
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
27 $(AR) crus $@ $(OBJS) $(TASK_OBJS) |
283 | 28 |
541
1a31b8820a4d
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
29 # SGList.o: create_sg_list |
1a31b8820a4d
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
30 # $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@ |
283 | 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 *~ \#* | |
539 | 52 rm -f SGList.h SGList.cc |
283 | 53 |
539 | 54 -include depend.inc |