############################################################################
# RCS INFORMATION:
#
# 	$RCSfile: Makefile,v $
# 	$Author: jyelon $	$Locker:  $		$State: Exp $
#	$Revision: 1.3 $	$Date: 1995/05/04 16:54:18 $
#
############################################################################
# DESCRIPTION:
#
############################################################################
# REVISION HISTORY:
#
# $Log: Makefile,v $
# Revision 1.3  1995/05/04  16:54:18  jyelon
# *** empty log message ***
#
# Revision 1.2  1995/04/14  04:18:51  milind
# changed cc to gcc. Otherwise charm++ translator wont compile.
#
# Revision 1.1  1994/11/07  16:09:04  brunner
# Initial revision
#
############################################################################
CC = gcc
FL = -O

all: translate++ spacefilter++

translate++:process.o table.o y.tab.o lex.yy.o 
	$(CC) $(FL) lex.yy.o y.tab.o process.o table.o -o translate++

process.o: process.c t.h externs.h
	   $(CC) -c $(FL) process.c

table.o: table.c t.h externs.h
	   $(CC) -c $(FL) table.c

# some compilers crash when compiling y.tab.c and lex.yy.c with -O
lex.yy.o: lex.yy.c t.h y.tab.h externs.h
	  $(CC) -c lex.yy.c

y.tab.o: y.tab.c t.h
	 $(CC) -c y.tab.c

spacefilter++:    space.tmp.c 
		$(CC) $(FL) -o spacefilter++ space.tmp.c

clean:
	rm -f *.o translate++ spacefilter++
