1#
2#	Makefile	(CWI)	1.1	85/03/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
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
37tfilt	:idfilt.o har.o
38	cc -o tfilt har.o idfilt.o
39
40aps.o	:aps.c
41
42apsfilt	:aps.o idfilt.o
43	cc -o apsfilt aps.o idfilt.o
44
45idsort	:idsort.c
46	cc -o idsort idsort.c
47
48install: all
49	install -s tfilt ${DESTDIR}/${LIBDIR}/tfilt
50	install -s pfilt ${DESTDIR}/${LIBDIR}/pfilt
51	install -s idsort ${DESTDIR}/${LIBDIR}/idsort
52
53clean:
54	rm -f *.o ${OBJECTS}
55