SRCS = FdInStream.cxx FdOutStream.cxx InStream.cxx NullOutStream.cxx \
       ZlibInStream.cxx ZlibOutStream.cxx

OBJS = $(SRCS:.cxx=.o)

DIR_CPPFLAGS = -I$(top_srcdir)

library = librdr.a

all:: $(library)

$(library): $(OBJS)
	rm -f $(library)
	$(AR) $(library) $(OBJS)
	$(RANLIB) $(library)

#
clean::
	rm -f $(library) *.o

distclean:: clean
	rm -f Makefile config.log config.status config.cache

SHELL = @SHELL@
top_srcdir = @top_srcdir@
@SET_MAKE@
CC = @CC@
CFLAGS = @CFLAGS@ $(DIR_CFLAGS) -g
CCLD = $(CC)
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@ -g
CXXLD = $(CXX)
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
ALL_CPPFLAGS = $(CPPFLAGS) $(DEFS) $(DIR_CPPFLAGS)
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
RANLIB = @RANLIB@
AR = ar cq

.SUFFIXES:
.SUFFIXES: .cxx .c .o

.c.o:
	$(CC) $(ALL_CPPFLAGS) $(CFLAGS) -c $<

.cxx.o:
	$(CXX) $(ALL_CPPFLAGS) $(CXXFLAGS) -c $<


syntax highlighted by Code2HTML, v. 0.9.1