4 export CFLAGS
=-Wall
-g
-O6
-std
=c99
5 SUBDIRS
=runtime lang_ext utilities
6 ALLSUBDIRS
=$(SUBDIRS
) docs
7 TARGETS
=all clean docs doc default
12 @for
dir in
$(SUBDIRS
) ; do
$(MAKE
) -w
-C
$$dir $@
; done
15 @for
dir in
$(ALLSUBDIRS
) ; do
$(MAKE
) -w
-C
$$dir $@
; done
22 rm -f lua_path
*.dot
*.png docs
/manual.html docs
/*.png
23 @for
dir in
$(ALLSUBDIRS
) ; do make
-w
-C
$$dir $@
; done
26 echo
"export LUA_PATH=`pwd`/compiler/?.lua\\;`pwd`/sketches/?.lua\\;`pwd`/tests/?.lua" > lua_path
27 echo
export LUA_CPATH
=`pwd`/lang_ext
/lua
/?.so
>> lua_path
30 for
test in tests
/test*.lua
; do lua
$$test; done