# (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: David F. Bacon
# SCCS info: @(#)Makefile	1.5 3/13/90 

# Format services modules
PFILES	=	fmtattr.p fmtfmlattr.p fmtroot.p fmtattrname.p \
		fmtfmlts.p fmtcomps.p fmtobject.p fmttype.p fmtts.p \
		fmtstmt.p fmtopcode.p getformatters.p printdef.p
PROCOBJS =	fmtattr.po fmtfmlattr.po fmtroot.po fmtattrname.po \
		fmtfmlts.po fmtcomps.po fmtobject.po fmttype.po fmtts.po \
		fmtstmt.po fmtopcode.po getformatters.po printdef.po


include ../../make/includefile

INTERFACE =	../../interface

# targets

all:	$(PFILES) compileprocs
install: all
	cp getformatters.po printdef.po $(PROCDIR)

# fmtopcode.p is generated from the operator table built in interface
fmtopcode.p: fmtopcode.pp fmtopcode.body

fmtopcode.body: $(INTERFACE)/operator.table fmtopcode.awk
	awk -f fmtopcode.awk $(INTERFACE)/operator.table > fmtopcode.body

# Other dependencies
printdef.po:	getformatters.po
getformatters.po: fmtattr.po fmtfmlattr.po fmtroot.po fmtattrname.po \
		fmtfmlts.po fmtcomps.po fmtobject.po fmttype.po fmtts.po \
		fmtstmt.po fmtopcode.po

# cleanup

clean:
	rm -f *~ $(PROCOBJS) fmtopcode.body fmtopcode.p
