## Process this file with automake to produce Makefile.in

if BUILD_HOTSMTPD
HOTSMTPD = hotsmtpd
endif

SUBDIRS = $(HOTSMTPD)

sbin_PROGRAMS = hotwayd 

hotwayd_SOURCES = \
	hotwayd.c \
	commands.c \
	commands.h \
	commands_pop3.c \
	commands_pop3.h \
	xmlstuff.c \
	xmlstuff.h \
	cache.c \
	cache.h \
	inet.c \
	version.c \
	hotwayd.h \
	httpmail.h \
	inet.h

man_MANS = hotwayd.1

EXTRA_DIST = $(man_MANS) \
	strlcpy.3 \
	VERSION \
	hotwayd.xinetd \
	hotwayd.spec \
	libghttp-1.0.9-mod/ghttp.c \
	libghttp-1.0.9-mod/http_date.c \
	libghttp-1.0.9-mod/http_hdrs.c \
	libghttp-1.0.9-mod/http_req.c \
	libghttp-1.0.9-mod/http_resp.c \
	libghttp-1.0.9-mod/http_trans.c \
	libghttp-1.0.9-mod/http_uri.c \
	libghttp-1.0.9-mod/http_base64.c \
	libghttp-1.0.9-mod/http_digest.c \
	libghttp-1.0.9-mod/http_lazy.c \
	libghttp-1.0.9-mod/md5c.c \
	strlcpy.c \
	strlcat.c \
	strcasestr.c \
	strndup.c \
	strndup.h \
	strnlen.c \
    libghttp-1.0.9-mod/ghttp.h \
    libghttp-1.0.9-mod/ghttp_constants.h \
	libghttp-1.0.9-mod/http_uri.h \
	libghttp-1.0.9-mod/http_hdrs.h \
	libghttp-1.0.9-mod/http_trans.h \
	libghttp-1.0.9-mod/http_req.h \
	libghttp-1.0.9-mod/http_resp.h \
	libghttp-1.0.9-mod/http_date.h \
	libghttp-1.0.9-mod/http_global.h \
	libghttp-1.0.9-mod/http_base64.h \
	libghttp-1.0.9-mod/md5.h \
	libghttp-1.0.9-mod/http_digest.h \
	libghttp-1.0.9-mod/http_lazy.h



## if you wish to include libghttp-mod without building it as a library:
hotwayd_LDADD = \
	libghttp-1.0.9-mod/ghttp.c \
	libghttp-1.0.9-mod/http_date.c \
	libghttp-1.0.9-mod/http_hdrs.c \
	libghttp-1.0.9-mod/http_req.c \
	libghttp-1.0.9-mod/http_resp.c \
	libghttp-1.0.9-mod/http_trans.c \
	libghttp-1.0.9-mod/http_uri.c \
	libghttp-1.0.9-mod/http_base64.c \
	libghttp-1.0.9-mod/http_digest.c \
	libghttp-1.0.9-mod/http_lazy.c \
	libghttp-1.0.9-mod/md5c.c \
	strlcpy.c \
	strlcat.c 


## if you wish to link to libghttp as a library:
## hotwayd_LDADD = \
## 	strlcpy.c \
## 	strlcat.c

##include_HEADERS = \
##    hotwayd.h \
##    httpmail.h \
##    inet.h

INCLUDES = `xml2-config --cflags`

version.o: version.c
version.c: $(srcdir)/VERSION
	@rm -f $@
	sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@


syntax highlighted by Code2HTML, v. 0.9.1