## Makefile.am -- Process this file with automake to produce Makefile.in # $Id: Makefile.am,v 1.30 2007/02/11 00:14:39 ca Exp $ MAINTAINERCLEANFILES = Makefile.in INCLUDES = -I$(top_builddir) -I$(top_builddir)/include -I$(top_srcdir) -I$(top_srcdir)/include LDADD = ../libevthr/libevthr.a IS = include/sm ISM = $(top_srcdir)/include/sm pkginclude_HEADERS= $(ISM)/mfapi.h \ $(ISM)/pmfapi.h \ $(ISM)/pmfdef.h noinst_HEADERS = pmilter.h \ $(ISM)/pmilter.h \ util.h \ t-pmilter.h pkglib_LIBRARIES = libpmilter.a \ libpmutil.a noinst_LIBRARIES = libtpmilter.a libpmilter_a_SOURCES = \ pmilter_init.c \ pmilter_start.c \ pmilter_stop.c \ pmilter_ss.c \ pmilter_se.c \ pmilter_smtps.c \ smtps2pmilter.c \ pmilter_engine.c \ pmilter_api.c \ pmilter_applctx.c \ pmilter_setreply.c \ pmilter_setmaclist.c \ pmilter_getmac.c \ pmilter_freemacros.c \ pmilter_rdmacros.c \ pmilter_getstatus.c \ pmilter_getrcpt_idx.c \ pmilter_hdrmod.c \ pmilter_replacemsg.c \ pmilter_rcptmod.c \ pmilter_mailmod.c \ pmilter_setreplies.c libpmutil_a_SOURCES = args2argv.c \ pmilter_hdr.c # library for some test programs libtpmilter_a_SOURCES = \ t-pmilter.c \ t-pm-rcpts.c libpmilter_a_CC=$(PTHREAD_CC) libpmilter_a_CFLAGS = -DMTA_USE_PTHREADS $(PTHREAD_CFLAGS) libpmilter_a_LIBS=$(PTHREAD_LIBS) $(LIBS) libpmutil_a_CC=$(PTHREAD_CC) libpmutil_a_CFLAGS = -DMTA_USE_PTHREADS $(PTHREAD_CFLAGS) libpmutil_a_LIBS=$(PTHREAD_LIBS) $(LIBS) libtpmilter_a_CC=$(PTHREAD_CC) libtpmilter_a_CFLAGS = -DMTA_USE_PTHREADS $(PTHREAD_CFLAGS) libtpmilter_a_LIBS=$(PTHREAD_LIBS) $(LIBS) TESTP = t-pm-0 t-pm-mac-0 # compile only, do not run TESTC = t-pmilter-0 \ t-pmilter-1 \ example-pmilter-0 TESTSH = # do not run at all... TESTDATA = # list programs to run here TESTS = $(TESTP) $(TESTSH) # list programs to compile here check_PROGRAMS = $(TESTP) $(TESTC) LDADDR = ../libmta/libmtar.a LDREPLR = ../librepl/libreplr.a LDEVTHR = ../libevthr/libevthr.a LDTHR = ../libthr/libthr.a LDRCB = ../libmta/librcb.a LDRCBCOM = ../libmta/librcbcomm.a LDCSTRR = ../libmta/libcstrr.a LDCHK = ../libcheck/libcheck.a LDPMILTER = libpmilter.a LDPMUTIL = libpmutil.a LDTPMILTER = libtpmilter.a EXTRA_DIST = $(TESTSH) $(TESTDATA) t_pm_0_SOURCES= t-pm-0.c t_pm_0_LDADD= $(LDPMILTER) $(LDPMUTIL) $(LDEVTHR) $(LDTHR) $(LDRCBCOM) $(LDRCB) $(LDADDR) $(LDCSTRR) $(PTHREAD_LIBS) $(LDCHK) $(LDREPLR) t_pm_0_CC=$(PTHREAD_CC) t_pm_0_CFLAGS=-DMTA_USE_PTHREADS $(PTHREAD_CFLAGS) t_pm_0_CPPFLAGS=@MTA_DB_INC@ t_pm_0_LDFLAGS=$(PTHREAD_CFLAGS) t_pm_mac_0_SOURCES= t-pm-mac-0.c t_pm_mac_0_LDADD= $(LDPMILTER) $(LDPMUTIL) $(LDEVTHR) $(LDTHR) $(LDRCBCOM) $(LDRCB) $(LDADDR) $(LDCSTRR) $(PTHREAD_LIBS) $(LDCHK) $(LDREPLR) t_pm_mac_0_CC=$(PTHREAD_CC) t_pm_mac_0_CFLAGS=-DMTA_USE_PTHREADS $(PTHREAD_CFLAGS) t_pm_mac_0_CPPFLAGS=@MTA_DB_INC@ t_pm_mac_0_LDFLAGS=$(PTHREAD_CFLAGS) t_pmilter_0_SOURCES= t-pmilter-0.c t_pmilter_0_LDADD= $(LDPMILTER) $(LDTPMILTER) $(LDPMUTIL) $(LDEVTHR) $(LDTHR) $(LDRCBCOM) $(LDRCB) $(LDADDR) $(LDCSTRR) $(PTHREAD_LIBS) $(LDCHK) $(LDREPLR) t_pmilter_0_CC=$(PTHREAD_CC) t_pmilter_0_CFLAGS=-DMTA_USE_PTHREADS $(PTHREAD_CFLAGS) t_pmilter_0_CPPFLAGS=@MTA_DB_INC@ t_pmilter_0_LDFLAGS=$(PTHREAD_CFLAGS) t_pmilter_1_SOURCES= t-pmilter-1.c t_pmilter_1_LDADD= $(LDPMILTER) $(LDTPMILTER) $(LDPMUTIL) $(LDEVTHR) $(LDTHR) $(LDRCBCOM) $(LDRCB) $(LDADDR) $(LDCSTRR) $(PTHREAD_LIBS) $(LDCHK) $(LDREPLR) t_pmilter_1_CC=$(PTHREAD_CC) t_pmilter_1_CFLAGS=-DMTA_USE_PTHREADS $(PTHREAD_CFLAGS) t_pmilter_1_CPPFLAGS=@MTA_DB_INC@ t_pmilter_1_LDFLAGS=$(PTHREAD_CFLAGS) example_pmilter_0_SOURCES= example-pmilter-0.c example_pmilter_0_LDADD= $(LDPMILTER) $(LDPMUTIL) $(LDEVTHR) $(LDTHR) $(LDRCBCOM) $(LDRCB) $(LDADDR) $(LDCSTRR) $(PTHREAD_LIBS) $(LDCHK) $(LDREPLR) example_pmilter_0_CC=$(PTHREAD_CC) example_pmilter_0_CFLAGS=-DMTA_USE_PTHREADS $(PTHREAD_CFLAGS) example_pmilter_0_CPPFLAGS=@MTA_DB_INC@ example_pmilter_0_LDFLAGS=$(PTHREAD_CFLAGS)