summaryrefslogtreecommitdiff
path: root/tests/everything/Makefile.am
blob: 5055dca57b12721cb9425d562ff1f095b2a24782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
include $(top_srcdir)/common.mk

LT_CURRENT = 1
LT_REVISION = 0
LT_AGE = 0
LT_VERSION = $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
TYPELIB_VERSION = $(LT_CURRENT).0

AM_CFLAGS = $(GOBJECT_CFLAGS)
AM_LDFLAGS = -version-info $(LT_VERSION)
LIBS = $(GOBJECT_LIBS)

typelibsdir = $(libdir)/girepository
typelibs_DATA = $(TYPELIBS)

girsdir = $(datadir)/gir
girs_DATA = $(GIRS)

lib_LTLIBRARIES = libgirepository-everything.la

libgirepository_everything_la_SOURCES = $(srcdir)/everything.c $(srcdir)/everything.h

if OS_WIN32
AM_LDFLAGS += -no-undefined
endif

GIRS =
TYPELIBS = $(GIRS:.gir=.typelib)
TXMLS = $(GIRS:.gir=.tgir)
CLEANFILES = $(TYPELIBS) $(TXMLS) $(GIRS)
BUILT_SOURCES = $(TYPELIBS) $(TXMLS) $(GIRS)

Everything-$(TYPELIB_VERSION).gir: libgirepository-everything.la everything.c everything.h $(SCANNER_BIN) $(SCANNER_LIBS)
	$(CHECK_DEBUG) $(SCANNER) \
	--include=GObject-2.0 \
        --libtool="$(LIBTOOL)" \
	--library=girepository-everything \
	--namespace=Everything --nsversion=$(TYPELIB_VERSION) \
	--pkg gobject-2.0 \
	$(srcdir)/everything.h $(srcdir)/everything.c \
	--output $@
GIRS += Everything-$(TYPELIB_VERSION).gir

%.typelib: %.gir $(top_builddir)/tools/g-ir-compiler$(EXEEXT) Makefile
	$(top_builddir)/tools/g-ir-compiler --includedir=. --includedir=$(top_builddir)/gir $< -o $@

%.tgir: %.typelib $(top_builddir)/tools/g-ir-generate$(EXEEXT) Makefile
	 $(DEBUG) $(top_builddir)/tools/g-ir-generate --includedir=. --includedir=$(top_builddir)/gir $< -o $@