altos/scheme: Add ports. Split scheme code up.
[fw/altos] / src / scheme / tiny-test / Makefile
1 include ../Makefile-inc
2
3 vpath %.o .
4 vpath %.c ..
5 vpath %.h ..
6 vpath %.scheme ..
7 vpath ao_scheme_make_const ../make-const
8
9 DEFS=
10
11 SRCS=$(SCHEME_SRCS) ao_scheme_test.c
12 HDRS=$(SCHEME_HDRS) ao_scheme_const.h
13
14 OBJS=$(SRCS:.c=.o)
15
16 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
17
18 ao-scheme-tiny: $(OBJS)
19         cc $(CFLAGS) -o $@ $(OBJS) -lm
20
21 $(OBJS): $(HDRS)
22
23 ao_scheme_const.h: ao_scheme_make_const ao_scheme_basic_syntax.scheme ao_scheme_finish.scheme
24         $^ -o $@ -d FLOAT,VECTOR,QUASI,BIGINT,PORT,POSIX,GPIO,UNDEF
25
26 clean::
27         rm -f $(OBJS) ao-scheme-tiny ao_scheme_const.h
28
29 install: ao-scheme-tiny
30         cp $^ $$HOME/bin