# Makefile for the Core Join Calculus Compiler cjcc 
# Copyright (C) 1996, 1997, 2004 Peter Selinger 
# This is free software under the terms of the GNU General Public License. 

all: cjcc

cjcc: join.tab.c types.h datatypes.c semantics.c header.sc
cjcc: serverdef.sc serverinc.sc lex.yy.c main.c

join.tab.c: join.y

lex.yy.c: join.lex

cjcc:
	gcc -o cjcc join.tab.c -ll

join.tab.c:
	bison join.y

lex.yy.c:
	lex join.lex

clean: 
	rm -f join.tab.c lex.yy.c cjcc 
