altos/scheme: Add vector and string funcs. Test everybody.
[fw/altos] / src / scheme / 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 SRCS=$(SCHEME_SRCS) ao_scheme_test.c
10 HDRS=$(SCHEME_HDRS) ao_scheme_const.h
11
12 OBJS=$(SRCS:.c=.o)
13
14 #PGFLAGS=-pg -no-pie
15 OFLAGS=-O3
16 #DFLAGS=-O0
17
18 CFLAGS=$(DFLAGS) $(OFLAGS) $(PGFLAGS) -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
19
20 ao-scheme: $(OBJS)
21         cc $(CFLAGS) -o $@ $(OBJS) -lm
22
23 $(OBJS): $(HDRS)
24
25 ao_scheme_const.h: ao_scheme_make_const $(SCHEME_SCHEME)
26         $^ -o $@
27
28 clean::
29         rm -f $(OBJS) ao-scheme ao_scheme_const.h
30
31 install: ao-scheme
32         install -t $$HOME/bin $^