diff options
| author | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2026-01-18 18:39:19 +0100 |
|---|---|---|
| committer | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2026-01-18 18:39:19 +0100 |
| commit | 31e9a82704455dd92cfeef878456493c47cac63b (patch) | |
| tree | ab880b2187aab536655db80aaaa668ae3d575740 /Makefile | |
| parent | 07cd615c7e1cafccd6d46b3eb68d413f2a2dd9a5 (diff) | |
factor out basic standard procedures (+, -, cons, car...) into separate module
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,9 +8,10 @@ OBJS = lisp.o lisp.tab.o lex.yy.o MODULE_LIBS = -lpq MODULE_SRC = $(wildcard modules/*.c) MODULE_SO = $(MODULE_SRC:.c=.so) +STD_MODULES = modules/std_lib.so .SUFFIXES: -main: main.c $(OBJS) +main: main.c $(OBJS) $(STD_MODULES) $(CC) $(CFLAGS) -o $@ main.c $(OBJS) $(LIBS) lisp.o: lisp.c lisp_api.h lisp.h lex.yy.o @@ -31,7 +32,7 @@ lex.yy.o: lex.yy.c clean: rm -f *.o main test lisp.tab.c lisp.tab.h lex.yy.c lex.yy.h modules/*.so -test: test.o $(OBJS) +test: test.o $(OBJS) $(STD_MODULES) $(CC) $(CFLAGS) -o $@ test.o $(OBJS) $(LIBS) ./test |
