[project @ 1997-09-05 09:16:19 by simonm]
[ghc-hetmet.git] / ghc / utils / ugen / Makefile
1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.6 1997/09/05 09:16:35 simonm Exp $
3
4 TOP=../..
5 include $(TOP)/mk/boilerplate.mk
6
7 YACC_OPTS += -d
8 C_SRCS = syntax.tab.c lex.c id.c tree.c yyerror.c gen.c main.c
9 C_PROG = ugen
10 LIBS = $(FLEX_LIB)
11
12 CLEAN_FILES += syntax.tab.c syntax.tab.h lex.c
13 SRC_CC_OPTS += -O
14
15 #
16 # Include flex & bison output in the source distribution.
17 #
18 SRC_DIST_FILES+= lex.c syntax.tab.c syntax.tab.h
19
20 include $(TOP)/mk/target.mk
21
22 #
23 # Needed quite early in the booting of the compiler, so
24 # build it right away.
25 #
26 boot :: all