From d7d5417b21a0d9cb227bca8123609717554c876f Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat, 5 Jul 2025 06:12:20 +0300
Subject: [PATCH 71/72] Populate lua-5.5 tree with autotools files

See RM #1569

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 dependencies/lua-5.5/.gitignore      |  1 +
 dependencies/lua-5.5/Makefile.am     |  9 +++
 dependencies/lua-5.5/src/.gitignore  |  1 +
 dependencies/lua-5.5/src/Makefile.am | 84 ++++++++++++++++++++++++++++
 4 files changed, 95 insertions(+)
 create mode 100644 dependencies/lua-5.5/.gitignore
 create mode 100644 dependencies/lua-5.5/Makefile.am
 create mode 100644 dependencies/lua-5.5/src/.gitignore
 create mode 100644 dependencies/lua-5.5/src/Makefile.am

diff --git a/dependencies/lua-5.5/.gitignore b/dependencies/lua-5.5/.gitignore
new file mode 100644
index 0000000000..10a7e8d6c7
--- /dev/null
+++ b/dependencies/lua-5.5/.gitignore
@@ -0,0 +1 @@
+/Makefile.in
diff --git a/dependencies/lua-5.5/Makefile.am b/dependencies/lua-5.5/Makefile.am
new file mode 100644
index 0000000000..5fd930c5ae
--- /dev/null
+++ b/dependencies/lua-5.5/Makefile.am
@@ -0,0 +1,9 @@
+## Process this file with automake to produce Makefile.in
+
+SUBDIRS = src
+
+EXTRA_DIST = Version.txt \
+	freeciv_lua.patch \
+	doc/readme.html \
+	doc/logo.gif \
+	doc/OSIApproved_100X125.png
diff --git a/dependencies/lua-5.5/src/.gitignore b/dependencies/lua-5.5/src/.gitignore
new file mode 100644
index 0000000000..10a7e8d6c7
--- /dev/null
+++ b/dependencies/lua-5.5/src/.gitignore
@@ -0,0 +1 @@
+/Makefile.in
diff --git a/dependencies/lua-5.5/src/Makefile.am b/dependencies/lua-5.5/src/Makefile.am
new file mode 100644
index 0000000000..1b5134b5cf
--- /dev/null
+++ b/dependencies/lua-5.5/src/Makefile.am
@@ -0,0 +1,84 @@
+## Process this file with automake to produce Makefile.in
+
+noinst_LTLIBRARIES = liblua.la
+
+AM_CPPFLAGS =
+
+liblua_la_LIBADD = -lm
+
+liblua_la_SOURCES = 	\
+	localluaconf.h	\
+	lapi.c		\
+	lapi.h		\
+	lauxlib.c	\
+	lauxlib.h	\
+	lbaselib.c	\
+	lcode.c		\
+	lcode.h		\
+	lcorolib.c	\
+	lctype.c	\
+	lctype.h	\
+	ldblib.c	\
+	ldebug.c	\
+	ldebug.h	\
+	ldo.c		\
+	ldo.h		\
+	ldump.c		\
+	lfunc.c		\
+	lfunc.h		\
+	lgc.c		\
+	lgc.h		\
+	linit.c		\
+	liolib.c	\
+	ljumptab.h	\
+	llex.c		\
+	llex.h		\
+	llimits.h	\
+	lmathlib.c	\
+	lmem.c		\
+	lmem.h		\
+	loadlib.c	\
+	lobject.c	\
+	lobject.h	\
+	lopcodes.c	\
+	lopcodes.h	\
+	lopnames.h	\
+	loslib.c	\
+	lparser.c	\
+	lparser.h	\
+	lprefix.h	\
+	lstate.c	\
+	lstate.h	\
+	lstring.c	\
+	lstring.h	\
+	lstrlib.c	\
+	ltable.c	\
+	ltable.h	\
+	ltablib.c	\
+	ltm.c		\
+	ltm.h		\
+	luaconf.h	\
+	lua.h		\
+	lua.hpp		\
+	lualib.h	\
+	lundump.c	\
+	lundump.h	\
+	lutf8lib.c	\
+	lvm.c		\
+	lvm.h		\
+	lzio.c		\
+	lzio.h
+
+
+if !SYS_TOLUA_CMD
+
+EXTRA_DIST = \
+	dist-stamp
+
+# To trick 'make dist' to build tolua, needed later to generate source files
+dist-stamp : liblua.la
+	touch dist-stamp
+
+DISTCLEANFILES = dist-stamp
+
+endif
-- 
2.47.2

