xref: /illumos-gate/usr/src/cmd/hal/probing/acpi/Makefile (revision 5801b0f0)
17b840e52Sphitran#
27b840e52Sphitran# CDDL HEADER START
37b840e52Sphitran#
47b840e52Sphitran# The contents of this file are subject to the terms of the
57b840e52Sphitran# Common Development and Distribution License (the "License").
67b840e52Sphitran# You may not use this file except in compliance with the License.
77b840e52Sphitran#
87b840e52Sphitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97b840e52Sphitran# or http://www.opensolaris.org/os/licensing.
107b840e52Sphitran# See the License for the specific language governing permissions
117b840e52Sphitran# and limitations under the License.
127b840e52Sphitran#
137b840e52Sphitran# When distributing Covered Code, include this CDDL HEADER in each
147b840e52Sphitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157b840e52Sphitran# If applicable, add the following below this CDDL HEADER, with the
167b840e52Sphitran# fields enclosed by brackets "[]" replaced with your own identifying
177b840e52Sphitran# information: Portions Copyright [yyyy] [name of copyright owner]
187b840e52Sphitran#
197b840e52Sphitran# CDDL HEADER END
207b840e52Sphitran#
217b840e52Sphitran#
22d2ec54f7Sphitran# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237b840e52Sphitran# Use is subject to license terms.
247b840e52Sphitran#
257b840e52Sphitran
26d2ec54f7SphitranPROG =		hald-probe-acpi
27d2ec54f7SphitranOBJS =		probe-acpi.o logger.o acpi.o util_pm.o
28d2ec54f7SphitranSRCS =		probe-acpi.c
297b840e52Sphitran
307b840e52Sphitraninclude ../../../Makefile.cmd
317b840e52Sphitraninclude ../../Makefile.hal
327b840e52Sphitran
337b840e52SphitranROOTCMDDIR =	$(ROOTLIB_HAL)
347b840e52Sphitran
357b840e52SphitranLDLIBS +=	-lc -ldbus-1 -lhal -lglib-2.0
36*5801b0f0SToomas SoomeNATIVE_LIBS +=	libdbus-1.so libglib-2.0.so
377b840e52Sphitran
387b840e52SphitranCPPFLAGS +=	$(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) $(HAL_GLIB_CPPFLAGS)
397b840e52SphitranCPPFLAGS +=	-I$(ROOT)/usr/include/hal -I../../utils -I../../hald
40bd0ce624SYuri PankovCSTD =	$(CSTD_GNU99)
417b840e52Sphitran
427b840e52Sphitran.KEEP_STATE:
437b840e52Sphitran
447b840e52Sphitranall: $(PROG)
457b840e52Sphitran
467b840e52Sphitranlogger.o: ../../hald/logger.c
477b840e52Sphitran	$(COMPILE.c) -o $@ ../../hald/logger.c
487b840e52Sphitran	$(POST_PROCESS_O)
497b840e52Sphitran
50d2ec54f7Sphitranacpi.o: ../../utils/acpi.c
51d2ec54f7Sphitran	$(COMPILE.c) -o $@ ../../utils/acpi.c
527b840e52Sphitran	$(POST_PROCESS_O)
537b840e52Sphitran
547b840e52Sphitranutil_pm.o: ../../hald/util_pm.c
557b840e52Sphitran	$(COMPILE.c) -o $@ ../../hald/util_pm.c
567b840e52Sphitran	$(POST_PROCESS_O)
577b840e52Sphitran
587b840e52Sphitran$(PROG): $(OBJS)
597b840e52Sphitran	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
607b840e52Sphitran	$(POST_PROCESS)
617b840e52Sphitran
627b840e52Sphitraninstall: all $(ROOTCMD)
637b840e52Sphitran
647b840e52Sphitranclean:
657b840e52Sphitran	$(RM) $(OBJS) $(PROG)
667b840e52Sphitran
677b840e52SphitranFRC:
687b840e52Sphitran
697b840e52Sphitraninclude ../../../Makefile.targ
70