# (C) Copyright International Business Machines Corporation 23 January 
# 1990.  All Rights Reserved. 
#  
# See the file USERAGREEMENT distributed with this software for full 
# terms and conditions of use. 
# File: Makefile
# Author: Andy Lowry
# SCCS Info: @(#)Makefile	1.3 3/13/90

# Make file for the plumber


EXTDOBJ = plumber.do plumbing.do makepipe.do stdio.do stringpipe.do \
	  booleanpipe.do
INTDOBJ = plumberint.do launcher.do acpipe.do
DEFOBJS = $(EXTDOBJ) $(INTDOBJ)

APPLS =	catargv.po termdisplay.po cat.po stdin2string.po string2stdout.po \
	dupestrings.po addprefix.po matchstrings.po dupebooleans.po \
	complement.po selectstrings.po
PIPES =	makestdiopipe.po makestringpipe.po makebooleanpipe.po
EXTPOBJ = plumber.po $(APPLS) $(PIPES)
INTPOBJ = launcher.po acpipe.po
PROCOBJS = $(EXTPOBJ) $(INTPOBJ)

include ../../make/includefile

all:	compiledefs compileprocs

install: all
	cp $(EXTPOBJ) $(PROCDIR)
	cp $(EXTDOBJ) $(DEFDIR)

launcher.po: 	launcher.do
makestdiopipe.po: makepipe.do stdio.do
makestringpipe.po: makepipe.do stringpipe.do
makebooleanpipe.po: makepipe.do booleanpipe.do
plumber.po:	plumber.do plumberint.do plumbing.do makepipe.do launcher.do
acpipe.po:	makepipe.do
catargv.po:	stdio.do
cat.po:		stdio.do
termdisplay.po:	stdio.do
stdin2string.po: stdio.do stringpipe.do
string2stdout.po: stdio.do stringpipe.do
dupestrings.po:	stringpipe.do
addprefix.po:	stringpipe.do
matchstrings.po: stringpipe.do booleanpipe.do
dupebooleans.po: booleanpipe.do
complement.po: 	booleanpipe.do
selectstrings.po: stringpipe.do booleanpipe.do

plumber.po:	launcher.po acpipe.po

plumber.do:	plumbing.do acpipe.do
plumberint.do:	plumbing.do
plumbing.do:	makepipe.do

clean:
	rm -f $(DEFOBJS) $(PROCOBJS)
