summaryrefslogtreecommitdiff
path: root/Build/source/libs/luajit/native/Makefile.am
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-02-14 13:25:59 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-02-14 13:25:59 +0000
commit48d6f6d3532593420a7e42cee26296b7d3e9aec8 (patch)
tree5aff94c31734f5eef393aa831bd043af157b8d2b /Build/source/libs/luajit/native/Makefile.am
parentadd090f0faa938bd57bf9961726154f7ab06a3a3 (diff)
libs/luajit: Further simplify the build system
git-svn-id: svn://tug.org/texlive/trunk@32966 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/luajit/native/Makefile.am')
-rw-r--r--Build/source/libs/luajit/native/Makefile.am17
1 files changed, 3 insertions, 14 deletions
diff --git a/Build/source/libs/luajit/native/Makefile.am b/Build/source/libs/luajit/native/Makefile.am
index 55e159a2adf..07fa7771cfe 100644
--- a/Build/source/libs/luajit/native/Makefile.am
+++ b/Build/source/libs/luajit/native/Makefile.am
@@ -4,17 +4,7 @@
## You may freely use, modify and/or distribute this file.
##
AM_CPPFLAGS = -I$(srcdir)/$(LUAJIT_TREE)/src
-AM_CFLAGS = # $(WARNING_CFLAGS)
-
-noinst_DATA = build-flags
-
-build_flags = HOST_CC='$(CC)'
-build_flags += HOST_CFLAGS='$(CFLAGS)'
-build_flags += HOST_LDFLAGS='$(LDFLAGS)'
-build_flags += HOST_LIBS='$(LIBS)'
-
-build-flags: Makefile
- $(AM_V_GEN)echo "$(build_flags)" >$@
+AM_CFLAGS = -Wall
EXTRA_PROGRAMS = buildvm minilua
@@ -23,7 +13,7 @@ all-local: buildvm-stamp
buildvm-stamp: buildvm$(EXEEXT)
$(AM_V_at)echo timestamp >$@
-buildvm_CPPFLAGS = $(AM_CPPFLAGS) -DLUAJIT_ENABLE_LUA52COMPAT `cat ../native_flags`
+buildvm_CPPFLAGS = $(AM_CPPFLAGS) $(LUAJIT_DEFINES) `cat ../native_flags`
nodist_buildvm_SOURCES = \
@LUAJIT_TREE@/src/host/buildvm.c \
@LUAJIT_TREE@/src/host/buildvm.h \
@@ -31,7 +21,7 @@ nodist_buildvm_SOURCES = \
@LUAJIT_TREE@/src/host/buildvm_fold.c \
@LUAJIT_TREE@/src/host/buildvm_lib.c \
@LUAJIT_TREE@/src/host/buildvm_peobj.c
-$(buildvm_OBJECTS): $(nodist_buildvm_SOURCES) buildvm_arch.h
+$(buildvm_OBJECTS): buildvm_arch.h
buildvm_arch.h: minilua$(EXEEXT) $(LUAJIT_TREE)/dynasm/dynasm.lua
$(AM_V_GEN)./minilua $(srcdir)/$(LUAJIT_TREE)/dynasm/dynasm.lua \
@@ -40,7 +30,6 @@ buildvm_arch.h: minilua$(EXEEXT) $(LUAJIT_TREE)/dynasm/dynasm.lua
nodist_minilua_SOURCES = \
@LUAJIT_TREE@/src/host/minilua.c
-$(minilua_OBJECTS): $(nodist_minilua_SOURCES)
minilua_LDFLAGS = $(MATH_LIB)
CLEANFILES = buildvm-stamp buildvm_arch.h