Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/simple_render/Makefile @ 39:b6858e9fe2b4
*** empty log message ***
author | gongo |
---|---|
date | Wed, 13 Feb 2008 15:10:47 +0900 |
parents | babf9a330418 |
children | 0024a5259363 |
line wrap: on
line diff
--- a/TaskManager/Test/simple_render/Makefile Wed Feb 13 10:29:00 2008 +0900 +++ b/TaskManager/Test/simple_render/Makefile Wed Feb 13 15:10:47 2008 +0900 @@ -1,21 +1,36 @@ -CC = g++ -CFLAGS = -O9 -g -Wall `sdl-config --cflags` `xml2-config --cflags`\ - -I../../../include/TaskManager -I. -LIBS = `sdl-config --libs` -lSDL_image -Wl,-framework,OpenGL `xml2-config --libs`\ - -L../../ -lmanager 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 = -O9 -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 + #OBJS = scene.o demonstration.o sys.o base64_de.o pad.o texture.o xml.o polygon.o viewer.o main.o -OBJS = task/task_init.o task/create_pp.o task/update_sgp.o task/create_sgp.o triangle.o vertex.o span.o sys.o base64_de.o pad.o texture.o xml.o polygon.o viewer.o main.o +#OBJS = task/task_init.o task/create_pp.o task/update_sgp.o task/create_sgp.o triangle.o vertex.o span.o sys.o base64_de.o pad.o texture.o xml.o polygon.o viewer.o main.o -all:$(TARGET) - -$(TARGET): $(OBJS) - $(CC) -o $@ $(OBJS) $(LIBS) +.SUFFIXES: .cpp .o .cpp.o: - $(CC) $(CFLAGS) -o $@ -c $< + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ + +all: $(TARGET) + +$(TARGET): $(OBJS) $(TASK_OBJS) + $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) clean: - rm -f $(TARGET) $(OBJS) - rm -f *~ + rm -f $(TARGET) $(OBJS) $(TASK_OBJS) + rm -f *~ \#*