#
# Makefile
#
# Makefile for the in.identd daemon
#
# Modify it below to suit your particular system
#
DESTROOT=/usr/local
DESTDIR=$(DESTROOT)/etc
MANROOT=$(DESTROOT)/man
MANDIR=$(MANROOT)/man8

#
# Use this if Sun SunOS 4.*
#
# LIBS=-lkvm
# DEFS=-DSUN -DHAVE_KVM

#
# Use this if Sequent Dynix 2.*
#
# LIBS=
# DEFS=-DSEQUENT

#
# Use this if Mips RISC/OS 4.*
#
# LIBS=-lmld
# DEFS=-DMIPS

#
# Use this if Hewlett-Packard HP-UX 7.*
#
# LIBS=
# DEFS=-DHPUX7

#
# Use this if BSD 4.3
#
LIBS=
DEFS=-DBSD43

#
# Use this if Hewlett-Packard HP-UX 8.*, DEC Ultrix 4.* and others
#
#LIBS=
#DEFS=


CFLAGS= -O $(DEFS)

in.identd: 	identd.o kvm.o
	$(CC) -o in.identd identd.o kvm.o $(LIBS)

identd.o:	paths.h identd.c Makefile
kvm.o:		kvm.c kvm.h paths.h Makefile

install: in.identd
	cp in.identd $(DESTDIR)/in.identd
	cp identd.8  $(MANDIR)/identd.8
 
clean:
	rm -f in.identd *~ core *.o \#*
