diff options
Diffstat (limited to 'lua/src/GNUmakefile')
-rw-r--r-- | lua/src/GNUmakefile | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/lua/src/GNUmakefile b/lua/src/GNUmakefile new file mode 100644 index 0000000..8a7678b --- /dev/null +++ b/lua/src/GNUmakefile @@ -0,0 +1,89 @@ +TOPDIR = ../.. + +SUBDIRS = + +PACKAGE_NAME = wolframe + +.NOTPARALLEL: + +-include $(TOPDIR)/makefiles/gmake/platform.mk + +INCLUDE_LDFLAGS = \ + $(LUA_PLATFORM_LDFLAGS) + +INCLUDE_LIBS = \ + $(LUA_PLATFORM_LIBS) + +STATIC_LIB = liblua.a + +DYNAMIC_LIB = liblua.so +DYNAMIC_LIB_MAJOR = 5 +DYNAMIC_LIB_MINOR = 2 +DYNAMIC_LIB_PATCH = 0 + +OBJS = \ + lapi.o \ + lauxlib.o \ + lbaselib.o \ + lbitlib.o \ + lcode.o \ + lcorolib.o \ + lctype.o \ + ldblib.o \ + ldebug.o \ + ldo.o \ + ldump.o \ + lfunc.o \ + lgc.o \ + linit.o \ + liolib.o \ + llex.o \ + lmathlib.o \ + lmem.o \ + loadlib.o \ + lobject.o \ + lopcodes.o \ + loslib.o \ + lparser.o \ + lstate.o \ + lstring.o \ + lstrlib.o \ + ltable.o \ + ltablib.o \ + ltm.o \ + lundump.o \ + lvm.o \ + lzio.o + +BINS = \ + lua$(EXE) + +-include $(TOPDIR)/makefiles/gmake/sub.mk + +# overwrite flags so they fit to how Lua people compile the software. +# we get too many spurios errors and problems (for instance in abuild +# checks on openSuSE). This doesn't mean they should not be fixed +# though upstream! +ALL_CFLAGS = $(OPTFLAGS) -Wall $(LUA_PLATFORM_CFLAGS) -I. $(SO_COMPILE_FLAGS) + +lua$(EXE): $(STATIC_LIB) $(DYNAMIC_LIB).$(DYNAMIC_LIB_MAJOR).$(DYNAMIC_LIB_MINOR).$(DYNAMIC_LIB_PATCH) + +local_all: + +local_clean: + +local_distclean: + +DIST_HEADERS = \ + lauxlib.h lua.h lua.hpp luaconf.h lualib.h + +local_install: + $(INSTALL) -d -m 755 $(DESTDIR)$(includedir)/wolframe/lua + $(INSTALL) -m 644 $(DIST_HEADERS) $(DESTDIR)$(includedir)/wolframe/lua + +local_uninstall: + -rm -rf $(DESTDIR)$(includedir)/wolframe/lua/* + -rmdir $(DESTDIR)$(includedir)/wolframe/lua + -rmdir $(DESTDIR)$(includedir)/wolframe + +local_test: |