fptools/libraries/OpenGL/specs/enumerant/Makefile
Sven Panne
Sven.Panne@informatik.uni-muenchen.de
Thu, 12 Jun 2003 16:27:04 +0200
Ian Lynagh wrote:
> [...] (The reason I noticed this is that building with profiling and
> OpenGL without the profiling libraries installed fails when it tries
> to use the installed compiler to compile the profiling version
> (should this even happen?). It compiles fine with the above change
> reverted).
In a nutshell: fptool/libraries/OpenGL/Makefile doesn't descend into
the spec subdir anymore (since rev. 1.24), so this is a problem of the
past...
Long story: Originally I planned to generate the lowest level of the
OpenGL binding (data types, foreign imports + some trivial marshaling)
automatically from the OpenGL .spec files, but this turned out to be
infeasible:
* The hard parts are getting the user API "right" and writing useful
documentation, which both turned out to be cumbersome with an
automated process.
* The .spec files' typing is much better than the one found in
OpenGL's C binding, but still too weak for Haskell.
* Getting the Makefiles right seemed to be extremely difficult (as you
have already experienced :-), probably it could have been done by
moving the .spec file converters out of the OpenGL subdir.
Cheers,
S.