view TaskManager/Test/simple_render/Makefile @ 40:0024a5259363

*** empty log message ***
author gongo
date Wed, 13 Feb 2008 17:17:48 +0900
parents b6858e9fe2b4
children aa11038dbdc1
line wrap: on
line source

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

.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 *~ \#*