26
|
1 TARGET = test_nogl
|
39
|
2
|
109
|
3 SRCS_TMP = $(wildcard *.cpp)
|
|
4 SRCS_EXCLUDE = fb.cpp # ½ü³°
|
|
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
|
39
|
6 OBJS = $(SRCS:.cpp=.o)
|
|
7
|
|
8 TASK_DIR = task
|
109
|
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp)
|
|
10 #TASK_SRCS_EXCLUDE = span_pack_draw.cpp
|
|
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
|
39
|
12 TASK_OBJS = $(TASK_SRCS:.cpp=.o)
|
|
13
|
|
14 CC = g++
|
109
|
15 CFLAGS = -g -Wall# -DDEBUG
|
39
|
16 INCLUDE = -I../../../include/TaskManager -I.
|
|
17
|
99
|
18 EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags` -I/usr/local/include/SDL
|
39
|
19
|
109
|
20 #EXTRA_LIBS = -lCellManager -lspe2 -lpthread
|
|
21 EXTRA_LIBS = -lFifoManager
|
76
|
22
|
109
|
23 #LIBS = `sdl-config --libs` /usr/local/lib/libSDL_image.a -lGL \
|
|
24 # `xml2-config --libs` -L../.. $(EXTRA_LIBS)
|
|
25 LIBS = `sdl-config --libs` -lSDL_image -Wl,-framework,OpenGL \
|
|
26 `xml2-config --libs` -L../.. $(EXTRA_LIBS)
|
79
|
27
|
39
|
28 .SUFFIXES: .cpp .o
|
26
|
29
|
|
30 .cpp.o:
|
39
|
31 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
|
|
32
|
|
33 all: $(TARGET)
|
|
34
|
|
35 $(TARGET): $(OBJS) $(TASK_OBJS)
|
|
36 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
|
26
|
37
|
67
|
38 link:
|
|
39 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
|
|
40
|
70
|
41 run: $(TARGET)
|
|
42 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
|
|
43
|
|
44 debug: $(TARGET)
|
|
45 sudo ppu-gdb ./$(TARGET)
|
|
46
|
26
|
47 clean:
|
39
|
48 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
|
|
49 rm -f *~ \#*
|