b28c98dd6469a0fa5d72d5651ebb09a0281122eb
[apps/madmutt.git] / lib-lua / Makefile.am
1 BUILT_SOURCES    = lua-token.h lua-token.c
2 DISTCLEANFILES   = $(BUILT_SOURCES)
3
4 .cpkg.c: ; ./luapkg2c.pl -c $< > $@
5 .cpkg.h: ; ./luapkg2c.pl -h $< > $@
6
7 noinst_LIBRARIES = liblua.a
8
9 liblua_a_DEPENDENCIES = madmutt.h
10 liblua_a_SOURCES = madmutt.cpkg \
11                    lib-lua.h lib-lua_priv.h \
12                    runtime.c \
13                    $(BUILT_SOURCES)
14
15 noinst_HEADERS   = lib-lua.h lib-lua_priv.h
16
17 lua-token.c lua-token.h: lua-token.sh
18         sh $< $@ || (rm -f $@; exit 1)
19
20 DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
21         -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
22         -DHAVE_CONFIG_H=1 -DPKGDOCDIR=\"$(docdir)\"
23
24 -include ../cflags.mk