1# 2# Makefile (CWI) 1.2 87/04/01 3# 4# BINDIR is the place where ideal will be installed 5BINDIR = /usr/local 6# DESTDIR is the destination where we want to move the thing (temporarily) 7DESTDIR = 8# LIBDIR is the place where we expect the the things we need and is 9# is therefore hardwired in. Since it is all local, we use BINDIR as well 10LIBDIR = ${BINDIR}/lib/ideal/lib 11# pfilt is ideal filter for plot(1) 12# tfilt is filter for ditroff 13# idsort is general sort for ideal 14OBJECTS = tfilt pfilt idsort vfilt 4filt 15 16all: ${OBJECTS} 17 18idfilt.o :idfilt.c idfilt.h 19 204014.o :4014.c idfilt.h 21 224filt :idfilt.o 4014.o 23 cc -o 4filt 4014.o idfilt.o -l4014 -lm 24 25pout.o :pout.c 26 27pfilt :idfilt.o pout.o 28 cc -o pfilt pout.o idfilt.o -lplot -lm 29 30202.o :202.c idfilt.h 31 32202filt :idfilt.o 202.o 33 cc -o tfilt 202.o idfilt.o 34 35har.o :har.c idfilt.h 36 37ver.o :ver.c idfilt.h 38 39vfilt :idfilt.o ver.o 40 cc -o vfilt ver.o idfilt.o 41 42tfilt :idfilt.o har.o 43 cc -o tfilt har.o idfilt.o 44 45aps.o :aps.c 46 47apsfilt :aps.o idfilt.o 48 cc -o apsfilt aps.o idfilt.o 49 50idsort :idsort.c 51 cc -o idsort idsort.c 52 53install: all 54 install -s tfilt ${DESTDIR}${LIBDIR}/tfilt 55 install -s 4filt ${DESTDIR}${LIBDIR}/4filt 56 install -s pfilt ${DESTDIR}${LIBDIR}/pfilt 57 install -s vfilt ${DESTDIR}${LIBDIR}/vfilt 58 install -s idsort ${DESTDIR}${LIBDIR}/idsort 59 60clean: 61 rm -f *.o ${OBJECTS} 62