# 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
LIBS_EXIM= -liconv
EXIWHAT_PS_ARG=-as
EXIWHAT_KILL_SIGNAL=-USR1
EXIWHAT_EGREP_ARG='/(EXIM|exim)[0-9. -]*$$'

# minires is a partial replacement for bind, available from
# ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/porters/Humblet_Pierre_A/V1.1

# If you use bind, comment out the two lines below and specify LIBRESOLV
#
# To include minires directly in exim, create a symbolic link called minires
# in the exim directory, pointing to the directory with the minires sources.
CFLAGS += -DINCLUDE_MINIRES -I ../minires -I ../../minires

# To use minires as a dynamic or static library, install the minires
# package (including the provided .h files), comment the two lines above
# and uncomment one or both lines below.
#LIBRESOLV= -lminires
#LIBRESOLV+= -static

DBMLIB=-lgdbm
USE_GDBM=YES

# ROOT_UID is disregarded by cygwin_init() if ntsec isn't set
ROOT_UID=18  # SYSTEM on NT/2000/XP

# 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

# 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

EXICYCLOG_MAX=10

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

# EXIM_PERL=perl.o

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
