############################################################
#
#	Back Propagation Algorithm
#
############################################################
#
# @(#) $Header$
#
# $Log$
#
############################################################
#
# Definitions
#
############################################################

SRCS =  bp.c
OBJS =  bp.o

# DO NOT DELETE THIS LINE MAKE DEFINE NEEDS IT

CFLAGS	= $(CCOPTIONS)
LDFLAGS	= $(LDOPTIONS)
HEADERS	= ../../h

# TEMP_LIBNC	= ../jct_common/libnc.a

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

default:	bp

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

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

clean:		tidy
		rm -f $(OBJS) bp 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)/bp

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

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

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