projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2004-08-12 12:12:54 by simonmar]
[ghc-hetmet.git]
/
ghc
/
utils
/
hsc2hs
/
Makefile
diff --git
a/ghc/utils/hsc2hs/Makefile
b/ghc/utils/hsc2hs/Makefile
index
94ed548
..
2ea5786
100644
(file)
--- a/
ghc/utils/hsc2hs/Makefile
+++ b/
ghc/utils/hsc2hs/Makefile
@@
-1,4
+1,6
@@
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
+# To compile with nhc98 on unix:
+# nhc98 -cpp -package base -o hsc2hs-bin Main.hs
TOP=../..
include $(TOP)/mk/boilerplate.mk
TOP=../..
include $(TOP)/mk/boilerplate.mk
@@
-22,7
+24,10
@@
ifeq "$(ghc_ge_504)" "NO"
SRC_HC_OPTS += -package util
endif
SRC_HC_OPTS += -package util
endif
-SRC_HC_OPTS += -Wall -cpp '-DEXEEXT="$(exeext)"'
+# Note: Somehow we should pass $(exeext) here, but the history of changes used
+# for calling the C preprocessor via GHC has changed a few times, making a
+# clean solution impossible. So we revert to a hack in Main.hs...
+SRC_HC_OPTS += -Wall
ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
SRC_HC_OPTS += -Dmingw32_HOST_OS=1
endif
ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
SRC_HC_OPTS += -Dmingw32_HOST_OS=1
endif