ifndef OSNAME OSNAME = $(shell uname)-$(shell uname -p) endif AR = ar RANLIB = ranlib top_srcdir = $(HALLD_HOME)/src OBJDIR = .obj/$(BMS_OSNAME) LIBDIR = .lib/$(BMS_OSNAME) INCLUDES = -I$(top_srcdir)/include EXTRA_DIST = debug.h md5_t.pl md5_t.h libxstream_a_SOURCES = debug.cpp common.cpp xdr.cpp base64.cpp \ digest.cpp tee.cpp md5.cpp bz.cpp dater.cpp fd.cpp \ posix.cpp z_digest.cpp libxstream_a_OBJECTS_0 = debug.o common.o xdr.o base64.o \ digest.o tee.o md5.o bz.o dater.o fd.o \ posix.o z_digest.o libxstream_a_OBJECTS = $(addprefix $(OBJDIR)/,$(libxstream_a_OBJECTS_0)) lib_LIBRARIES = libxstream.a all: mkdirs $(LIBDIR)/$(lib_LIBRARIES) .SUFFIXES: .SUFFIXES: .cpp .o .obj mkdirs: mkdir -p $(OBJDIR) $(LIBDIR) clean-libLIBRARIES: -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES) $(LIBDIR)/libxstream.a: $(libxstream_a_OBJECTS) $(libxstream_a_DEPENDENCIES) -rm -f $@ $(AR) cru $@ $(libxstream_a_OBJECTS) $(libxstream_a_LIBADD) $(RANLIB) $@ install: all mkdir -p $(HALLD_MY)/lib/$(BMS_OSNAME) cp $(LIBDIR)/$(lib_LIBRARIES) $(HALLD_MY)/lib/$(BMS_OSNAME) cp -r ../include ./tmpinc rm -rf `find ./tmpinc -name ".svn"` mkdir -p $(HALLD_MY)/include cp -r tmpinc/* $(HALLD_MY)/include rm -rf tmpinc mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c pristine: clean depclean: @echo "Nothing to do for make depclean in xstream" clean: rm -rf $(OBJDIR) $(LIBDIR) $(OBJDIR)/%.o: %.cpp g++ $(INCLUDES) -c -o $@ $^