f1ed1b13034f7336118989c6c328b1b4df8a765f
[ghc-hetmet.git] / ghc / utils / ugen / Makefile
1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.5 1997/09/03 23:28:47 sof Exp $
3
4 TOP=../..
5 include $(TOP)/mk/boilerplate.mk
6 override WAYS=
7
8 YACC_OPTS += -d
9 C_SRCS = syntax.tab.c lex.c id.c tree.c yyerror.c gen.c main.c
10 C_PROG = ugen
11 LIBS = $(FLEX_LIB)
12
13 CLEAN_FILES += syntax.tab.c syntax.tab.h lex.c
14 SRC_CC_OPTS += -O
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