I'd like to integrate the building of GreenCard and the Win32 library more closely with the GHC build system, for ease of building. These are both used with Hugs (correct?) and hence presumably (unless you no longer use the versions in the fptools CVS tree) you probably don't want me just to strip out all the Hugs-related build stuff. On the other hand, I'd like to take advantage of GHC's build system, and integrate into that... Have you any suggestions on what's the nicest thing I could do? The minimum sensible is just a couple of tweaks to the files so that at least everything is built automatically as part of a GHC build, but that would just allow you to comment out a couple of lines to build for Hugs (in much the same way as I presume you do at the moment). -- http://sc3d.org/rrt/ | Caution Children At Play Drive Slowly
These are both used with Hugs (correct?) and hence presumably (unless you no longer use the versions in the fptools CVS tree) you probably don't want me just to strip out all the Hugs-related build stuff.
Yes and yes. (Though the amount of makefile support required for plain GreenCard with Hugs/runhugs is fairly minimal.) In particular, they are used to build the Hugs Graphics Library both on Win32 and (GreenCard only) X11. Now that Hugs supports the ffi spec (I committed the changes to the main tree late last night), I'd like to see the greencard dependency go away - but, given the size of Win32 and Xlib, that isn't going to happen overnight.
On the other hand, I'd like to take advantage of GHC's build system, and integrate into that...
Have you any suggestions on what's the nicest thing I could do?
What we used to do was to have two makefiles: GNUMakefile (or just Makefile) and Makefile.hugs. It's a little tedious keeping them in step but not too bad. If there was a lot of overlap between the two makefiles, you could factor it out into a Makerules file. -- Alastair
participants (2)
-
Alastair Reid -
Reuben Thomas