xref: /illumos-gate/usr/src/cmd/hal/Makefile.hal (revision f3682895b2a97c009685f16e8a4e5d3dc80e11f2)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# Copyright (c) 2018, Joyent, Inc.
26# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
27#
28# Definitions common for HAL code and consumers
29#
30
31HAL_VERSION =		0.5.8
32
33ROOTLIB_HAL =		$(ROOTLIB)/hal
34ROOTLIB_HAL_SCRIPTS =	$(ROOTLIB)/hal
35
36ROOT_HAL_FDI =		$(ROOT)/etc/hal/fdi
37
38HAL_USER =		daemon
39HAL_GROUP =		daemon
40
41# derived from the generated config.h
42HAL_CONFIG_CPPFLAGS =	-DPACKAGE_DATA_DIR=\"/usr/share\" \
43			-DPACKAGE_OLD_DATA_DIR=\"/usr/lib\" \
44			-DPACKAGE_BIN_DIR=\"/usr/bin\" \
45			-DPACKAGE_LIBEXEC_DIR=\"/usr/lib/hal\" \
46			-DPACKAGE_SCRIPT_DIR=\"/usr/lib/hal\" \
47			-DPACKAGE_LOCALSTATEDIR=\"/var\" \
48			-DPACKAGE_SYSCONF_DIR=\"/etc\" \
49			-DPACKAGE_LOCALE_DIR=\"/usr/lib/locale\" \
50			-DPACKAGE_VERSION=\"$(HAL_VERSION)\" \
51			-DPACKAGE_STRING=\""hal $(HAL_VERSION)"\" \
52			-DHALD_PID_FILE=\"/var/run/hald/pid\" \
53			-DHALD_SOCKET_DIR=\"/var/run/hald\" \
54			-DHAVE_ASPRINTF \
55			-DHAVE_POLKIT \
56			-DHWDATA_DIR=\"/usr/share/hwdata\" \
57			-DHAL_USER=\"$(HAL_USER)\" \
58			-DHAL_GROUP=\"$(HAL_GROUP)\"
59
60HAL_DBUS_CPPFLAGS =	-DDBUS_API_SUBJECT_TO_CHANGE \
61			-DDBUS_SYSTEMD_DIR=\"/etc/dbus-1/system.d\" \
62			-I$(ADJUNCT_PROTO)/usr/include/dbus-1.0 \
63			-I$(ADJUNCT_PROTO)/usr/lib/dbus-1.0/include
64
65HAL_GLIB_CPPFLAGS =	-I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
66			-I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
67
68HAL_GETTEXT_PACKAGE =	$(TEXT_DOMAIN)
69
70CERRWARN +=		-_gcc=-Wno-unused-variable
71CERRWARN +=		-_gcc=-Wno-unused-label
72CERRWARN +=		-_gcc=-Wno-unused-value
73CERRWARN +=		-_gcc=-Wno-extra
74CERRWARN +=		-_gcc=-Wno-parentheses
75CERRWARN +=		-_gcc=-Wno-address
76CERRWARN +=		-_gcc=-Wno-unused-function
77
78# not linted
79SMATCH=off
80