############################################################
#
#	Hopfield Algorithm
#
############################################################
#
# @(#) $Header$
#
# $Log$
#
############################################################
#
# Definitions
#
############################################################

SRCS =  hf.c
OBJS =  hf.o

# DO NOT DELETE THIS LINE MAKE DEFINE NEEDS IT

CFLAGS	= $(CCOPTIONS)
LDFLAGS	= $(LDOPTIONS)
HEADERS	= ../../h
# RPCHEADERS	= ../../rpch
# TEMP_LIBNC	= ../jct_common/libnc.a

############################################################
#
# Building Rules
#
############################################################

default:	hf

hf:		hf.o $(LIBNC) $(LIBPGM)
		$(CC) hf.o $(LIBNC) $(LIBPGM) $(LDFLAGS) -o $@

hf.o:		hf.c
		$(CC) $(CFLAGS) -c hf.c

clean:		tidy
		rm -f $(OBJS) hf test

tidy:
		rm -f core a.out *.old *.BAK *.bak \#*

define:
		$(DEFINE) Makefile

depend:
		$(DEPEND) -I$(HEADERS) $(SRCS)

install:	install-dir install-files

install-dir:	$(PYGBIN)

install-files:	$(PYGBIN)/hf

$(PYGBIN)/hf:	hf
		cp hf $@
		-$(CHMOD) 755 $@

############################################################
#
# End of Building Rules
#
############################################################
# DO NOT DELETE THIS LINE MAKE DEPEND NEEDS IT
# Dependencies follow
hf.o: hf.c
hf.o: ../../h/pygmalion.h
hf.o: ../../h/sysdef.h
hf.o: ../../h/supdef.h
hf.o: ../../h/hfconfig.h
hf.o: ../../h/pgmrc.h
hf.o: ../../h/hfdef.h
hf.o: ../../h/built_in_fn.h
hf.o: ../../h/util.h
hf.o: ../../h/fontdefs.h

# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see make depend above
