summaryrefslogtreecommitdiff
path: root/sieve/Makefile.am
blob: 7361a32a844c40444d4b916c418f37d312139149 (plain)
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
84
85
86
87
# This file is part of GNU Mailutils
# Copyright (C) 2000,2001,2002 Free Software Foundation
# See file COPYING in the distribution root directory for copying conditions.

AUTOMAKE_OPTIONS = ../lib/ansi2knr
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib 
SUBDIRS  = testsuite
YLWRAP = $(SHELL) $(srcdir)/ylwrap
YFLAGS = -dt

BUILT_SOURCES= \
  sieve-gram.c sieve-gram.h \
  sieve-lex.c addr-lex.c \
  addr.c addr.h

MOSTLYCLEANFILES=
CLEANFILES=
DISTCLEANFILES=
MAINTAINERCLEANFILES=$(BUILT_SOURCES)
EXTRA_DIST = \
  $(BUILT_SOURCES) \
  addr-lex.l addr.y gram-sieve.y sieve-gram.y sieve-lex.l 

bin_PROGRAMS = sieve

SRC = \
  addr-lex.c \
  addr.c \
  comparator.c \
  imparse.c \
  interp.c \
  message.c \
  parseaddr.c \
  script.c \
  sieve-lex.c \
  sieve-gram.c \
  sieve_err.c \
  svcb.c \
  svctx.c \
  svfield.c \
  svutil.c \
  tree.c \
  util.c

HDR = \
  comparator.h \
  imparse.h \
  interp.h \
  message.h \
  parseaddr.h \
  script.h \
  sieve.h \
  sieve_err.h \
  sieve_interface.h \
  svfield.h \
  sv.h \
  tree.h \
  util.h

sieve_LDADD = ../mailbox/libmailbox.la ../lib/libmailutils.la 
sieve_SOURCES = \
  sieve.c \
  ${SRC} $(HDR)

addr-lex.c: $(srcdir)/addr-lex.l addr.h
	$(YLWRAP) "$(LEX)" $(srcdir)/addr-lex.l lex.yy.c \
                  addr-lex.c -- -yy addr

addr.c addr.h: $(srcdir)/addr.y
	$(YLWRAP) "$(YACC) $(YFLAGS)" $(srcdir)/addr.y \
                  y.tab.c addr.c y.tab.h addr.h \
                  -- -yy addr

sieve-lex.c: $(srcdir)/sieve-lex.l sieve-gram.h
	$(YLWRAP) "$(LEX)" $(srcdir)/sieve-lex.l lex.yy.c sieve-lex.c

sieve-gram.c sieve-gram.h: $(srcdir)/sieve-gram.y
	$(YLWRAP) "$(YACC) $(YFLAGS)" $(srcdir)/sieve-gram.y \
	          y.tab.c sieve-gram.c y.tab.h sieve-gram.h

comparator.o: sieve-gram.h
script.o: sieve-gram.h
tree.o: sieve-gram.h

empty: clean
	rm -f $(BUILT_SOURCES)

Return to:

Send suggestions and report system problems to the System administrator.