prefix=/usr/pkg
exec_prefix=/usr/pkg
bindir=${exec_prefix}/bin
datadir=${datarootdir}
libdir=${exec_prefix}/lib
datarootdir=${prefix}/share
sbindir=${exec_prefix}/sbin
sysconfdir=/usr/pkg/etc
includedir=${prefix}/include
libexecdir=/usr/pkg/libexec/proftpd
localedir=${datarootdir}/locale
localstatedir=/var/run
pkgconfigdir=${exec_prefix}/lib/pkgconfig
mandir=/usr/pkg/man

AR=ar
CC=gcc
PLATFORM=-DNETBSD 
LDFLAGS=-Wl,-L$(top_srcdir)/lib,-L$(top_builddir)/lib -Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -rdynamic 
LIBEXECDIR=/usr/pkg/libexec/proftpd
LIBS=-lexecinfo -lresolv -lresolv -lcrypt  -liconv -lutil -lintl  -lssl -lcrypto -lpam  
LIBTOOL=$(SHELL) $(top_builddir)/libtool
MAKEDEPEND=makedepend -Y
RANLIB=ranlib

CURSES_LIBS=-lcurses
UTILS_LIBS=-lintl -lexecinfo -lresolv -lresolv -lcrypt  -liconv -lutil

INSTALL=/usr/bin/install -c -o pbulk -g users
INSTALL_STRIP=
INSTALL_USER=pbulk
INSTALL_GROUP=users
INSTALL_BIN=$(INSTALL) $(INSTALL_STRIP) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0755
INSTALL_SBIN=$(INSTALL) $(INSTALL_STRIP) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0755
INSTALL_MAN=$(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0644

RM=rm -f
SHELL=/bin/sh

ENABLE_NLS=1
ENABLE_TESTS=""

BUILD_VERSION=1.3.8b
RELEASE_VERSION=1.3.8b
RC_VERSION=

# Directory include paths.
#
INCLUDES=-I.. -I$(top_srcdir)/include -I$(top_builddir)/include 

# Preprocessor compilation flags.
#
CPPFLAGS=-DNO_STATIC_MODULES -DNO_STATIC_MODULES -I/usr/include -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES)
ADDL_CPPFLAGS=-DNO_STATIC_MODULES -DNO_STATIC_MODULES -I/usr/include

# Our compiler flags.
#
CFLAGS=-g2 -O2 -DNO_STATIC_MODULES -DNO_STATIC_MODULES -I/usr/include -Wall -fno-omit-frame-pointer -fno-strict-aliasing -Werror=implicit-function-declaration
DEFINES=$(PLATFORM)

# Module-specific libraries to link against.  These libraries may be
# conditional, i.e. depending on the module-specific configure script and
# options.
MODULE_LIBS_FILE=$(top_builddir)/module-libs.txt

SRCS=main.c timers.c sets.c pool.c privs.c str.c table.c regexp.c configdb.c \
  dirtree.c expr.c signals.c support.c netaddr.c inet.c child.c parser.c \
  log.c lastlog.c xferlog.c bindings.c netacl.c class.c scoreboard.c help.c \
  feat.c netio.c cmd.c response.c ascii.c data.c modules.c stash.c \
  display.c auth.c fsio.c mkhome.c ctrls.c event.c var.c throttle.c \
  session.c trace.c encode.c proctitle.c filter.c pidfile.c env.c random.c \
  version.c rlimit.c wtmp.c json.c jot.c memcache.c redis.c error.c

OBJS=main.o timers.o sets.o pool.o privs.o str.o table.o regexp.o configdb.o \
  dirtree.o expr.o signals.o support.o netaddr.o inet.o child.o parser.o \
  log.o lastlog.o xferlog.o bindings.o netacl.o class.o scoreboard.o help.o \
  feat.o netio.o cmd.o response.o ascii.o data.o modules.o stash.o \
  display.o auth.o fsio.o mkhome.o ctrls.o event.o var.o throttle.o \
  session.o trace.o encode.o proctitle.o filter.o pidfile.o env.o random.o \
  version.o rlimit.o wtmp.o json.o jot.o memcache.o redis.o error.o

BUILD_OBJS=src/main.o src/timers.o src/sets.o src/pool.o src/privs.o src/str.o \
  src/table.o src/regexp.o src/configdb.o src/dirtree.o src/expr.o \
  src/signals.o src/support.o src/netaddr.o src/inet.o src/child.o \
  src/parser.o src/log.o src/lastlog.o src/xferlog.o src/bindings.o \
  src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o \
  src/netio.o src/cmd.o src/response.o src/ascii.o src/data.o \
  src/modules.o src/stash.o src/display.o src/auth.o src/fsio.o \
  src/mkhome.o src/ctrls.o src/event.o src/var.o src/throttle.o \
  src/session.o src/trace.o src/encode.o src/proctitle.o src/filter.o \
  src/pidfile.o src/env.o src/random.o src/version.o src/rlimit.o \
  src/wtmp.o src/json.o src/jot.o src/memcache.o src/redis.o \
  src/error.o

SHARED_MODULE_DIRS= contrib/mod_dnsbl contrib/mod_load contrib/mod_sftp contrib/mod_wrap2
SHARED_MODULE_LIBS=
SHARED_MODULE_OBJS=mod_sftp_pam.la mod_ban.la mod_copy.la mod_ctrls_admin.la mod_deflate.la  mod_dynmasq.la mod_exec.la mod_ifsession.la mod_ifversion.la  mod_qos.la mod_quotatab.la mod_quotatab_file.la mod_quotatab_radius.la mod_quotatab_sql.la mod_radius.la mod_ratio.la mod_readme.la mod_rewrite.la  mod_sftp_sql.la mod_shaper.la mod_site_misc.la mod_sql.la mod_sql_passwd.la mod_tls.la mod_tls_shmcache.la mod_unique_id.la  mod_wrap2_file.la mod_wrap2_sql.la
SHARED_MODULE_SRCS=

BUILD_SHARED_MODULE_OBJS=modules/mod_wrap2_sql.la modules/mod_wrap2_file.la modules/mod_wrap2.la modules/mod_unique_id.la modules/mod_tls_shmcache.la modules/mod_tls.la modules/mod_sql_passwd.la modules/mod_sql.la modules/mod_site_misc.la modules/mod_shaper.la modules/mod_sftp_sql.la modules/mod_sftp.la modules/mod_rewrite.la modules/mod_readme.la modules/mod_ratio.la modules/mod_radius.la modules/mod_quotatab_sql.la modules/mod_quotatab_radius.la modules/mod_quotatab_file.la modules/mod_quotatab.la modules/mod_qos.la modules/mod_load.la modules/mod_ifversion.la modules/mod_ifsession.la modules/mod_exec.la modules/mod_dynmasq.la modules/mod_dnsbl.la modules/mod_deflate.la modules/mod_ctrls_admin.la modules/mod_copy.la modules/mod_ban.la modules/mod_sftp_pam.la 

STATIC_MODULE_DIRS=""
STATIC_MODULE_OBJS=mod_core.o mod_xfer.o mod_rlimit.o mod_auth_unix.o mod_auth_file.o mod_auth.o mod_ls.o mod_log.o mod_site.o mod_delay.o mod_facts.o mod_dso.o mod_auth_pam.o  mod_ctrls.o mod_lang.o
STATIC_MODULE_SRCS=mod_core.c mod_xfer.c mod_rlimit.c mod_auth_unix.c mod_auth_file.c mod_auth.c mod_ls.c mod_log.c mod_site.c mod_delay.c mod_facts.c mod_dso.c mod_auth_pam.c  mod_ctrls.c mod_lang.c

BUILD_STATIC_MODULE_ARCHIVES=
BUILD_STATIC_MODULE_OBJS=modules/mod_core.o modules/mod_xfer.o modules/mod_rlimit.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o modules/mod_dso.o modules/mod_auth_pam.o  modules/mod_ctrls.o modules/mod_lang.o modules/module_glue.o lib/prbase.a

FTPCOUNT_OBJS=ftpcount.o scoreboard.o misc.o
BUILD_FTPCOUNT_OBJS=utils/ftpcount.o utils/scoreboard.o utils/misc.o

FTPDCTL_OBJS=ftpdctl.o pool.o netaddr.o log.o ctrls.o
BUILD_FTPDCTL_OBJS=src/ftpdctl.o src/pool.o src/str.o src/netaddr.o src/log.o \
  src/ctrls.o lib/prbase.a

FTPSCRUB_OBJS=ftpscrub.o scoreboard.o misc.o
BUILD_FTPSCRUB_OBJS=utils/ftpscrub.o utils/scoreboard.o utils/misc.o

FTPSHUT_OBJS=ftpshut.o
BUILD_FTPSHUT_OBJS=utils/ftpshut.o

FTPTOP_OBJS=ftptop.o scoreboard.o misc.o
BUILD_FTPTOP_OBJS=utils/ftptop.o utils/scoreboard.o utils/misc.o

FTPWHO_OBJS=ftpwho.o scoreboard.o misc.o
BUILD_FTPWHO_OBJS=utils/ftpwho.o utils/scoreboard.o utils/misc.o lib/prbase.a
