# (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. 
# Makefile for the automatic C function interface generator

# SCCS Info: @(#)Makefile	1.2 3/13/90

all:	symtab.o mcyacc.o mclex.o misc.o foo


mcyacc.o: mcyacc.c minic.h

mctokens.h mcyacc.c: minic.y
	yacc -d minic.y
	mv y.tab.c mcyacc.c
	mv y.tab.h mctokens.h

mclex.o: mclex.c minic.h mctokens.h reswords.h

mclex.c: minic.l
	lex -t minic.l > mclex.c

symtab.o: symtab.c minic.h

misc.o: misc.c minic.h

minic.h: expr.h symtab.h ctype.h


foo: foo.c
	$(CC) -o foo foo.c
