annotate Renderer/Engine/Makefile.linux @ 841:8d702fc5d77a draft

dynamic loading demo bug fix
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Wed, 02 Jun 2010 01:39:15 +0900
parents 1e150f1de013
children a0ea7d9b6faf
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
629
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
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))
629
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
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
629
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
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))
629
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs`
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18
629
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
19 .SUFFIXES: .cc .o
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20
629
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
24 all: $(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
25
629
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
26 $(TARGET): $(OBJS) $(TASK_OBJS)
578a2db4a739 modify Makefile for linux
kent <kent@cr.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 run: $(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
31 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
32
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
33 debug: $(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
34 sudo ppu-gdb ./$(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
35
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
36 depend:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
37 $(RM) depend.inc
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
38 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
39
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
40 clean:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
41 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
42 rm -f *~ \#*
629
578a2db4a739 modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
43 rm -f SGList.h SGList.cpp