Mercurial > hg > Game > Cerium
diff TaskManager/Test/simple_pack/Makefile @ 53:0c8ae614d421
Initial revision
author | chiaki |
---|---|
date | Fri, 15 Feb 2008 20:58:50 +0900 |
parents | |
children | 35a6cf176c38 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/Test/simple_pack/Makefile Fri Feb 15 20:58:50 2008 +0900 @@ -0,0 +1,32 @@ +TARGET = test_nogl + +SRCS = $(wildcard *.cpp) +OBJS = $(SRCS:.cpp=.o) + +TASK_DIR = task +TASK_SRCS = $(wildcard $(TASK_DIR)/*.cpp) +TASK_OBJS = $(TASK_SRCS:.cpp=.o) + +CC = g++ +CFLAGS = -g -Wall +INCLUDE = -I../../../include/TaskManager -I. + +EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags`\ + +LIBS = `sdl-config --libs` -lSDL_image -Wl,-framework,OpenGL \ + `xml2-config --libs`\ + -L../../ -lmanager + +.SUFFIXES: .cpp .o + +.cpp.o: + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ + +all: $(TARGET) + +$(TARGET): $(OBJS) $(TASK_OBJS) + $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) + +clean: + rm -f $(TARGET) $(OBJS) $(TASK_OBJS) + rm -f *~ \#*