петък, 24 юли 2009 г.

Installing icmake on MAC OS X

> wget http://downloads.sourceforge.net/project/icmake/icmake/7.12.2/icmake_7.12.2.orig.tar.gz?use_mirror=switch

> tar xzvf icmake_7.12.2.orig.tar.gz

> cd icmake_7.12.2

Edit the file INSTALL.im and replace the last lines that begin with "#define" to look like this:
--
export BINDIR="usr/bin"
export SKELDIR="usr/share/icmake"
export MANDIR="usr/share/man"
export LIBDIR="usr/lib/icmake"
export CONFDIR="etc/icmake"
export DOCDIR="usr/share/doc/icmake"
export DOCDOCDIR="usr/share/doc/icmake-doc"
--
(Why? A "cat" is done on INSTALL.im by icm_boostrap, so I have no idea why #defined is used, in a (bash) shell export of the variables is necessary.)


Edit the file "comp/lexer.c" and remove the line:

#define __STDC_VERSION__ 199901L

This line prevents lexer.c from being properly compiled.


> ./icm_bootstrap /usr/local/icmake-7.12.2

> sudo ./icm_install all

Няма коментари:

Публикуване на коментар