[project @ 1998-01-14 11:22:21 by sof]
[ghc-hetmet.git] / ghc / utils / ugen / Makefile
1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.7 1998/01/14 11:22:24 sof 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 SRC_FLEX_OPTS += -s
15
16 #
17 # Include flex & bison output in the source distribution.
18 #
19 SRC_DIST_FILES+= lex.c syntax.tab.c syntax.tab.h
20
21 include $(TOP)/mk/target.mk
22
23 #
24 # Needed quite early in the booting of the compiler, so
25 # build it right away.
26 #
27 boot :: all