1*40850Sbostic#	makefile	4.6	90/04/08
215763Sralph#
315763SralphCFLAGS=	-O -w
415763SralphLIBS=	../libpw.a ../libPW.a ../libwrt.a
515762Sralph
615763Sralphall:	admin bdiff chghist comb delta get help prt rmdel sccsdiff.sh \
715763Sralph	what val snull cmt prs
815762Sralph
919943Ssamadmin:	admin.o ../com/comobj.a alloc.o
10*40850Sbostic	$(CC) -o admin admin.o ../com/comobj.a $(LIBS) alloc.o -lcompat
1115762Sralph
1215762Sralphadmin.o:	admin.c ../hdr/defines.h ../hdr/had.h
1315763Sralph	$(CC) -c $(CFLAGS) admin.c
1415762Sralph
1519943Ssamcmt:	cmt.o ../com/comobj.a alloc.o
16*40850Sbostic	$(CC) -o cmt cmt.o ../com/comobj.a $(LIBS) alloc.o -lcompat
1715762Sralph
1815762Sralphcmt.o:	cmt.c ../hdr/defines.h ../hdr/had.h
1915763Sralph	$(CC) -c $(CFLAGS) cmt.c
2015762Sralph
2119943Ssambdiff:	bdiff.o ../com/comobj.a alloc.o
2219943Ssam	$(CC) -o bdiff bdiff.o ../com/comobj.a $(LIBS) alloc.o
2315762Sralph
2415762Sralphbdiff.o:	bdiff.c ../hdr/defines.h ../hdr/had.h
2515763Sralph	$(CC) -c $(CFLAGS) bdiff.c
2615762Sralph
2719943Ssamcomb:	comb.o ../com/comobj.a alloc.o
28*40850Sbostic	$(CC) -o comb comb.o ../com/comobj.a $(LIBS) alloc.o -lcompat
2915762Sralph
3015762Sralphcomb.o:		comb.c ../hdr/defines.h ../hdr/had.h
3115763Sralph	$(CC) -c $(CFLAGS) comb.c
3215762Sralph
3319943Ssamscv:	scv.o ../com/comobj.a alloc.o
3419943Ssam	$(CC) -o scv scv.o ../com/comobj.a $(LIBS) alloc.o
3515762Sralph
3615762Sralphscv.o:		scv.c ../hdr/defines.h ../hdr/had.h
3715763Sralph	$(CC) -c $(CFLAGS) scv.c
3815762Sralph
3919943Ssamsnull:	snull.o ../com/comobj.a alloc.o
40*40850Sbostic	$(CC) -o snull snull.o ../com/comobj.a $(LIBS) alloc.o -lcompat
4115762Sralph
4215762Sralphsnull.o:		snull.c ../hdr/defines.h ../hdr/had.h
4315763Sralph	$(CC) -c $(CFLAGS) snull.c
4415762Sralph
4519943Ssamdelta:	delta.o ../com/comobj.a alloc.o
46*40850Sbostic	$(CC) -o delta delta.o ../com/comobj.a $(LIBS) alloc.o -lcompat
4715762Sralph
4815762Sralphdelta.o:	delta.c ../hdr/defines.h ../hdr/had.h
4915765Sralph	$(CC) -c $(CFLAGS) -DLOGDELTA delta.c
5015762Sralph
5119943Ssamget:	get.o ../com/comobj.a alloc.o
52*40850Sbostic	$(CC) -o get get.o ../com/comobj.a $(LIBS) alloc.o -lcompat
5315762Sralph
5415762Sralphget.o:		get.c ../hdr/defines.h ../hdr/had.h
5515763Sralph	$(CC) -c $(CFLAGS) get.c
5615762Sralph
5719943Ssamhelp:	help.o ../com/comobj.a alloc.o
5819943Ssam	$(CC) -o help help.o ../com/comobj.a $(LIBS) alloc.o
5915762Sralph
6015762Sralphhelp.o:		help.c ../hdr/defines.h ../hdr/had.h
6115763Sralph	$(CC) -c $(CFLAGS) help.c
6215762Sralph
6319943Ssamprt:	prt.o ../com/comobj.a alloc.o
64*40850Sbostic	$(CC) -o prt prt.o ../com/comobj.a $(LIBS) alloc.o -lcompat
6515762Sralph
6615762Sralphprt.o:		prt.c ../hdr/defines.h ../hdr/had.h
6715763Sralph	$(CC) -c $(CFLAGS) prt.c
6815762Sralph
6919943Ssamprs:	prs.o ../com/comobj.a alloc.o
70*40850Sbostic	$(CC) -o prs prs.o ../com/comobj.a $(LIBS) alloc.o -lcompat
7115762Sralph
7215763Sralphprs.o:		prs.c ../hdr/defines.h ../hdr/had.h
7315763Sralph	$(CC) -c $(CFLAGS) prs.c
7415763Sralph
7515762Sralphchghist:	rmchg
7615762Sralph	-rm -f chghist
7715762Sralph	ln rmchg chghist
7815762Sralph
7915762Sralphrmdel:	rmchg
8015762Sralph	-rm -f rmdel
8115762Sralph	ln rmchg rmdel
8215762Sralph
8319943Ssamrmchg:	rmchg.o ../com/comobj.a alloc.o
84*40850Sbostic	$(CC) -o rmchg rmchg.o ../com/comobj.a $(LIBS) alloc.o -lcompat
8515762Sralph
8615762Sralphrmchg.o:	rmchg.c ../hdr/defines.h ../hdr/had.h
8715763Sralph	$(CC) -c $(CFLAGS) rmchg.c
8815762Sralph
8919943Ssamwhat:	what.o ../com/comobj.a alloc.o
9019943Ssam	$(CC) -o what what.o ../com/comobj.a $(LIBS) $(LIBES) alloc.o
9115762Sralph
9215762Sralphwhat.o:		what.c ../hdr/defines.h ../hdr/had.h
9315763Sralph	$(CC) -c $(CFLAGS) what.c
9415762Sralph
9519943Ssamval:	val.o ../com/comobj.a alloc.o
9619943Ssam	$(CC) -o val val.o ../com/comobj.a $(LIBS) $(LIBES) alloc.o
9715762Sralph
9815762Sralphval.o:	val.c ../hdr/defines.h ../hdr/had.h
9915763Sralph	$(CC) -c $(CFLAGS) val.c
10015762Sralph
10115763Sralph../com/comobj.a:
10215763Sralph	chdir ../com; make comobj.a
10315762Sralph
10415763Sralphclean:
10515763Sralph	rm -f *.o
10615763Sralph	rm -f admin bdiff chghist comb scv delta get help prt rmdel \
10715763Sralph	    what val snull cmt rmchg prs
10815762Sralph
10915763Sralphinstall: all
11015763Sralph	install -s admin ${DESTDIR}/usr/local
11115763Sralph	install -s bdiff ${DESTDIR}/usr/local
11215763Sralph	install -s chghist ${DESTDIR}/usr/local
11315763Sralph	rm -f ${DESTDIR}/usr/local/rmdel ${DESTDIR}/usr/local/rmchg
11415763Sralph	ln ${DESTDIR}/usr/local/chghist ${DESTDIR}/usr/local/rmchg
11515763Sralph	ln ${DESTDIR}/usr/local/chghist ${DESTDIR}/usr/local/rmdel
11615763Sralph	install -s comb ${DESTDIR}/usr/local
11715763Sralph	install -s delta ${DESTDIR}/usr/local
11815763Sralph	install -s help ${DESTDIR}/usr/local
11915763Sralph	install -s prt ${DESTDIR}/usr/local
12015763Sralph	install -s prs ${DESTDIR}/usr/local
12115763Sralph	install -c sccsdiff.sh ${DESTDIR}/usr/local/sccsdiff
12215763Sralph	install -s what ${DESTDIR}/usr/local
12315763Sralph	install -s val ${DESTDIR}/usr/local
12415763Sralph	install -s snull ${DESTDIR}/usr/local
12515763Sralph	install -s get ${DESTDIR}/usr/local
12615763Sralph#	install -s scv ${DESTDIR}/usr/local
127