top_srcdir=		@top_srcdir@
srcdir=			@srcdir@
VPATH=			@srcdir@
INSTALL=		@INSTALL@
INSTALL_PROGRAM=	@INSTALL_PROGRAM@

top_builddir= ..
include $(top_builddir)/Makefile.config

OBJS=	Configuration.o Connection.o Database.o \
		Dictionary.o DB2_db.o \
		IntObject.o List.o Object.o \
		ParsedString.o Queue.o QuotedStringList.o \
		Stack.o String.o \
		StringList.o StringMatch.o String_fmt.o \
		URL.o URLTrans.o cgi.o \
		good_strtok.o io.o strcasecmp.o \
		HtCodec.o HtWordCodec.o \
		HtURLCodec.o HtWordType.o \
		HtRegex.o HtRegexReplace.o HtRegexReplaceList.o \
		HtURLRewriter.o

# Used if we should build various replacements to system-library code
# e.g. regex.o
LIBOBJS=	@LIBOBJS@

TARGET=		libht.a

all:		$(TARGET)

$(TARGET):	$(OBJS) $(LIBOBJS)
	$(AR) rcv $(TARGET) $?
	$(RANLIB) $(TARGET)

install:	$(TARGET)
	@echo "Nothing to install"

clean:
	rm -f $(OBJS) $(LIBOBJS) $(TARGET) *~ *.bak *% core a.out *.orig

mostlyclean:
	rm -f *~ *.bak *% core a.out *.orig

distclean:	clean
	rm -f Makefile *.proj

depend:
	$(MAKEDEPEND) @CPPFLAGS@ $(CXXFLAGS) $(INCS) -- $(OBJS)

