annotate TaskManager/Test/simple_render/Makefile @ 76:5a1a5f4c28fd

*** empty log message ***
author gongo
date Mon, 18 Feb 2008 11:40:11 +0900
parents 811ffebd8deb
children 83b57e03d3ef
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
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
3 SRCS = $(wildcard *.cpp)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
4 OBJS = $(SRCS:.cpp=.o)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
5
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
6 TASK_DIR = task
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
7 TASK_SRCS = $(wildcard $(TASK_DIR)/*.cpp)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
8 TASK_OBJS = $(TASK_SRCS:.cpp=.o)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
9
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
10 CC = g++
76
5a1a5f4c28fd *** empty log message ***
gongo
parents: 73
diff changeset
11 CFLAGS = -O9 -g -Wall# -DDEBUG
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
12 INCLUDE = -I../../../include/TaskManager -I.
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
13
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
14 EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags`\
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
15
76
5a1a5f4c28fd *** empty log message ***
gongo
parents: 73
diff changeset
16 #EXTRA_LIBS = -lCellManager -lspe2 -lpthread
5a1a5f4c28fd *** empty log message ***
gongo
parents: 73
diff changeset
17 EXTRA_LIBS = -lFifoManager
5a1a5f4c28fd *** empty log message ***
gongo
parents: 73
diff changeset
18
73
811ffebd8deb *** empty log message ***
gongo
parents: 71
diff changeset
19 LIBS = `sdl-config --libs` -lSDL_image -lGL \
76
5a1a5f4c28fd *** empty log message ***
gongo
parents: 73
diff changeset
20 `xml2-config --libs` -L../.. $(EXTRA_LIBS)
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
21 .SUFFIXES: .cpp .o
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
22
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
23 .cpp.o:
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
24 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
25
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
26 all: $(TARGET)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
27
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
28 $(TARGET): $(OBJS) $(TASK_OBJS)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
29 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
30
67
7d2874fb0671 *** empty log message ***
gongo
parents: 63
diff changeset
31 link:
7d2874fb0671 *** empty log message ***
gongo
parents: 63
diff changeset
32 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
7d2874fb0671 *** empty log message ***
gongo
parents: 63
diff changeset
33
70
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
34 run: $(TARGET)
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
35 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
36
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
37 debug: $(TARGET)
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
38 sudo ppu-gdb ./$(TARGET)
178459e03f5c *** empty log message ***
gongo
parents: 67
diff changeset
39
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
40 clean:
39
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
41 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
b6858e9fe2b4 *** empty log message ***
gongo
parents: 38
diff changeset
42 rm -f *~ \#*