annotate Renderer/Engine/Makefile.macosx @ 898:302ebfc75a79 draft

merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 16 Jul 2010 19:00:49 +0900
parents 1e150f1de013
children da1cec21f0c9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 include ./Makefile.def
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc)
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 SRCS_EXCLUDE = # ½ü³°
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
6 OBJS = $(SRCS:.cc=.o)
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 TASK_DIR = task
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 LIBS += -lFifoManager
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15
606
242a9db53612 32bit/64bit ABI (64 bit is not tested yet).
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 541
diff changeset
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
242a9db53612 32bit/64bit ABI (64 bit is not tested yet).
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 541
diff changeset
17 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
19 .SUFFIXES: .cc .o
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
21 .cc.o:
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23
541
1a31b8820a4d Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
24 all: $(TARGET)
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
28
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
29
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
30
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
31 run: $(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
32 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
33
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
34 debug: $(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
35 sudo ppu-gdb ./$(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
36
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
37 depend:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
38 $(RM) depend.inc
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
39 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
40
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
41 clean:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
42 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
619
278db3ca751d RenewTask removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 606
diff changeset
43 rm -f *~ \#* *.o
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
44
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
45 -include depend.inc