Add more flexibility in how whitespace is specified.
[gazelle.git] / Makefile
blob3910eebe7b80c15af9bb4c7fa70d55a4eaf83b62
2 export CC=gcc
3 export AR=ar
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
9 .PHONY: $(TARGETS)
11 default: lua_path
12 @for dir in $(SUBDIRS) ; do $(MAKE) -w -C $$dir $@; done
14 all: lua_path doc
15 @for dir in $(ALLSUBDIRS) ; do $(MAKE) -w -C $$dir $@; done
17 doc: docs
18 docs:
19 @$(MAKE) -w -C docs
21 clean:
22 rm -f lua_path *.dot *.png docs/manual.html docs/*.png
23 @for dir in $(ALLSUBDIRS) ; do make -w -C $$dir $@; done
25 lua_path: Makefile
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
29 test:
30 for test in tests/test*.lua; do lua $$test; done