summaryrefslogtreecommitdiff
path: root/lua/Makefile.am
blob: 1c56295724c34c72291ae99f6c778a55596d4b21 (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
noinst_LTLIBRARIES = liblua.la
noinst_PROGRAMS = lua/lua luac/luac

EXTRA_DIST = \
	COPYRIGHT \
	HISTORY \
	local/modemuncher.c \
	local/userconfig.c \
	local/linit.lua

LDADD = liblua.la
AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/local

lua_lua_SOURCES = lua/lua.c
lua_lua_CPPFLAGS = $(AM_CPPFLAGS) -DLUA_USERCONFIG='"$(srcdir)/local/userconfig.c"'
lua_lua_CPPFLAGS += -DRPMCONFIGDIR="\"$(RPMCONFIGDIR)\""
lua_lua_LDADD = $(LDADD)
luac_luac_SOURCES = luac/luac.c luac/print.c lopcodes.c
luac_luac_CPPFLAGS = $(AM_CPPFLAGS) -DLUA_OPNAMES

liblua_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_DLOPEN -DWITH_POSIX
liblua_la_LIBADD = -lm -ldl
liblua_la_SOURCES = \
		local/linit.h \
		local/linit.c \
		local/linit.lch \
		local/lposix.h \
		local/lposix.c \
		local/lrexlib.h \
		local/lrexlib.c \
		include/lauxlib.h \
		include/lua.h \
		include/lualib.h \
		lib/lauxlib.c \
		lib/lbaselib.c \
		lib/ldblib.c \
		lib/liolib.c \
		lib/lmathlib.c \
		lib/loadlib.c \
		lib/lstrlib.c \
		lib/ltablib.c \
		lapi.c \
		lapi.h \
		lcode.c \
		lcode.h \
		ldebug.c \
		ldebug.h \
		ldo.c \
		ldo.h \
		ldump.c \
		lfunc.c \
		lfunc.h \
		lgc.c \
		lgc.h \
		llex.c \
		llex.h \
		llimits.h \
		lmem.c \
		lmem.h \
		lobject.c \
		lobject.h \
		lopcodes.c \
		lopcodes.h \
		lparser.c \
		lparser.h \
		lstate.c \
		lstate.h \
		lstring.c \
		lstring.h \
		ltable.c \
		ltable.h \
		ltests.c \
		ltm.c \
		ltm.h \
		lundump.c \
		lundump.h \
		lvm.c \
		lvm.h \
		lzio.c \
		lzio.h

local/linit.lch: local/linit.lua
	bin2c local/linit.lua > local/linit.lch