############################################################################
#
# MODULE:  makefile
#
############################################################################
#
# Abstract:
#    Commands to generate the CParaOPS5 compiler.
#
############################################################################
#
# CParaOPS5
# Change Log:
#    16 Aug 89 V5.0  Anurag Acharya
#                    Added this header.
#
# Copyright (c) 1986, 1987, 1988, 1989 Carnegie-Mellon University
# All rights reserved.  The CMU software License Agreement
# specifies the terms and conditions for use and redistribution.
#
############################################################################

cops5: extern.o ops5.o literal.o cmplhs.o cmprhs.o gencode.o printops.o y.tab.o lex.yy.o
	cc $(CFLAGS) extern.o ops5.o literal.o cmplhs.o cmprhs.o gencode.o printops.o y.tab.o lex.yy.o -ll -o cops5


cmplhs.o: cmplhs.c defs.h

cmprhs.o: cmprhs.c defs.h

gencode.o: gencode.c defs.h

extern.o: extern.c defs.h

ops5.o:	ops5.c defs.h

literal.o: literal.c defs.h

printops.o: printops.c defs.h

y.tab.o: y.tab.c defs.h

y.tab.c: ops5.yacc
	yacc -d ops5.yacc

lex.yy.o: lex.yy.c defs.h y.tab.h

lex.yy.c: ops5.lex
	lex ops5.lex

