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