Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Test/test_render/Makefile.linux @ 118:e2b1c795525e
fix Makefile
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 13 Nov 2008 11:08:06 +0900 |
parents | 5c194c71eca8 |
children | d61fded0729e |
comparison
equal
deleted
inserted
replaced
117:b7eceea91c76 | 118:e2b1c795525e |
---|---|
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp) | 9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp) |
10 TASK_SRCS_EXCLUDE = span_pack_draw.cpp | 10 TASK_SRCS_EXCLUDE = span_pack_draw.cpp |
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | 11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
12 TASK_OBJS = $(TASK_SRCS:.cpp=.o) | 12 TASK_OBJS = $(TASK_SRCS:.cpp=.o) |
13 | 13 |
14 CC = g++ | 14 LIBS += -lFifoManager |
15 CFLAGS = -O0 -g -Wall# -DDEBUG | |
16 INCLUDE = -I$(CERIUM)/include/TaskManager -I. | |
17 LIBS = -L$(CERIUM)/TaskManager -lFifoManager | |
18 | 15 |
19 EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags` | 16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` |
20 EXTRA_LIBS = `sdl-config --libs` -lSDL_image -lGL \ | 17 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` |
21 `xml2-config --libs` | |
22 | 18 |
23 .SUFFIXES: .cpp .o | 19 .SUFFIXES: .cpp .o |
24 | 20 |
25 .cpp.o: | 21 .cpp.o: |
26 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | 22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
27 | 23 |
28 all: $(TARGET) | 24 all: $(TARGET) |
29 | 25 |
30 $(TARGET): $(OBJS) $(TASK_OBJS) | 26 $(TARGET): $(OBJS) $(TASK_OBJS) |
31 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) $(EXTRA_LIBS) | 27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) |
32 | |
33 link: | |
34 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) $(EXTRA_LIBS) | |
35 | 28 |
36 run: $(TARGET) | 29 run: $(TARGET) |
37 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | 30 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 |
38 | 31 |
39 debug: $(TARGET) | 32 debug: $(TARGET) |