annotate old/simple_render/Makefile @ 1012:0e6c59377ef4 draft

fix HelloWorld
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Mon, 01 Nov 2010 18:27:19 +0900
parents 3bc98f6d31ff
children a0ea7d9b6faf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
1 TARGET = test_nogl
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
2
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
3 SRCS_TMP = $(wildcard *.cpp)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
4 SRCS_EXCLUDE = fb.cpp # ½ü³°
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
6 OBJS = $(SRCS:.cpp=.o)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
7
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
8 TASK_DIR = task
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
10 #TASK_SRCS_EXCLUDE = span_pack_draw.cpp
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cpp=.o)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
13
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
14 CC = g++
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
15 CFLAGS = -g -Wall# -DDEBUG
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
16 INCLUDE = -I../../../include/TaskManager -I.
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
17
99
57bac9e07662 rotate cube only polygon
gongo
parents: 94
diff changeset
18 EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags` -I/usr/local/include/SDL
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
19
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
20 #EXTRA_LIBS = -lCellManager -lspe2 -lpthread
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
21 EXTRA_LIBS = -lFifoManager
76
5a1a5f4c28fd *** empty log message ***
gongo
parents: 73
diff changeset
22
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
23 #LIBS = `sdl-config --libs` /usr/local/lib/libSDL_image.a -lGL \
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
24 # `xml2-config --libs` -L../.. $(EXTRA_LIBS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
25 LIBS = `sdl-config --libs` -lSDL_image -Wl,-framework,OpenGL \
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
26 `xml2-config --libs` -L../.. $(EXTRA_LIBS)
79
83b57e03d3ef *** empty log message ***
gongo
parents: 76
diff changeset
27
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
28 .SUFFIXES: .cpp .o
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
29
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
30 .cpp.o:
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
31 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
32
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
33 all: $(TARGET)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
34
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
35 $(TARGET): $(OBJS) $(TASK_OBJS)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
36 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
37
67
7d2874fb0671 *** empty log message ***
gongo
parents: 63
diff changeset
38 link:
7d2874fb0671 *** empty log message ***
gongo
parents: 63
diff changeset
39 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
7d2874fb0671 *** empty log message ***
gongo
parents: 63
diff changeset
40
70
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
41 run: $(TARGET)
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
42 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
43
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
44 debug: $(TARGET)
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
45 sudo ppu-gdb ./$(TARGET)
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
46
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
47 clean:
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
48 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
49 rm -f *~ \#*