26
|
1 TARGET = test_nogl
|
39
|
2
|
|
3 SRCS = $(wildcard *.cpp)
|
|
4 OBJS = $(SRCS:.cpp=.o)
|
|
5
|
|
6 TASK_DIR = task
|
|
7 TASK_SRCS = $(wildcard $(TASK_DIR)/*.cpp)
|
|
8 TASK_OBJS = $(TASK_SRCS:.cpp=.o)
|
|
9
|
|
10 CC = g++
|
76
|
11 CFLAGS = -O9 -g -Wall# -DDEBUG
|
39
|
12 INCLUDE = -I../../../include/TaskManager -I.
|
|
13
|
|
14 EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags`\
|
|
15
|
76
|
16 #EXTRA_LIBS = -lCellManager -lspe2 -lpthread
|
|
17 EXTRA_LIBS = -lFifoManager
|
|
18
|
73
|
19 LIBS = `sdl-config --libs` -lSDL_image -lGL \
|
76
|
20 `xml2-config --libs` -L../.. $(EXTRA_LIBS)
|
39
|
21 .SUFFIXES: .cpp .o
|
26
|
22
|
|
23 .cpp.o:
|
39
|
24 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
|
|
25
|
|
26 all: $(TARGET)
|
|
27
|
|
28 $(TARGET): $(OBJS) $(TASK_OBJS)
|
|
29 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
|
26
|
30
|
67
|
31 link:
|
|
32 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
|
|
33
|
70
|
34 run: $(TARGET)
|
|
35 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
|
|
36
|
|
37 debug: $(TARGET)
|
|
38 sudo ppu-gdb ./$(TARGET)
|
|
39
|
26
|
40 clean:
|
39
|
41 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
|
|
42 rm -f *~ \#*
|