############################################################
# Do the default make (all: $(EXECUTABLES))
############################################################
lnx1 1> make
pgf77 -g -c fdemo2.f
pgf77 -g -L/usr/local/PGI/lib fdemo2.o -o fdemo2
pgf77 -g -c mysum.f
pgf77 -g -L/usr/local/PGI/lib mysum.o -o mysum
pgf77 -g -c tdvfrom.f
pgf77 -g -c dvfrom.f
pgf77 -g -L/usr/local/PGI/lib tdvfrom.o dvfrom.o -lp410f -o tdvfrom
pgf77 -g -c tdvto.f
pgf77 -g -c dvto.f
pgf77 -g -L/usr/local/PGI/lib tdvto.o dvto.o -lp410f -o tdvto 

############################################################
# Here's an alias which lists all the executables in a 
# directory using the fact that the -F flag to ls appends
# a '*' to the name of such files.  I've included it here 
# just to keep you thinking about tailoring your Unix 
# environment to suit your own needs. 'sed' is the stream-
# editor, which, like 'awk' and 'perl' can be used to 
# manipulate and modify text.
############################################################
lnx1 2> alias lsx  '/bin/ls -F | fgrep \* | sed s/\*//g'

lnx1 3> lsx
fdemo2
mysum
tdvfrom
tdvto

############################################################
# For those of you who think that there must be a find 
# command that does about the same thing, you're right ...
############################################################
lnx1 4> find . -perm +111
.
./fdemo2
./mysum
./tdvfrom
./tdvto
############################################################
# ... and I'd *still* alias it 'lsx'! 
############################################################

############################################################
# Clean up ...
############################################################
lnx1 5> make clean
rm *.o
rm fdemo2 mysum tdvfrom tdvto

lnx1 6> ls
Makefile  dvto.f    first100   mysum.f    tdvto.f
dvfrom.f  fdemo2.f  mysum-s.f  tdvfrom.f