##########################################################################
#                            MAKEFILE
#=========================================================================
#	This is the makefile for |STAT data analysis programs.
#	There are macros at the beginning of this file.  Mostly they
#	help you customize.  The # comment character is placed
#	immediately after the value to avoid unwanted spaces.
##########################################################################
#                            WARNINGS
#=========================================================================
# With my version of gcc,
#      the -O option caused incorrect results with anova.
#      you may need to compile with the -bsd option added to CFLAGS
##########################################################################

DESTDIR=../bin#                               destination directory
CFLAGS =-O -bsdS#                             C Compiler Options
LINK   =$(CC) $(CFLAGS) -o $(DESTDIR)/$@#     Generic link command
LIBS   =-lm#                                  libraries needed (math)
EDITOR =/usr/bin/emacs#                       editor to call on make edit
RM     =/bin/rm -f#                           remove forcefully
MV     =/bin/mv#                              move/rename files
MAKE   =/usr/bin/make#                            use for recursive makes

MAINS = dl.c mpttest.c norm.c ttest.c

PROGS = dl mpttest norm ttest

all:
	@/bin/echo "Making all the supplemental |STAT Programs"
	@/bin/echo "Using compiler=$(CC) with options=$(CFLAGS)"
	@/bin/echo "Installing in directory=$(DESTDIR)"
	@$(MAKE) -i $(PROGS)

edit:
	@$(EDITOR) $(MAINS)

.PRECIOUS: makefile $(UTILS) $(MAINS)

DL=dl.o readlines.o
dl: $(DL)
	$(LINK) $(DL)

MPTTEST=mpttest.o readlines.o
mpttest: $(MPTTEST)
	$(LINK) $(MPTTEST)

TTEST=ttest.o readlines.o
ttest: $(TTEST)
	$(LINK) $(TTEST)

