INCLUDE= -I. -I../include -I/usr/local/include
CXX=g++
RM = rm -f
TARGET = ut
INCLUDE= -I. -I../include -I/usr/local/include
CXXFLAGS = -g
DEFS = -DMOCKPP_ENABLE_DEFAULT_FORMATTER -DMOCKCPP_USING_CPPUNIT
LIBS = -L/usr/local/lib -lcppunit -ldl
OBJS = $(patsubst %.cpp, %.o, $(shell ls Test*.cpp))
OBJS += $(patsubst %.cpp, %.o, $(shell ls ../src/*.cpp))
all: $(TARGET)
clean:
$(RM) $(TARGET) $(OBJS)
$(TARGET) : $(OBJS)
$(CXX) -o $@ $(OBJS) $(LIBS)
%.o : %.cpp
$(CXX) $(CXXFLAGS) $(DEFS) $(INCLUDE) -o $@ -c $<
makefile下载
posted on 2008-07-04 14:11
LOGOS 阅读(544)
评论(0) 编辑 收藏 引用