#  $Id: Makefile,v 1.2 90/07/11 13:08:38 mbp Exp Locker: mbp $
#
#  separate make file
#
#  Before running this makefile, make sure the macros below are set the
#  the appropriate pathnames.
#
###############################################################

# PWD = complete pathname of the directory containing this Makefile.
# If you are using csh, this should be be set automatically by the
# shell, and you may leave this line commented out.  Otherwise, remove
# the comment char and fill in the complete pathname of this dir.
# PWD = 

# OPTIONS = compiler options
OPTIONS = -g -pipe

# BINDIR = dir in which to install final executable files.  This
# is used by 'make install'.  To prevent installation of executables,
# comment out the def of BINDIR.
BINDIR = $(HOME)/bin

# INSTALL_BIN = pathname of 'instl' shell script
INSTALL_BIN = instl

# Copying command for use in installation. Should be 'ln' or 'cp'.
CP=ln

###############################################################

INSTALL = $(INSTALL_BIN) -cp '$(CP)'

MAKEFILE = Makefile

MKDEP = ./mkdep

CFLAGS = $(OPTIONS)

COMPILE = cc -c $(CFLAGS)

LINK = cc $(CFLAGS)

###############################################################

all:	separate

separate.o:
	$(COMPILE) -o separate.o separate.c

separate:	separate.o
	$(LINK) -o separate separate.o -lm

clean:
	/bin/rm -f *.o *~ ;

veryclean:
	/bin/rm -f *.o *~ separate ;

distclean:	veryclean

install:	separate
	strip separate
	$(INSTALL) '$(BINDIR)' separate

depend:
	$(MKDEP) $(MAKEFILE) separate.c

########################################################################

# Do not change or alter the '# BEGIN DEPENDENCY LIST' line below;
# 'make depend' uses it.  Anything you put after this line will go
# away when you do 'make depend'.


# BEGIN DEPENDENCY LIST

separate.o: separate.c
