From 07cd615c7e1cafccd6d46b3eb68d413f2a2dd9a5 Mon Sep 17 00:00:00 2001 From: Felix Perktold Date: Sun, 18 Jan 2026 17:44:10 +0100 Subject: start writing psql module, start writing exercise 1 with that module, small header file changes as needed for module programming --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d574b4e..ad69623 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,9 @@ CFLAGS = -DYYDEBUG=1 -fPIC LIBS = -lreadline -lfl -lm OBJS = lisp.o lisp.tab.o lex.yy.o -MODULE_SRC = $(wildcard modules/*.c) -MODULE_SO = $(MODULE_SRC:.c=.so) +MODULE_LIBS = -lpq +MODULE_SRC = $(wildcard modules/*.c) +MODULE_SO = $(MODULE_SRC:.c=.so) .SUFFIXES: main: main.c $(OBJS) @@ -48,7 +49,7 @@ modules: $(MODULE_SO) modules/%.so: modules/%.c lisp.o gcc -fPIC -c $< -o $*.o - gcc -fPIC -shared $*.o lisp.o -o $@ + gcc -fPIC -shared $*.o lisp.o -o $@ $(MODULE_LIBS) rm $*.o .PHONY: clean test run -- cgit v1.2.3