1 include $(top_srcdir)/common.mk
10 ############################################################
12 check_LTLIBRARIES += liboffsets.la
14 liboffsets_la_SOURCES = \
17 liboffsets_la_CPPFLAGS = $(GIREPO_CFLAGS)
18 # dummy rpath to get built dynamically (huh?)
19 liboffsets_la_LDFLAGS = -avoid-version -rpath $(libdir)
21 offsets-1.0.gir: liboffsets.la offsets.h $(SCANNER_BIN) $(SCANNER_LIBS) Makefile
22 $(CHECK_DEBUG) $(SCANNER) \
23 --include=GObject-2.0 \
24 --libtool="$(LIBTOOL)" \
25 --library=liboffsets.la \
29 $(srcdir)/offsets.h $(srcdir)/offsets.c \
32 %.typelib: %.gir $(top_builddir)/tools/g-ir-compiler$(EXEEXT) Makefile
33 $(top_builddir)/tools/g-ir-compiler --includedir=. --includedir=$(top_builddir)/gir $< -o $@
35 CLEANFILES += offsets-1.0.gir offsets-1.0.typelib
37 ############################################################
39 check_PROGRAMS += gitestoffsets
41 nodist_gitestoffsets_SOURCES = gitestoffsets.c
42 gitestoffsets_CPPFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
43 gitestoffsets_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
45 gitestoffsets.c: gen-gitestoffsets offsets.h
46 $(PYTHON) $(srcdir)/gen-gitestoffsets $(srcdir)/offsets.h > $@ || ( rm -f $@ && false )
48 EXTRA_DIST += gen-gitestoffsets
49 BUILT_SOURCES += gitestoffsets.c
50 CLEANFILES += gitestoffsets.c
52 ############################################################
54 check-local: offsets-1.0.typelib
55 GI_TYPELIB_PATH=:$(top_builddir)/gir ./gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected
56 diff -u offsets.compiled offsets.introspected
58 CLEANFILES += offsets.compiled offsets.introspected