BUILT_SOURCES = lua-token.h lua-token.c
DISTCLEANFILES = $(BUILT_SOURCES)
-.cpkg.c: ; ./luapkg2c.pl -c $< > $@
-.cpkg.li: ; ./luapkg2c.pl -h $< > $@
-
noinst_LIBRARIES = liblua.a
liblua_a_DEPENDENCIES = madmutt.li
-liblua_a_SOURCES = madmutt.cpkg \
+liblua_a_SOURCES = madmutt.c \
lib-lua.h \
runtime.c \
$(BUILT_SOURCES)
-DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
-DHAVE_CONFIG_H=1 -DPKGDOCDIR=\"$(docdir)\"
--include ../cflags.mk
+include $(top_builddir)/tools/cpkg2c.mk
+-include $(top_builddir)/tools/cflags.mk