altos/scheme: Allow unicode in lexer
[fw/altos] / src / scheme / tiny-test / Makefile
1 include ../Makefile-inc
2
3 vpath %.o .
4 vpath %.c ..
5 vpath ao_scheme_test.c ../test
6 vpath %.h ..
7 vpath %.scheme ..
8 vpath ao_scheme_make_const ../make-const
9
10 DEFS=
11
12 SRCS=$(SCHEME_SRCS) ao_scheme_test.c
13 HDRS=$(SCHEME_HDRS) ao_scheme_const.h
14
15 OBJS=$(SRCS:.c=.o)
16
17 CFLAGS=-O0 -g -Wall -Wextra -I. -I.. -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
18
19 ao-scheme-tiny: $(OBJS)
20         cc $(CFLAGS) -o $@ $(OBJS) -lm
21         ./ao-scheme-tiny ao_scheme_tiny_test.scheme
22
23 $(OBJS): $(HDRS)
24
25 ao_scheme_const.h: ao_scheme_make_const ao_scheme_basic_syntax.scheme ao_scheme_finish.scheme
26         $^ -o $@ -d FLOAT,VECTOR,QUASI,BIGINT,PORT,POSIX,GPIO,UNDEF
27
28 clean::
29         rm -f $(OBJS) ao-scheme-tiny ao_scheme_const.h
30
31 install: ao-scheme-tiny
32         cp $^ $$HOME/bin