summaryrefslogtreecommitdiff
path: root/archiver/Makefile.am
blob: bf35ee478f3dfd06b90795a133a7c8815838bc0c (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
confexecdir = $(libdir)
confexec_DATA = config_archiverConf.sh

Locationmetadir = $(datadir)/control-center/archiver
Locationmeta_DATA = default-user.xml default-global.xml

includedir = $(prefix)/include/config-archiver

INCLUDES = 			\
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" 				\
	-I$(includedir)								\
	$(GNOME_INCLUDEDIR)							\
	-DVERSION=\""$(VERSION)"\"						\
	-DG_LOG_DOMAIN=\"libconfig-archiver\"					\
	-DCONFIGDIR=\""/etc"\"							\
	-DLOCATION_DIR=\""$(datadir)/control-center/archiver"\"			\
	-DGLADE_DIR=\""$(INTERFACES_DIR)"\"							\
	-DXST_BACKEND_LOCATION=\""$(datadir)/setup-tool-backends/scripts"\"	\
	@ARCHIVER_CFLAGS@							\
	@MONIKER_CFLAGS@

CORBA_SOURCE =			\
	ConfigArchiver.h	\
	ConfigArchiver-common.c	\
	ConfigArchiver-stubs.c	\
	ConfigArchiver-skels.c

idl_flags = `gnome-config --cflags idl`

$(CORBA_SOURCE): $(top_srcdir)/idl/ConfigArchiver.idl
	orbit-idl $(top_srcdir)/idl/ConfigArchiver.idl -I$(top_srcdir)/idl $(idl_flags)

bin_PROGRAMS = bonobo-moniker-archiver config-archiver

lib_LTLIBRARIES = libconfig_archiver.la

libconfig_archiver_la_SOURCES = \
	util.c				util.h				\
	archiver-client.c						\
	$(CORBA_SOURCE)

libconfig_archiver_la_LIBADD = \
	@GNOME_XML_LIBS@

archiver-client.c: $(CORBA_SOURCE)

include_HEADERS = \
	ConfigArchiver.h	\
	archiver-client.h

config_archiver_SOURCES = \
	config-archiver.c

config_archiver_LDADD = \
	@ARCHIVER_LIBS@						\
	libconfig_archiver.la

#
# Create the config_archiverConf.sh file from the sh.in file
#
config_archiverConf.sh: config_archiverConf.sh.in Makefile
	sed -e 's?\@VERSION\@?$(VERSION)?' \
	    -e 's?\@CONFIG_ARCHIVER_LIBDIR\@?$(CONFIG_ARCHIVER_LIBDIR)?g' \
	    -e 's?\@CONFIG_ARCHIVER_LIBS\@?$(CONFIG_ARCHIVER_LIBS)?g' \
	    -e 's?\@CONFIG_ARCHIVER_INCLUDEDIR\@?$(CONFIG_ARCHIVER_INCLUDEDIR)?g' \
	    < $(srcdir)/config_archiverConf.sh.in > config_archiverConf.tmp \
	  && mv config_archiverConf.tmp config_archiverConf.sh

OAF_FILES = 						\
	Bonobo_Moniker_archiver.oaf			

oafdir = $(datadir)/oaf
oaf_DATA = $(OAF_FILES)

monikerdir = $(libdir)/bonobo/monikers

Bonobo_Moniker_archiver.oaf : $(srcdir)/Bonobo_Moniker_archiver.oaf.in $(top_builddir)/config.status
	sed -e "s|\@MONIKER_LIBDIR\@|$(monikerdir)|" \
	$(srcdir)/Bonobo_Moniker_archiver.oaf.in > Bonobo_Moniker_archiver.oaf 

clean-local:
	-rm -f $(OAF_FILES) $(CORBA_SOURCE)

bonobo_moniker_archiver_SOURCES =					\
	bonobo-config-archiver.c	bonobo-config-archiver.h	\
	archive.c			archive.h			\
	location.c			location.h			\
	config-log.c			config-log.h			\
	backend-list.c			backend-list.h			\
	cluster.c       		cluster.h			\
	cluster-location.c		cluster-location.h		\
	bonobo-moniker-archiver.c

bonobo_moniker_archiver_LDADD = @MONIKER_LIBS@ libconfig_archiver.la

EXTRA_DIST = \
	$(Locationmeta_DATA)			\
	config_archiverConf.sh.in		\
	Bonobo_Moniker_archiver.oaf.in