# %%% copyright-cmetz-97
# This software is Copyright 1997 by Craig Metz, All Rights Reserved.
# The Inner Net License Version 2 applies to this software.
# You should have received a copy of the license with this software. If
# you didn't get a copy, you may request one from <license@inner.net>.
#

TARGETS=popd

ifndef CONFIG_DIR
CONFIG_DIR=/usr/inet6/lib/
endif

include $(CONFIG_DIR)GNUmakefile.inc

CFLAGS+=-DBIND43 -DHAVE_VSPRINTF -DNONAUTHFILE=\"/etc/ftpusers\" -DDEBUG

CFLAGS+=$(DINET6) $(DIPSEC)

ifneq ($(44BSD),0)
CFLAGS+=-DHAVE_PARAM_H
endif
ifeq ($(OS),Linux)
CFLAGS+=-DSYSV -DLINUX
endif

DEST=$(LIBEXECDIR)

include $(CONFIG_DIR)GNUmakefile.prog.tmpl

OBJS=flock.o pop_dele.o pop_dropcopy.o pop_get_command.o pop_get_subcommand.o \
	pop_init.o pop_last.o pop_list.o pop_log.o pop_lower.o pop_msg.o \
	pop_parse.o pop_pass.o pop_quit.o pop_rset.o pop_send.o pop_stat.o \
	pop_updt.o pop_user.o pop_xtnd.o pop_xmit.o popper.o pop_bull.o \
	xtnd_xlst.o pop_uidl.o mktemp.o pop_rpop.o pop_apop.o md5.o

popd: $(OBJS)
	$(CC) $(OBJS) $(LOADLIBES) -o popd
