How do I add new dependencies and source files into the build system?

I have added a subdirectory named verify to the compiler directory, and made a change to simplCore to call functions from it. I have managed to get it to compile by editing ghc.cabal in the compiler directory (after some problems with cabal which are now sorted). But I think this is not the correct way to do it, as ./configure rebuilds this file, it seems. Where should I be doing this? -- Colin Adams Preston Lancashire

Hello Colin,
I believe you should edit compiler/ghc.cabal.in -- I believe this file
is the input for cabal and used to create the ghc.cabal which gets
re-created at ./configure.
Also, you may want to look into Ways (compiler/main/StaticFlags.hs and
mk/config.mk.in) if you plan on adding any compile-time (static)
flags.
Hope that helps.
--
Donnie Jones
On Sun, Mar 22, 2009 at 8:09 AM, Colin Paul Adams
I have added a subdirectory named verify to the compiler directory, and made a change to simplCore to call functions from it.
I have managed to get it to compile by editing ghc.cabal in the compiler directory (after some problems with cabal which are now sorted). But I think this is not the correct way to do it, as ./configure rebuilds this file, it seems.
Where should I be doing this? -- Colin Adams Preston Lancashire _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

"Donnie" == Donnie Jones
writes:
Donnie> Hello Colin, I believe you should edit Donnie> compiler/ghc.cabal.in -- I believe this file is the input Donnie> for cabal and used to create the ghc.cabal which gets Donnie> re-created at ./configure. Donnie> Also, you may want to look into Ways Donnie> (compiler/main/StaticFlags.hs and mk/config.mk.in) if you Donnie> plan on adding any compile-time (static) flags. Donnie> Hope that helps. -- Donnie Jones Yes, thanks. -- Colin Adams Preston Lancashire
participants (2)
-
Colin Paul Adams
-
Donnie Jones