#
#
#  $Header: /tmp_mnt/vol/nwd/tools/media/X11/XP/src/bootp/RCS/Makefile,v 1.1 1991/07/16 23:37:46 bwa Exp $
#  Copyright, Tektronix, Inc., 1990, 1991
#
#
#  BOOTP server daemon.
#
#
#  Define program built by this Makefile.
#
PROGRAM = bootpd
#
#
#  Define object files in program.
#
OBJECTS = bootpd.o readfile.o hash.o
#
#
#  Define C compiler.
#
CC = cc
#
#  
#  Define compilation flags.
#	-g		= debugging info
#	-O		= optimize (cannot use -g then)
#	-DCONFIG_FILE	= bootp configuration file (default /usr/etc/bootptab)
#	-DDUMP_FILE	= bootp dump file (default /usr/etc/bootpd.dump)
#	-DSUNOS40	= may be needed for SunOS 4.0
#	-DSYSLOG	= enable logging code
#	-DDEBUG		= enable table dumping via signals
#	-DVEND_CMU	= enable the CMU extensions for CMU PC/IP
#
CFLAGS = -g -DSYSLOG -DDEBUG -DVEND_CMU -DPRIVATE=static
#
#
#  Define where to look for .h files.
#
INCLUDES =
#
#
#  Define libraries with which to link.
#
LIBS =
#
#
#  Commands to compile and link objects together.
#
$(PROGRAM):	$(OBJECTS)
		sh newvers.sh
		rm -f $(PROGRAM)
		$(CC) $(CFLAGS) -o $(PROGRAM) version.c $(OBJECTS) $(LIBS)

.c.o:
		$(CC) $(CFLAGS) -c $(INCLUDES) $<

clean:
		rm -f core $(OBJECTS) $(PROGRAM) version.c

install:	$(PROGRAM)
		/usr/bin/install -c -s $(PROGRAM) /etc/$(PROGRAM)
#
#
#  End of Makefile.
#
#
