Mercurial > hg > Members > kono > Cerium
annotate Renderer/Engine/Makefile.macosx @ 606:32a7260fad2f
32bit/64bit ABI (64 bit is not tested yet).
64bit ABI requires 64bit SDL library etc.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 07 Nov 2009 18:05:52 +0900 |
parents | 8148c81d2660 |
children | 0decff4e867b |
rev | line source |
---|---|
283 | 1 include ./Makefile.def |
2 | |
507 | 3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) |
283 | 4 SRCS_EXCLUDE = # ½ü³° |
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
507 | 6 OBJS = $(SRCS:.cc=.o) |
283 | 7 |
8 TASK_DIR = task | |
507 | 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)) |
507 | 12 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
283 | 13 |
14 LIBS += -lFifoManager | |
15 | |
606
32a7260fad2f
32bit/64bit ABI (64 bit is not tested yet).
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
509
diff
changeset
|
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` |
32a7260fad2f
32bit/64bit ABI (64 bit is not tested yet).
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
509
diff
changeset
|
17 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL |
283 | 18 |
507 | 19 .SUFFIXES: .cc .o |
283 | 20 |
507 | 21 .cc.o: |
283 | 22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
23 | |
509
8148c81d2660
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
507
diff
changeset
|
24 all: $(TARGET) |
283 | 25 |
509
8148c81d2660
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
507
diff
changeset
|
26 $(TARGET) : $(OBJS) $(TASK_OBJS) |
8148c81d2660
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
507
diff
changeset
|
27 $(AR) crus $@ $(OBJS) $(TASK_OBJS) |
283 | 28 |
509
8148c81d2660
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
507
diff
changeset
|
29 # SGList.o: create_sg_list |
8148c81d2660
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
507
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 *~ \#* | |
507 | 52 rm -f SGList.h SGList.cc |
283 | 53 |
507 | 54 -include depend.inc |