summaryrefslogtreecommitdiff
path: root/hald/Makefile.am
blob: e02e3212f2bb1e735758577f0fba31cee8ed2794 (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
## Process this file with automake to produce Makefile.in

SUBDIRS = dummy linux solaris .

INCLUDES = \
	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-DPACKAGE_LOCALSTATEDIR=\""$(localstatedir)"\" \
	-DPACKAGE_SCRIPT_DIR=\""$(libdir)/hal/scripts"\" \
	-I$(top_srcdir) \
	@GLIB_CFLAGS@ @DBUS_CFLAGS@

## check_PROGRAMS = hald-test

#hald_test_SOURCES =                                                     \
#	hald_marshal.h			hald_marshal.c			\
#	device.h			device.c			\
#	device_info.h			device_info.c			\
#	device_store.h			device_store.c			\
#	logger.h			logger.c			\
#	property.h			property.c                      \
#	hald_dbus.h			hald_dbus.c			\
#	hald_test.c							\
#	hald_test_libhal.c

# hald_test_LDADD = @PACKAGE_LIBS@ -lm @EXPAT_LIB@ $(top_builddir)/libhal/libhal.la

# TESTS = hald-test


sbin_PROGRAMS = hald

BUILT_SOURCES =		\
	hald_marshal.h	\
	hald_marshal.c

hald_SOURCES =                                                          \
	hald_marshal.h			hald_marshal.c			\
	util.h				util.c				\
	util_helper.h			util_helper.c			\
	util_pm.h			util_pm.c			\
	hald_runner.h			hald_runner.c			\
	device.h			device.c			\
	device_info.h			device_info.c			\
	device_store.h			device_store.c			\
        hald.h				hald.c				\
	hald_dbus.h			hald_dbus.c			\
	logger.h			logger.c			\
	osspec.h							\
	property.h			property.c			

hald_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ -lm @EXPAT_LIB@ $(top_builddir)/hald/$(HALD_BACKEND)/libhald_$(HALD_BACKEND).la

#### Init scripts fun
SCRIPT_IN_FILES=haldaemon.in

## Red Hat start
if OS_TYPE_RED_HAT

initddir=$(sysconfdir)/rc.d/init.d

initd_SCRIPTS= 	\
	haldaemon

endif
 ## Red Hat end

EXTRA_DIST =			\
	hald_marshal.list

hald_marshal.h: hald_marshal.list
	cd $(srcdir) \
	&& glib-genmarshal --prefix=hald_marshal hald_marshal.list --header >> xgen-gmh \
	&& (cmp -s xgen-gmh hald_marshal.h || cp xgen-gmh hald_marshal.h) \
	&& rm -f xgen-gmh xgen-gmh~

hald_marshal.c: hald_marshal.list
	cd $(srcdir) \
	&& glib-genmarshal --prefix=hald_marshal hald_marshal.list --body >> xgen-gmc \
	&& (cmp -s xgen-gmc hald_marshal.c || cp xgen-gmc hald_marshal.c) \
	&& rm -f xgen-gmc xgen-gmc~

install-data-local:
	-$(mkdir_p) $(HALD_SOCKET_DIR)
	-chown $(HAL_USER):$(HAL_GROUP) $(HALD_SOCKET_DIR)
	-chmod 0755 $(HALD_SOCKET_DIR)
	-$(mkdir_p) $(HALD_SOCKET_DIR)/hald-local
	-$(mkdir_p) $(HALD_SOCKET_DIR)/hald-runner

clean-local:
	rm -f *~
	rm -f hald_marshal.c hald_marshal.h