Fix build on older OpenSSL
[users/jgh/exim.git] / src / OS / unsupported / Makefile-CYGWIN
1 # OS-specific file for Cygwin.
2
3 # This file provided by Pierre A. Humblet <Pierre.Humblet@ieee.org>
4
5 HAVE_IPV6 = yes
6 HAVE_ICONV = yes
7 # Use c99 to have %z 
8 CFLAGS= -g -Wall -std=c99 -U __STRICT_ANSI__
9 LIBS= -lcrypt -lresolv
10 LIBS_EXIM= -liconv
11 EXIWHAT_PS_ARG=-as
12 EXIWHAT_KILL_SIGNAL=-USR1
13 EXIWHAT_EGREP_ARG='/(EXIM|exim)[0-9. -]*$$'
14
15 DBMLIB=-lgdbm
16 USE_GDBM=YES
17
18 # Some OS add a suffix to executables
19 EXE = .exe
20
21 # To add a resource file with an icon
22 LIBS_EXIM +=../Local/exim_res.o
23
24 # To produce a linker map
25 #LIBS_EXIM+=-Wl,-Map,Exim.Map
26
27
28 ##################################################
29 # The following is normally set in local/Makefile.
30 # Makefile.cygwin provides defaults with which the
31 # precompiled version is built
32 ##################################################
33
34 BIN_DIRECTORY=/usr/bin
35 CONFIGURE_FILE=/etc/exim.conf
36 EXIM_USER=18   # This changes if user exim exists
37 EXIM_GROUP=544 # Administrators
38 SPOOL_DIRECTORY=/var/spool/exim
39 LOG_FILE_PATH=/var/log/exim/exim_%s.log
40 TIMEZONE_DEFAULT = ""
41
42 AUTH_CRAM_MD5=yes
43 AUTH_PLAINTEXT=yes
44 AUTH_SPA=yes
45
46 SUPPORT_TLS=yes
47 TLS_LIBS=-lssl -lcrypto
48
49 ROUTER_ACCEPT=yes
50 ROUTER_DNSLOOKUP=yes
51 ROUTER_IPLITERAL=yes
52 ROUTER_MANUALROUTE=yes
53 ROUTER_QUERYPROGRAM=yes
54 ROUTER_REDIRECT=yes
55
56 TRANSPORT_APPENDFILE=yes
57 TRANSPORT_AUTOREPLY=yes
58 TRANSPORT_PIPE=yes
59 TRANSPORT_SMTP=yes
60
61 SUPPORT_MAILDIR=yes
62 SUPPORT_MAILSTORE=yes
63 SUPPORT_MBX=yes
64
65 LOOKUP_DBM=yes
66 LOOKUP_LSEARCH=yes
67
68 # LOOKUP_CDB=yes
69 LOOKUP_DNSDB=yes
70 LOOKUP_DSEARCH=yes
71 LOOKUP_LDAP=yes
72 # LOOKUP_MYSQL=yes
73 # LOOKUP_NIS=yes
74 # LOOKUP_NISPLUS=yes
75 # LOOKUP_ORACLE=yes
76 LOOKUP_PASSWD=yes
77 # LOOKUP_PGSQL=yes
78 # LOOKUP_WHOSON=yes
79
80 LDAP_LIB_TYPE=OPENLDAP2
81 LOOKUP_LIBS=-lldap -llber
82
83 WITH_CONTENT_SCAN=yes
84
85 # It is important to define these variables but the values are always overridden
86 CONFIGURE_OWNER=18
87 CONFIGURE_GROUP=544
88
89 EXICYCLOG_MAX=10
90
91 COMPRESS_COMMAND=/usr/bin/gzip
92 COMPRESS_SUFFIX=gz
93 ZCAT_COMMAND=/usr/bin/zcat
94
95 # EXIM_PERL=perl.o
96
97 # Comment the two lines below if you do not have PAM, e.g. from
98 # ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/porters/Humblet_Pierre_A
99 SUPPORT_PAM=yes
100 CFLAGS += -DINCLUDE_PAM -I ../pam -I ../../pam
101
102 # All modes are in octal and must start with 0
103 EXIMDB_DIRECTORY_MODE    = 01777
104 EXIMDB_MODE              = 0666
105 EXIMDB_LOCKFILE_MODE     = 0666
106 INPUT_DIRECTORY_MODE  = 01777
107 LOG_DIRECTORY_MODE    = 01777
108 LOG_MODE              = 0666
109 MSGLOG_DIRECTORY_MODE = 01777
110 SPOOL_DIRECTORY_MODE  = 01777
111 SPOOL_MODE            = 0600
112
113 # End