X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Flisp%2FMakefile;h=25796ec530b1e1c17e28c5fd28b1710e39fcc079;hb=6fb817f218a69b28973b0d059d71809717b1e2d1;hp=9e2fb58c0fdcb6a9e1dd6fc96df0a5b27197da8a;hpb=11cb03b1d336ee90c422be27588f57be573a9546;p=fw%2Faltos diff --git a/src/lisp/Makefile b/src/lisp/Makefile index 9e2fb58c..25796ec5 100644 --- a/src/lisp/Makefile +++ b/src/lisp/Makefile @@ -4,28 +4,17 @@ clean: rm -f ao_lisp_const.h $(OBJS) ao_lisp_make_const ao_lisp_const.h: ao_lisp_const.lisp ao_lisp_make_const - ./ao_lisp_make_const < ao_lisp_const.lisp > $@ - -SRCS=\ - ao_lisp_make_const.c\ - ao_lisp_mem.c \ - ao_lisp_cons.c \ - ao_lisp_string.c \ - ao_lisp_atom.c \ - ao_lisp_int.c \ - ao_lisp_poly.c \ - ao_lisp_prim.c \ - ao_lisp_builtin.c \ - ao_lisp_read.c \ - ao_lisp_frame.c + ./ao_lisp_make_const -o $@ ao_lisp_const.lisp + +include Makefile-inc +SRCS=$(LISP_SRCS) + +HDRS=$(LISP_HDRS) OBJS=$(SRCS:.c=.o) -CFLAGS=-DAO_LISP_MAKE_CONST -O0 -g +CFLAGS=-DAO_LISP_MAKE_CONST -O0 -g -I. -Wall -Wextra -no-pie -HDRS=\ - ao_lisp.h \ - ao_lisp_read.h ao_lisp_make_const: $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS)