summaryrefslogtreecommitdiff
path: root/Build/source/libs/lua52/Makefile.am
blob: 7b53e991372cf63bf520af7d3fb936cb288b5bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
## Proxy Makefile.am to build lua52 for TeX Live.
##
##   Copyright (C) 2013, 2014 Peter Breitenlohner <tex-live@tug.org>
##
##   This file is free software; the copyright holder
##   gives unlimited permission to copy and/or distribute it,
##   with or without modifications, as long as this notice is preserved.
##
ACLOCAL_AMFLAGS = -I ../../m4

## We want to re-distribute the whole original zlib source tree.
##
EXTRA_DIST = $(LUA52_TREE)

## Changes applied to the original source tree
##
EXTRA_DIST += $(LUA52_TREE)-PATCHES

# in case of an SVN repository
dist-hook:
	rm -rf `find $(distdir) -name .svn -o -name .deps -o -name .dirstamp -o -name '*.$(OBJEXT)'`

SUBDIRS = . include

AM_CPPFLAGS = -I$(top_srcdir)/$(LUA52_TREE)/src $(LUA52_DEFINES) -DLUAI_HASHLIMIT=6
AM_CFLAGS = $(WARNING_CFLAGS)

noinst_LIBRARIES = liblua52.a

nodist_liblua52_a_SOURCES = \
	@LUA52_TREE@/src/lapi.c \
	@LUA52_TREE@/src/lauxlib.c \
	@LUA52_TREE@/src/lbaselib.c \
	@LUA52_TREE@/src/lbitlib.c \
	@LUA52_TREE@/src/lcode.c \
	@LUA52_TREE@/src/lcorolib.c \
	@LUA52_TREE@/src/lctype.c \
	@LUA52_TREE@/src/ldblib.c \
	@LUA52_TREE@/src/ldebug.c \
	@LUA52_TREE@/src/ldo.c \
	@LUA52_TREE@/src/ldump.c \
	@LUA52_TREE@/src/lfunc.c \
	@LUA52_TREE@/src/lgc.c \
	@LUA52_TREE@/src/linit.c \
	@LUA52_TREE@/src/liolib.c \
	@LUA52_TREE@/src/llex.c \
	@LUA52_TREE@/src/lmathlib.c \
	@LUA52_TREE@/src/lmem.c \
	@LUA52_TREE@/src/loadlib.c \
	@LUA52_TREE@/src/lobject.c \
	@LUA52_TREE@/src/lopcodes.c \
	@LUA52_TREE@/src/loslib.c \
	@LUA52_TREE@/src/lparser.c \
	@LUA52_TREE@/src/lstate.c \
	@LUA52_TREE@/src/lstring.c \
	@LUA52_TREE@/src/lstrlib.c \
	@LUA52_TREE@/src/ltable.c \
	@LUA52_TREE@/src/ltablib.c \
	@LUA52_TREE@/src/ltm.c \
	@LUA52_TREE@/src/luaconf.h \
	@LUA52_TREE@/src/lundump.c \
	@LUA52_TREE@/src/lvm.c \
	@LUA52_TREE@/src/lzio.c

if build
check_PROGRAMS = luatest luatry
dist_check_SCRIPTS = lua52.test luaerror.test
TESTS = lua52.test luaerror.test
endif build

luatest_SOURCES = luatest.c

luatest_CPPFLAGS = -Iinclude

nodist_luatry_SOURCES = @LUA52_TREE@/src/lua.c

luatry_CPPFLAGS = -Iinclude

LDADD = liblua52.a

EXTRA_DIST += error.exp
CLEANFILES = error.out

# Rebuild
rebuild_prereq =
rebuild_target = all

include $(srcdir)/../../am/rebuild.am