## Makefile.am -- Process this file with automake to produce Makefile.in
# $Id: Makefile.am,v 1.32 2006/10/06 02:51:43 ca Exp $

MAINTAINERCLEANFILES	= Makefile.in

INCLUDES		= -I$(top_builddir) -I$(top_builddir)/include -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir) -I$(top_srcdir)

LDADD = \
	../libmta/libsmtls.a \
	../libconf/libconf.a \
	../libmta/libmta.a \
	../libmta/libsmmisc.a \
	../libmta/librcbst.a \
	../libmta/libcstr.a \
	../statethreads/libst.a ../libcdb/libcdb.a \
	../libmta/libstthreads.a ../librepl/librepl.a

noinst_LIBRARIES	= libsmtpc.a
libsmtpc_a_CFLAGS=-DMTA_MAJOR=@MTA_MAJOR@ -DMTA_MINOR=@MTA_MINOR@ -DMTA_TYPE=@MTA_TYPE@ -DMTA_TYPE_N=@MTA_TYPE_N@ -DMTA_TYPEVERSION=@MTA_TYPEVERSION@ -DMTA_LEVEL=@MTA_LEVEL@
libsmtpc_a_SOURCES	= smclt.c smtpch.c sc.c c2q.c scconf.c scprtcnf.c
LIBSMTPC		= libsmtpc.a

libexec_PROGRAMS = smtpc

IS		= include/sm
ISM		= $(top_srcdir)/include/sm
noinst_HEADERS 	= smtpc.h smtpch.h c2q.h \
		$(ISM)/sccnf.h \
		$(ISM)/sccnfdef.h \
		$(ISM)/scdef.h \
		log.h

smtpc_SOURCES	= smtpc.c
smtpc_LDADD	= $(LIBSMTPC) $(LDADD) $(MTA_TLS_LIB)
smtpc_CFLAGS=-DMTA_MAJOR=@MTA_MAJOR@ -DMTA_MINOR=@MTA_MINOR@ -DMTA_TYPE=@MTA_TYPE@ -DMTA_TYPE_N=@MTA_TYPE_N@ -DMTA_TYPEVERSION=@MTA_TYPEVERSION@ -DMTA_LEVEL=@MTA_LEVEL@

# compile and run
TESTP = 
# compile only, do not run
TESTC = t-msgmod-0
# run only
TESTSH = t-msgmod-0.sh \
	t-msgmod-1.sh \
	t-msgmod-2.sh \
	t-msgmod-3.sh \
	t-msgmod-4.sh
# do not run at all...
TESTDATA = 

# list programs to compile here
check_PROGRAMS 	= $(TESTP) $(TESTC)
TESTS		= $(TESTP) $(TESTSH)
EXTRA_DIST 	= $(TESTSH) $(TESTDATA)

LDCHK		= ../libcheck/libcheck.a

t_msgmod_0_SOURCES	= t-msgmod-0.c
t_msgmod_0_LDADD	= $(LDADD) $(LDCHK)


syntax highlighted by Code2HTML, v. 0.9.1