############################################################
#
#	Self Organising Map
#
############################################################
#
# @(#) $Header$
#
# $Log$
#
############################################################
#
# Definitions
#
############################################################

SRCS =  so.c
OBJS =  so.o

# DO NOT DELETE THIS LINE MAKE DEFINE NEEDS IT

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

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

default:	so

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

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

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

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

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

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