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