- missing end tag
[apt.git] / lua / Makefile.am
1
2 if WITH_LUA
3 noinst_LTLIBRARIES = liblua.la
4 noinst_PROGRAMS = lua/lua luac/luac
5 endif
6
7 EXTRA_DIST = \
8         COPYRIGHT \
9         HISTORY \
10         README \
11         local/modemuncher.c \
12         local/userconfig.c \
13         local/linit.lua
14
15 LDADD = liblua.la
16 INCLUDES = -I$(srcdir)/include -I$(srcdir)/local
17
18 lua_lua_SOURCES = lua/lua.c
19 lua_lua_CFLAGS = -DLUA_USERCONFIG='"$(srcdir)/local/userconfig.c"'
20 #lua_lua_LDADD = $(LDADD) -lreadline -lhistory -lncurses
21 luac_luac_SOURCES = luac/luac.c luac/print.c lopcodes.c
22 luac_luac_CFLAGS = -DLUA_OPNAMES
23
24 liblua_la_CFLAGS = -DUSE_DLOPEN -DWITH_POSIX
25 liblua_la_LIBADD = -lm -ldl
26 liblua_la_SOURCES = \
27                 local/linit.c \
28                 local/linit.h \
29                 local/linit.lch \
30                 local/lposix.h \
31                 local/lposix.c \
32                 local/lrexlib.h \
33                 local/lrexlib.c \
34                 include/lauxlib.h \
35                 include/lua.h \
36                 include/lualib.h \
37                 lib/lauxlib.c \
38                 lib/lbaselib.c \
39                 lib/ldblib.c \
40                 lib/liolib.c \
41                 lib/lmathlib.c \
42                 lib/loadlib.c \
43                 lib/lstrlib.c \
44                 lib/ltablib.c \
45                 lapi.c \
46                 lapi.h \
47                 lcode.c \
48                 lcode.h \
49                 ldebug.c \
50                 ldebug.h \
51                 ldo.c \
52                 ldo.h \
53                 ldump.c \
54                 lfunc.c \
55                 lfunc.h \
56                 lgc.c \
57                 lgc.h \
58                 llex.c \
59                 llex.h \
60                 llimits.h \
61                 lmem.c \
62                 lmem.h \
63                 lobject.c \
64                 lobject.h \
65                 lopcodes.c \
66                 lopcodes.h \
67                 lparser.c \
68                 lparser.h \
69                 lstate.c \
70                 lstate.h \
71                 lstring.c \
72                 lstring.h \
73                 ltable.c \
74                 ltable.h \
75                 ltests.c \
76                 ltm.c \
77                 ltm.h \
78                 lundump.c \
79                 lundump.h \
80                 lvm.c \
81                 lvm.h \
82                 lzio.c \
83                 lzio.h
84
85 local/linit.lch: local/linit.lua
86         bin2c local/linit.lua > local/linit.lch