[project @ 1999-01-15 15:57:33 by simonm]
[ghc-hetmet.git] / ghc / compiler / Makefile
index b90208a..8104039 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.47 1998/12/10 08:54:18 simonpj Exp $
+# $Id: Makefile,v 1.49 1999/01/14 16:59:51 sof Exp $
 
 TOP = ..
 include $(TOP)/mk/boilerplate.mk
@@ -94,6 +94,18 @@ SRCS_UGN_OBJS = $(patsubst %.c, %.o, $(SRCS_UGNC))
 # generate correct dependencies for them.
 #
 C_SRCS += $(SRCS_UGNC)
+#
+# Add misc .c helper code (used by the frontend.)
+#
+C_SRCS += parser/ctypes.c parser/hschooks.c parser/hsclink.c \
+          parser/id.c parser/infix.c parser/main.c parser/printtree.c \
+         parser/syntax.c parser/type2context.c parser/util.c
+
+#
+# Big Fudge to get around inherent problem that Makefile setup
+# has got with 'mkdependC'.
+# 
+SRC_MKDEPENDC_OPTS += -D__GLASGOW_HASKELL__=$(ProjectVersionInt)
 
 LIBOBJS = \
   $(SRCS_UGN_OBJS) parser/hslexer.o parser/hsparser.tab.o \
@@ -178,7 +190,7 @@ reader/Lex_HC_OPTS          = -K2m -H16m -fvia-C
 # Heap was 6m with 2.10
 reader/ReadPrefix_HC_OPTS      = -fvia-C '-\#include"hspincl.h"' -H10m
 
-rename/ParseIface_HC_OPTS      += -Onot -H30m -fno-warn-incomplete-patterns
+rename/ParseIface_HC_OPTS      += -Onot -H45m -fno-warn-incomplete-patterns
 rename/ParseIface_HAPPY_OPTS    += -g
 
 ifeq "$(TARGETPLATFORM)" "hppa1.1-hp-hpux9"