[project @ 2000-06-13 15:35:29 by sof]
[ghc-hetmet.git] / ghc / interpreter / README.BUILDING.HUGS
1
2 These insns are for building Hugs on mingw32.  We don't want no
3 cygwin no more :)
4
5 You need to have a fptools/mk/build.mk which looks like this in 
6 order to build Hugs which has a hope of working in combined mode.
7
8 WithGhcHc=ghc-4.06      # or whatever; version not v. important
9 GhcLibWays=u            # essential
10 GhcHcOpts=-DDEBUG -fasm-x86    # -fasm-x86 is optional
11 GhcRtsHcOpts=-optc-DDEBUG -optc-D__HUGS__ -unreg -optc-g
12 GhcRtsCcOpts=-optc-DDEBUG -optc-g -optc-D__HUGS__
13 SplitObjs=NO            # essential
14
15
16 Then you need to configure like this:
17
18   ./configure --host=i386-unknown-mingw32 --enable-win32-dlls
19
20 Then
21
22   make boot
23
24 Then
25
26   cd ghc/rts/gmp/mpn/generic
27   for f in *.c *.h ; do echo $f ; rm -f ../$f ; cp $f ../$f ; done
28   # because mingw32 doesn't understand the symlinks that GMP makes
29   # during make boot
30
31   cd ../../..
32   make
33   cd ../utils
34   make boot
35   make
36   cd ../interpreter
37   make
38
39