Commit 85b5efb6 authored by rrt's avatar rrt
Browse files

[project @ 2000-11-21 12:32:55 by rrt]

Added rules for GreenCard.
parent 1a61eca6
......@@ -5,7 +5,7 @@
# This file defines Make variables for the
# option flags for each utility program
#
# $Id: opts.mk,v 1.15 2000/05/09 15:37:08 rrt Exp $
# $Id: opts.mk,v 1.16 2000/11/21 12:32:55 rrt Exp $
#
#################################################################################
......@@ -57,11 +57,12 @@ SRC_INSTALL_BIN_OPTS += -s
SRC_LINT_OPTS += -axz -DLINT $(SRC_CPP_OPTS)
WAY$(_way)_LINT_OPTS += WAY$(_way)_CPP_OPTS
#
# Default fptools options for dllwrap.
#
SRC_BLD_DLL_OPTS += -mno-cygwin --target=i386-mingw32
# Flags for CPP when running GreenCard on .pgc files
GC_CPP_OPTS += -D__GLASGOW_HASKELL__
#################################################################################
#
......
......@@ -110,12 +110,17 @@ endif
# Green-card Suffix Rules
#
.PRECIOUS: %.gc
%.hs : %.gc
$(GREENCARD) $(GREENCARD_OPTS) $< -o $@
%.lhs : %.gc
$(GREENCARD) $(GREENCARD_OPTS) $< -o $@
%.gc : %.pgc
$(CPP) $(GC_CPP_OPTS) $< | perl -pe 's#\\n#\n#g' > $@
#-----------------------------------------------------------------------------
# C-related suffix rules
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment