From c92ecda53337490633c95e6ae00e322dc9ad1fb8 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 10 Jun 2024 22:39:55 -0300 Subject: feature: Lua 5.3 + 5.4 integer support, with CI and conflicts fixed. Co-Authored-By: Hisham Muhammad Co-authored-by: Mark Pulford Co-authored-by: ichenq Co-authored-by: Cloud Wu Co-authored-by: caijietao Co-authored-by: actboy168 Co-authored-by: wudeng Co-authored-by: caiyiheng --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 55c2142..c5966c5 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,8 @@ LUA_CMODULE_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION) LUA_MODULE_DIR ?= $(PREFIX)/share/lua/$(LUA_VERSION) LUA_BIN_DIR ?= $(PREFIX)/bin +AR= $(CC) -o + ##### Platform overrides ##### ## ## Tweak one of the platform sections below to suit your situation. @@ -84,12 +86,12 @@ OBJS = lua_cjson.o strbuf.o $(FPCONV_OBJS) .PHONY: all clean install install-extra doc -.SUFFIXES: .html .txt +.SUFFIXES: .html .adoc .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) $(BUILD_CFLAGS) -o $@ $< -.txt.html: +.adoc.html: $(ASCIIDOC) -n -a toc $< all: $(TARGET) @@ -97,7 +99,7 @@ all: $(TARGET) doc: manual.html performance.html $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) $(CJSON_LDFLAGS) -o $@ $(OBJS) + $(AR) $@ $(LDFLAGS) $(CJSON_LDFLAGS) $(OBJS) install: $(TARGET) mkdir -p $(DESTDIR)$(LUA_CMODULE_DIR) -- cgit v1.2.3-55-g6feb