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