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