summaryrefslogtreecommitdiff
path: root/lua/Makefile.am
blob: 3154095fc398b659c0afff59f1d9a59e46b6fdc6 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155

LINT = splint

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_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

# XXX to avoid local/linit.lch syntax problem.
#
#		local/linit.c \
#		lib/lstrlib.c \
#
LUA_SPLINT_SRCS = \
		lua/lua.c \
		include/lauxlib.h \
		include/lua.h \
		include/lualib.h \
		lib/lauxlib.c \
		lib/lbaselib.c \
		lib/ldblib.c \
		lib/liolib.c \
		lib/loadlib.c \
		lib/lmathlib.c \
		lib/ltablib.c \
		local/lposix.h \
		local/lposix.c \
		local/lrexlib.h \
		local/lrexlib.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

.PHONY:	sources
sources:
	@echo $(LUA_SPLINT_SRCS:%=lua/%)

.PHONY:	lint
lint:
	$(LINT) $(DEFS) $(AM_CPPFLAGS) $(LUA_SPLINT_SRCS)