xref: /illumos-gate/usr/src/cmd/hal/probing/acpi/Makefile (revision 5801b0f01c3c34499a929ed96164a5a68b470945)
1d2ec54f7Sphitran#
2d2ec54f7Sphitran# CDDL HEADER START
3d2ec54f7Sphitran#
4d2ec54f7Sphitran# The contents of this file are subject to the terms of the
5d2ec54f7Sphitran# Common Development and Distribution License (the "License").
6d2ec54f7Sphitran# You may not use this file except in compliance with the License.
7d2ec54f7Sphitran#
8d2ec54f7Sphitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d2ec54f7Sphitran# or http://www.opensolaris.org/os/licensing.
10d2ec54f7Sphitran# See the License for the specific language governing permissions
11d2ec54f7Sphitran# and limitations under the License.
12d2ec54f7Sphitran#
13d2ec54f7Sphitran# When distributing Covered Code, include this CDDL HEADER in each
14d2ec54f7Sphitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15d2ec54f7Sphitran# If applicable, add the following below this CDDL HEADER, with the
16d2ec54f7Sphitran# fields enclosed by brackets "[]" replaced with your own identifying
17d2ec54f7Sphitran# information: Portions Copyright [yyyy] [name of copyright owner]
18d2ec54f7Sphitran#
19d2ec54f7Sphitran# CDDL HEADER END
20d2ec54f7Sphitran#
21d2ec54f7Sphitran#
22d2ec54f7Sphitran# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23d2ec54f7Sphitran# Use is subject to license terms.
24d2ec54f7Sphitran#
25d2ec54f7Sphitran
26d2ec54f7SphitranPROG =		hald-probe-acpi
27d2ec54f7SphitranOBJS =		probe-acpi.o logger.o acpi.o util_pm.o
28d2ec54f7SphitranSRCS =		probe-acpi.c
29d2ec54f7Sphitran
30d2ec54f7Sphitraninclude ../../../Makefile.cmd
31d2ec54f7Sphitraninclude ../../Makefile.hal
32d2ec54f7Sphitran
33d2ec54f7SphitranROOTCMDDIR =	$(ROOTLIB_HAL)
34d2ec54f7Sphitran
35d2ec54f7SphitranLDLIBS +=	-lc -ldbus-1 -lhal -lglib-2.0
36*5801b0f0SToomas SoomeNATIVE_LIBS +=	libdbus-1.so libglib-2.0.so
37d2ec54f7Sphitran
38d2ec54f7SphitranCPPFLAGS +=	$(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) $(HAL_GLIB_CPPFLAGS)
39d2ec54f7SphitranCPPFLAGS +=	-I$(ROOT)/usr/include/hal -I../../utils -I../../hald
40bd0ce624SYuri PankovCSTD =	$(CSTD_GNU99)
41d2ec54f7Sphitran
42d2ec54f7Sphitran.KEEP_STATE:
43d2ec54f7Sphitran
44d2ec54f7Sphitranall: $(PROG)
45d2ec54f7Sphitran
46d2ec54f7Sphitranlogger.o: ../../hald/logger.c
47d2ec54f7Sphitran	$(COMPILE.c) -o $@ ../../hald/logger.c
48d2ec54f7Sphitran	$(POST_PROCESS_O)
49d2ec54f7Sphitran
50d2ec54f7Sphitranacpi.o: ../../utils/acpi.c
51d2ec54f7Sphitran	$(COMPILE.c) -o $@ ../../utils/acpi.c
52d2ec54f7Sphitran	$(POST_PROCESS_O)
53d2ec54f7Sphitran
54d2ec54f7Sphitranutil_pm.o: ../../hald/util_pm.c
55d2ec54f7Sphitran	$(COMPILE.c) -o $@ ../../hald/util_pm.c
56d2ec54f7Sphitran	$(POST_PROCESS_O)
57d2ec54f7Sphitran
58d2ec54f7Sphitran$(PROG): $(OBJS)
59d2ec54f7Sphitran	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
60d2ec54f7Sphitran	$(POST_PROCESS)
61d2ec54f7Sphitran
62d2ec54f7Sphitraninstall: all $(ROOTCMD)
63d2ec54f7Sphitran
64d2ec54f7Sphitranclean:
65d2ec54f7Sphitran	$(RM) $(OBJS) $(PROG)
66d2ec54f7Sphitran
67d2ec54f7SphitranFRC:
68d2ec54f7Sphitran
69d2ec54f7Sphitraninclude ../../../Makefile.targ
70