lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


At 23:06 07/04/2003 -0300, you wrote:
On Mon, 07 Apr 2003 11:14:56 -0300
Ariel Manzur <listas@anime.com.ar> wrote:

> This is what I added in my Makefile (on src/bin):
(...)
>
> tolualua.c: $(SCRIPTS)
>          tolua -H tolualua.h -o tolualua.c tolualua.pkg

I assume this works only when reading the scripts at runtime,
rather than embedding them into tolualua.h (like in the original
build)... right?

no, this is to create 'tolualua.c' and 'tolualua.h', wich is basically a big char array with all the strings from the scripts (take a look at tolualua.c; tolualua.h is just the header). it will enbed all the code on the binary, at build time.. This is probably how they do the original build (I never used bin2c and the other tool Nick Trout mentions).

Ariel.


Ariel.
http://Anime.com.ar
snm