summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 849f8d91460b63bc8e8c8615cf0c74adcbb080b7 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
NULL =

lib_LTLIBRARIES = librda.la

CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =
BUILT_SOURCES =

st_file = rda_supported_technologies.h

$(st_file): $(st_file).in
	cp $< $@
	for tech in $(SUPPORTED_TECHNOLOGIES); do sed -r -e "s|// \@WITH_REMOTE_AWARENESS_($$tech)\@\s+.*|#define WITH_REMOTE_AWARENESS_\1|" -i $@; done

CLEANFILES += $(st_file)
EXTRA_DIST += $(st_file).in
BUILT_SOURCES += $(st_file)

librdaincludedir = $(includedir)/rda
librdainclude_HEADERS =			\
	rda_supported_technologies.h	\
	rda_ogon.h			\
	rda_x2go.h			\
	rda.h				\
	$(NULL)

librda_la_SOURCES =			\
	rda.c				\
	rda_x2go.c			\
	rda_ogon.c			\
	$(NULL)

librda_la_CFLAGS =			\
	$(LIBRDA_CFLAGS)		\
	$(NULL)

librda_la_LIBADD =			\
	$(LIBRDA_LIBS)			\
	$(NULL)

pkgconfig_DATA = rda.pc
pkgconfigdir = $(libdir)/pkgconfig

-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS = rda-1.0.gir
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)

if HAVE_INTROSPECTION
introspection_sources = $(librdainclude_HEADERS)	\
	$(librda_la_SOURCES)				\
	$(NULL)

rda-1.0.gir: librda.la
rda_1_0_gir_INCLUDES = GObject-2.0 GLib-2.0
rda_1_0_gir_CFLAGS = $(librda_la_CFLAGS) -I$(srcdir)
rda_1_0_gir_LIBS = librda.la
rda_1_0_gir_FILES = $(introspection_sources)

girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif