# /usr/src/ucb/dsh/Makefile for MacMach

include /usr/src/COPYRIGHTS

#   Make the user command and the bidding program

all:	dbid dsh

dbid: getloadave.o getpath.o dbid.o error.o getrc.o ipc.o
	cc getloadave.o getpath.o dbid.o error.o getrc.o ipc.o -o dbid

dsh: dsh.o error.o getrc.o ipc.o getwd.o getbids.o
	cc -o dsh dsh.o error.o getrc.o ipc.o getwd.o getbids.o

dbid.o: dsh.h dbid.h
getbids.o: dsh.h dbid.h
dsh.o: dsh.h

#   install them
install: FRC
	install -c -s -g kmem -m 2755 dbid ${DESTDIR}/usr/ucb/dbid
	install -c -s dsh ${DESTDIR}/usr/ucb/dsh

#   clean out the reproducible files
clean:	FRC
	rm -f .depend *.o dbid dsh

compress: clean
	find . -type f ! -name Makefile ! -name '*.Z' -exec compress {} \;

uncompress: FRC
	find . -type f ! -name Makefile -name '*.Z' -exec uncompress {} \;

FRC:
