aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-06-19 20:13:53 +0800
committerMistivia <i@mistivia.com>2025-06-19 20:13:53 +0800
commit14f4414967db1dd5c67405dbdf9310f4737a7388 (patch)
tree71619b6d5ee6e648ed647214b64877e79baee208 /Makefile
parentdc2136d7306d99e9b374f4ce758571edfcca6075 (diff)
readline, let binding, setq
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 148ff37..8ebb82d 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ mode ?= debug
cc = gcc
includes = -I3rdparty/algds/build/include/
3rdlibs = 3rdparty/algds/build/lib/libalgds.a
-ldflags = # -L3rdparty/algds/build/lib/ -lalgds
+ldflags = -lreadline
ifeq ($(mode), debug)
cflags = $(includes) \
-g \
@@ -20,7 +20,7 @@ tests_bin=$(tests:.c=.bin)
all: bamboo-lisp
bamboo-lisp: $(obj) src/main.c 3rdparty/algds/build/lib/libalgds.a
- gcc $(ldflags) $(cflags) -o $@ $^
+ gcc $(cflags) -o $@ $^ $(ldflags)
3rdparty/algds/build/lib/libalgds.a:
cd 3rdparty/algds && \
@@ -37,7 +37,7 @@ $(obj):%.o:%.c
$(obj):%.o:$(3rdlibs)
$(tests_bin):%.bin:%.c $(obj) $(3rdlibs)
- $(cc) $(ldflags) $(cflags) -Isrc/ $< $(obj) $(3rdlibs) -MD -MF $@.d -o $@
+ $(cc) $(cflags) -Isrc/ $< $(obj) $(3rdlibs) -MD -MF $@.d -o $@ $(ldflags)
clean:
-rm $(shell find tests/ -name '*.bin')