FranTK

Johannes Waldmann joe@isun.informatik.uni-leipzig.de
Thu, 8 Feb 2001 15:09:12 +0100 (MET)


> want to install FranTk so other people can use it. I'm not sure
> this is possible.

sure it is .. and it is rather easy to make it known to ghc
(so that -syslib frantk works). just add these lines to the driver script
(around line 2740, where all the other syslib entries live)

       frantk,
        [  # where to find the archive to use when linking
          ( $INSTALLING 
               ? "$InstLibDirGhc"
               : "$TopPwd/hslibs/frantk"
          )
        , # no cbits archive
          ''
        , 'lang data concurrent' # Syslib dependencies
        , '' # extra ghc opts
        , '' # extra cc opts
        , '-ltk8.0 -ltcl8.0 -lX11 -lm -ldl'     # extra ld opts
             # where to slurp interface files from
        , ( $INSTALLING 
               ? ( "$InstLibDirGhc/imports/frantk" )
               : ( "$TopPwd/hslibs/frantk" )
          )
        ],

and move all the hi files to $TopPwd/imports/frantk, 
and libfrantk.a to $TopPwd/libHSfrantk.a

by the way, if you use `hmake', be sure to set GHCINCDIR and GHCINCPATH
so that it knows about ghc's interface files.

then, you can use  `hmake "-syslib frantk" Foo'  to make your project.
(i think you need the double quotes.)


best regards
-- 
-- Johannes Waldmann ---- http://www.informatik.uni-leipzig.de/~joe/ --
-- joe@informatik.uni-leipzig.de -- phone/fax (+49) 341 9732 204/252 --