summaryrefslogtreecommitdiff
path: root/src/OS/Makefile-CYGWIN
blob: 8bf51216c87b984c1172277c44aeb7f8b2b2ac2f (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# $Cambridge: exim/src/OS/Makefile-CYGWIN,v 1.3 2005/05/23 16:58:55 fanf2 Exp $

# OS-specific file for Cygwin.

# This file provided by Pierre A. Humblet <Pierre.Humblet@ieee.org>

HAVE_ICONV = yes
CFLAGS= -g -Wall -O2
LIBS= -lcrypt -lresolv -lm
LIBS_EXIM= -liconv
EXIWHAT_PS_ARG=-as
EXIWHAT_KILL_SIGNAL=-USR1
EXIWHAT_EGREP_ARG='/(EXIM|exim)[0-9. -]*$$'

DBMLIB=-lgdbm
USE_GDBM=YES

# Some OS add a suffix to executables
EXE = .exe

# To add a resource file with an icon
LIBS_EXIM +=../Local/exim_res.o

# To produce a linker map
#LIBS_EXIM+=-Wl,-Map,Exim.Map


##################################################
# The following is normaly set in local/Makefile.
# Makefile.cygwin provides defaults with which the
# precompiled version is built
##################################################

BIN_DIRECTORY=/usr/bin
CONFIGURE_FILE=/etc/exim.conf
EXIM_USER=18   # This changes if user exim exists
EXIM_GROUP=544 # Administrators
SPOOL_DIRECTORY=/var/spool/exim
LOG_FILE_PATH=/var/log/exim/exim_%s.log
TIMEZONE_DEFAULT = ""

AUTH_CRAM_MD5=yes
AUTH_PLAINTEXT=yes
AUTH_SPA=yes

SUPPORT_TLS=yes
TLS_LIBS=-lssl -lcrypto

ROUTER_ACCEPT=yes
ROUTER_DNSLOOKUP=yes
ROUTER_IPLITERAL=yes
ROUTER_MANUALROUTE=yes
ROUTER_QUERYPROGRAM=yes
ROUTER_REDIRECT=yes

TRANSPORT_APPENDFILE=yes
TRANSPORT_AUTOREPLY=yes
TRANSPORT_PIPE=yes
TRANSPORT_SMTP=yes

SUPPORT_MAILDIR=yes
SUPPORT_MAILSTORE=yes
SUPPORT_MBX=yes

LOOKUP_DBM=yes
LOOKUP_LSEARCH=yes

LDAP_LIB_TYPE=OPENLDAP2
LIBS_EXIM +=-lldap

# LOOKUP_CDB=yes
LOOKUP_DNSDB=yes
LOOKUP_DSEARCH=yes
LOOKUP_LDAP=yes
# LOOKUP_MYSQL=yes
# LOOKUP_NIS=yes
# LOOKUP_NISPLUS=yes
# LOOKUP_ORACLE=yes
LOOKUP_PASSWD=yes
# LOOKUP_PGSQL=yes
# LOOKUP_WHOSON=yes

# It is important to define this variable but its value is always overridden
CONFIGURE_OWNER=544

EXICYCLOG_MAX=10

COMPRESS_COMMAND=/usr/bin/gzip
COMPRESS_SUFFIX=gz
ZCAT_COMMAND=/usr/bin/zcat

# EXIM_PERL=perl.o

# Comment the two lines below if you do not have PAM, e.g. from
# ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/porters/Humblet_Pierre_A
SUPPORT_PAM=yes
CFLAGS += -DINCLUDE_PAM -I ../pam -I ../../pam

APPENDFILE_MODE       = 0644     # default if no ntsec
APPENDFILE_DIRECTORY_MODE = 0777
APPENDFILE_LOCKFILE_MODE = 0666
EXIMDB_DIRECTORY_MODE    = 0777
EXIMDB_MODE              = 0666
EXIMDB_LOCKFILE_MODE     = 0666
INPUT_DIRECTORY_MODE  = 0777
LOG_DIRECTORY_MODE    = 0777
LOG_MODE              = 0666
MSGLOG_DIRECTORY_MODE = 0777
SPOOL_DIRECTORY_MODE  = 0777
SPOOL_MODE            = 0666

# PERL_CC=gcc -g -O2 -I ../minires
# PERL_CCOPTS= -dD -save-temps -I ../minires
# PERL_LIBS = /usr/lib/perl5/5.6.1/cygwin-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.6.1/cygwin-multi/CORE -llibperl5_6_1

# End