[project @ 2000-07-11 16:04:38 by simonmar]
[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   cd ghc
19   autoconf
20   cd ..
21   autoconf
22   ./configure --host=i386-unknown-mingw32 --enable-win32-dlls
23
24 Then
25
26   make boot
27
28 Then
29
30   cd ghc/rts/gmp/mpn/generic
31   for f in *.c *.h ; do echo $f ; rm -f ../$f ; cp $f ../$f ; done
32   # because mingw32 doesn't understand the symlinks that GMP makes
33   # during make boot
34
35   cd ../../..
36   make
37   cd ../utils
38   make boot
39   make
40   cd ../interpreter
41   make
42
43