aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-12 00:18:55 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-12 00:18:55 -0500
commit05f23c25078dc0d1661fe61a20d45e60ca9d83e8 (patch)
tree985185811f4ad8be28fb3d7ba110d2440ae062b0 /Makefile
parent8631776f2f45f594e828036415accd56c0bc1f1f (diff)
Initial working version of generic cord func
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4b183a68..1460ad5b 100644
--- a/Makefile
+++ b/Makefile
@@ -26,10 +26,13 @@ LDLIBS=-lgc -lgccjit -lcord -lm -lunistring
BUILTIN_OBJS=builtins/array.o builtins/bool.o builtins/builtins.o builtins/char.o builtins/floats.o builtins/functions.o builtins/integers.o \
builtins/memory.o builtins/string.o builtins/table.o builtins/types.o
-all: nextlang
+all: nextlang libnext.so
nextlang: nextlang.c parse.o files.o util.o ast.o compile.o types.o SipHash/halfsiphash.o $(BUILTIN_OBJS)
+libnext.so: metamethods/cord.o util.o SipHash/halfsiphash.o
+ $(CC) $^ $(CFLAGS) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) $(LDLIBS) -Wl,-soname,libnext.so -shared -o $@
+
SipHash/halfsiphash.c:
git submodule update --init --recursive