aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/external/lua-5.4.0-tests/libs/makefile
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-07 12:44:18 +0100
committerlemon <lsof@mailbox.org>2025-12-07 12:44:18 +0100
commit6a335e2b7d47afdb5e37034a095aaa26a34d7ee1 (patch)
treeb7aae9d679df13ce04f695670e80a8e7a73361c9 /test/external/lua-5.4.0-tests/libs/makefile
parentbfc6b66078ab3ec543b8355ad22df1c423bf9a8c (diff)
Add lua 5.4.0 test suite
Diffstat (limited to 'test/external/lua-5.4.0-tests/libs/makefile')
-rw-r--r--test/external/lua-5.4.0-tests/libs/makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/external/lua-5.4.0-tests/libs/makefile b/test/external/lua-5.4.0-tests/libs/makefile
new file mode 100644
index 0000000..a133092
--- /dev/null
+++ b/test/external/lua-5.4.0-tests/libs/makefile
@@ -0,0 +1,27 @@
+# change this variable to point to the directory with Lua headers
+# of the version being tested
+LUA_DIR = ../../
+
+CC = gcc
+
+# compilation should generate Dynamic-Link Libraries
+CFLAGS = -Wall -std=gnu99 -O2 -I$(LUA_DIR) -fPIC -shared
+
+# libraries used by the tests
+all: lib1.so lib11.so lib2.so lib21.so lib2-v2.so
+ touch all
+
+lib1.so: lib1.c $(LUA_DIR)/luaconf.h
+ $(CC) $(CFLAGS) -o lib1.so lib1.c
+
+lib11.so: lib11.c $(LUA_DIR)/luaconf.h
+ $(CC) $(CFLAGS) -o lib11.so lib11.c
+
+lib2.so: lib2.c $(LUA_DIR)/luaconf.h
+ $(CC) $(CFLAGS) -o lib2.so lib2.c
+
+lib21.so: lib21.c $(LUA_DIR)/luaconf.h
+ $(CC) $(CFLAGS) -o lib21.so lib21.c
+
+lib2-v2.so: lib21.c $(LUA_DIR)/luaconf.h
+ $(CC) $(CFLAGS) -o lib2-v2.so lib22.c