altos/lisp: Add scheme-style bools (#t and #f)
[fw/altos] / src / lisp / Makefile
index 25796ec530b1e1c17e28c5fd28b1710e39fcc079..4563dad358643694184825f54c75824ced9c8fb3 100644 (file)
@@ -1,13 +1,16 @@
-all: ao_lisp_const.h
+all: ao_lisp_builtin.h ao_lisp_const.h
 
 clean:
-       rm -f ao_lisp_const.h $(OBJS) ao_lisp_make_const
+       rm -f ao_lisp_const.h ao_lisp_builtin.h $(OBJS) ao_lisp_make_const
 
 ao_lisp_const.h: ao_lisp_const.lisp ao_lisp_make_const
        ./ao_lisp_make_const -o $@ ao_lisp_const.lisp
 
+ao_lisp_builtin.h: ao_lisp_make_builtin ao_lisp_builtin.txt
+       nickle ./ao_lisp_make_builtin ao_lisp_builtin.txt > $@
+
 include Makefile-inc
-SRCS=$(LISP_SRCS)
+SRCS=$(LISP_SRCS) ao_lisp_make_const.c
 
 HDRS=$(LISP_HDRS)
 
@@ -15,7 +18,6 @@ OBJS=$(SRCS:.c=.o)
 
 CFLAGS=-DAO_LISP_MAKE_CONST -O0 -g -I. -Wall -Wextra -no-pie
 
-
 ao_lisp_make_const:  $(OBJS)
        $(CC) $(CFLAGS) -o $@ $(OBJS)