comparison TaskManager/Test/test_render/Makefile.macosx @ 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 = -g -Wall # -DDEBUG
16 INCLUDE = -I$(CERIUM)/include/TaskManager -I.
17 LIBS = -L$(CERIUM)/TaskManager -lFifoManager
18 15
19 16
20 EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags` 17 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
21 EXTRA_LIBS = `sdl-config --libs` `xml2-config --libs` \ 18 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
22 -lSDL_image -Wl,-framework,OpenGL
23 19
24 .SUFFIXES: .cpp .o 20 .SUFFIXES: .cpp .o
25 21
26 .cpp.o: 22 .cpp.o:
27 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ 23 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
28 24
29 all: $(TARGET) 25 all: $(TARGET)
30 26
31 $(TARGET): $(OBJS) $(TASK_OBJS) 27 $(TARGET): $(OBJS) $(TASK_OBJS)
32 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) $(EXTRA_LIBS) 28 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
33
34 link:
35 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) $(EXTRA_LIBS)
36 29
37 run: $(TARGET) 30 run: $(TARGET)
38 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 31 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
39 32
40 debug: $(TARGET) 33 debug: $(TARGET)