#
# Makefile for configuration files
# things to make:
#	genbox		the program to generate the boxes
#	Makefile	to regenerate the Makefile
#	clean		to delete intermediate files
#	clobber		to delete all files except the original sources
#			and the Makefile
#	clobberall	to delete all files except the original sources
#
#################################################################
# Copyright notice.						#
# This software is copyrighted (c) 1991 by Matt Bishop and the	#
# Trustees of Dartmouth College.  All rights reserved.		#
# 								#
# Author:	Matt Bishop					#
# Address:	Department of Mathematics and Computer Science	#
#	 	Dartmouth College				#
# 		Hanover, NH  03755-1831				#
# 		USA						#
# telephone:	+1 603 646 3267					#
# fax:		+1 603 646 1312					#
# internet:	Matt.Bishop@dartmouth.edu			#
# usenet:	...!decvax!dartvax!Matt.Bishop			#
#################################################################
#
VERSION="Version GAMMA 6/31/91 Matt.Bishop@dartmouth.edu"	# version

# the M4 configuration file
include(../../../config/config.m4)

dnl	the following is needed due to a bug in the Sun 3 C compiler
dnl	on most systems it is simply ignored
ifelse(HostType,sun3,CC	= gcc)

#
# some internal definitions
#
SRC	= ipe.c spe6.c spe12.c eipinv.c pc1.c lsh.c pc2.c key.c main.c tables.c
OBJ	= ipe.o spe6.o spe12.o eipinv.o pc1.o lsh.o pc2.o key.o main.o tables.o
CFLAGS	= $(C_OPTS) -I$(LIBINC) -I../../../include

# generate the box generator
genbox:	$(OBJ)
	$(CC) $(CFLAGS) $(OBJ) -o genbox

# regenerate the Makefile
Makefile:
	$(M4) Makefile.m4 > Makefile

# clean up
clean:
	-$(RM) $(RM_FORCE) $(OBJ)

# really clean up
clobber:
	-$(RM) $(RM_FORCE) $(OBJ) genbox

$(OBJ):	genbox.h

