comparison TaskManager/Test/simple_pack/Makefile @ 53:0c8ae614d421

Initial revision
author chiaki
date Fri, 15 Feb 2008 20:58:50 +0900
parents
children 35a6cf176c38
comparison
equal deleted inserted replaced
52:e198c3e01cec 53:0c8ae614d421
1 TARGET = test_nogl
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++
11 CFLAGS = -g -Wall
12 INCLUDE = -I../../../include/TaskManager -I.
13
14 EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags`\
15
16 LIBS = `sdl-config --libs` -lSDL_image -Wl,-framework,OpenGL \
17 `xml2-config --libs`\
18 -L../../ -lmanager
19
20 .SUFFIXES: .cpp .o
21
22 .cpp.o:
23 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
24
25 all: $(TARGET)
26
27 $(TARGET): $(OBJS) $(TASK_OBJS)
28 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
29
30 clean:
31 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
32 rm -f *~ \#*