File: Makefile.am

package info (click to toggle)
mailfilter 0.8.6-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,280 kB
  • ctags: 2,501
  • sloc: cpp: 2,452; sh: 1,393; ansic: 1,259; lex: 570; yacc: 468; makefile: 167; perl: 72
file content (83 lines) | stat: -rw-r--r-- 3,100 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Makefile.am: help build program sources
# $Id: Makefile.am,v 1.9.2.6.2.22 2006/12/31 21:44:18 baueran Exp $

# Copyright (c) 2000 - 2009  Andreas Bauer <baueran@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
# USA.

EXTRA_DIST = rcfile.yy rfc822.yy

AM_CXXFLAGS = -Wall
YFLAGS = -d -v
AM_LFLAGS = -+ -i

bin_PROGRAMS = mailfilter

# Some dependencies to invoke flex + bison before compilation of
# lex output starts:
rcfile.cc: rcfile.ll rcparser.hh
	   $(LEX) $(AM_LFLAGS) -Prc -o$@ $<

rcparser.hh: rcparser.cc
rcparser.cc: rcfile.yy
		   $(YACC) $(YFLAGS) -b rc -p rc $<;  \
		   mv rc.tab.c rcparser.cc; \
		   mv rc.tab.h rcparser.hh

# Almost the same as above, but this time for the RFC 822 parser:
rfc822.cc: rfc822.ll rfc822parser.hh
	   $(LEX) $(AM_LFLAGS) -Prfc -o$@ $<

rfc822parser.hh: rfc822parser.cc
rfc822parser.cc: rfc822.yy
		   $(YACC) $(YFLAGS) -b rfc -p rfc $<;  \
		   mv rfc.tab.c rfc822parser.cc; \
		   mv rfc.tab.h rfc822parser.hh

CLEANFILES = *.output Makefile.in rcfile.cc rcfile.ll.bak rcparser.cc rcparser.hh rfc822.cc rfc822parser.cc rfc822parser.hh

# If this gets updated, remember to update the doxygen.in config file!
mailfilter_SOURCES =	md5c.c md5.h                              \
			defines.hh                                \
			rcfile.ll rcfile.hh                       \
			rcparser.hh rcparser.cc                   \
			rfc822.ll rfc822parser.hh rfc822parser.cc \
			mailfilter.hh mailfilter.cc               \
			header.hh header.cc                       \
			weeder.hh weeder.cc                       \
			preferences.hh preferences.cc             \
			feedback.hh feedback.cc                   \
			filter.hh filter.cc                       \
			score.hh score.cc                         \
			account.hh account.cc                     \
			protocol.hh protocol.cc                   \
			connection.hh                             \
			socket.hh socket.cc                       \
			pop3.hh pop3.cc                           \
			apop.hh apop.cc                           \
			imap.hh imap.cc

if !GETOPT
mailfilter_SOURCES += getopt.c getopt1.c getopt.h
endif

AM_CPPFLAGS = -I$(includedir)                                     \
	      -I$(srcdir) -I$(top_srcdir)/include -I$(top_srcdir) \
	      -DLOCALEDIR=\"$(datadir)/locale\"                   \
	      -I$(top_srcdir)/intl                                \
	      -I$(top_builddir) -I$(top_builddir)/include -I.

LIBS = @LEXLIB@ @LIBS@