# Makefile for statistics program, stats

CC= gcc
CFLAGS= -O2 -Wcomment -Wformat -ansi   # gcc specific flags
LIB= -lm                               # requires linking in the math library
DEST=/home/neural01/gradst/claypool/bin/solaris# directory to install executable
MOVE=/bin/mv                           # source of program to move files
RM=/bin/rm                             # source of program to remove files

all: stats

stats: stats.c
	# Compiling statistics program...
	$(CC) $(CFLAGS) stats.c -o stats $(LIB) 

install: stats 
	# Installing statistics program...
	$(MOVE) stats $(DEST)

stats.tgz: Changes Makefile README stats.c stats.man gnuplot.help
	# Packaging stats...
	$(RM) -f stats.tgz
	tar zcvf stats.tgz *

clean:
	# Cleaning up files...
	$(RM) -rf stats.o stats core *~

# end of makefile
