#
#  Stefan's C++ Utility Lib -- Makefile for Unix Make
#

CXX = g++-3.3
CXXFLAGS = -I. -O2 -g
OBJECTS = smartptr.o assert.o string.o object.o sstring.o sstringio.o \
	format.o sigslot.o cstring.o substr.o holder.o

cpluslib.a: $(OBJECTS)
	rm -f cpluslib.a
	ar cr cpluslib.a $(OBJECTS)

clean:
	rm -f $(OBJECTS)

distclean: clean
	rm -f cpluslib.a *~ cpluslib/*~ cpluslib/config.h

$(OBJECTS): cpluslib/config.h

# This is intended to be "cat": we want to update the mtime.
cpluslib/config.h: cpluslib/config.in
	cat cpluslib/config.in >cpluslib/config.h

# I don't know why, but g++ compiles quite a number of EH crap into
# that module otherwise
cstring.o: CXXFLAGS += -fno-exceptions

