53
|
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++
|
68
|
11 CFLAGS = -g -Wall# -DDEBUG
|
53
|
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 *~ \#*
|