annotate Renderer/Engine/Makefile.linux @ 639:70c5c2d2eb24

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 19 Nov 2009 18:45:24 +0900
parents 9df0112f7ccf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 include ./Makefile.def
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2
630
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc)
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 SRCS_EXCLUDE = # ½ü³°
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
630
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
6 OBJS = $(SRCS:.cc=.o)
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 TASK_DIR = task
630
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
630
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 LIBS += -lFifoManager
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs`
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18
630
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
19 .SUFFIXES: .cc .o
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20
630
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
21 .cc.o:
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
24 all: $(TARGET)
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
25
630
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
26 $(TARGET): $(OBJS) $(TASK_OBJS)
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
27 $(AR) crus $@ $(OBJS) $(TASK_OBJS)
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
28
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
29
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
30 run: $(TARGET)
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
31 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
32
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
33 debug: $(TARGET)
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
34 sudo ppu-gdb ./$(TARGET)
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
35
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
36 depend:
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
37 $(RM) depend.inc
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
38 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
39
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
40 clean:
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
41 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
42 rm -f *~ \#*
630
71863d91959b modify Makefile for linux
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
43 rm -f SGList.h SGList.cpp