Merge remote branch 'master'
[adg-lua.git] / adg / Makefile.am
blob0dd3514508be1b4c83f7f43f4b5a8c898918c68f
1 include $(top_srcdir)/build/Makefile.am.common
3 API_VERSION=                    ADG_API_VERSION
4 BUILT_SOURCES=                  $(abs_builddir)/api.lua \
5                                 $(abs_builddir)/iface.c
6 CLEANFILES=                     generator.log \
7                                 parser.log \
8                                 $(BUILT_SOURCES)
9 EXTRA_DIST=                     adg.c \
10                                 adg.ovr
12 cmoddir=                        $(LUA_CMODULEDIR)/lgob
13 cmod_LTLIBRARIES=               adg.la
14 nodist_adg_la_SOURCES=          iface.c
15 adg_la_CFLAGS=                  -I $(LUA_INCLUDEDIR) \
16                                 $(ADG_CFLAGS)
17 adg_la_LDFLAGS=                 -module \
18                                 $(ADG_LIBS)
21 $(abs_builddir)/iface.c: $(abs_srcdir)/adg.ovr $(abs_builddir)/api.lua
22         $(GENERATE) -i $< -o $@ -v $(API_VERSION)
24 $(abs_builddir)/api.lua:
25         $(PARSE) -i $(GIRDIR)/Adg-1.0.gir -o $@