Cross Reference: /illumos-gate/usr/src/cmd/hal/addons/acpi/Makefile
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
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# CDDL HEADER START
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# The contents of this file are subject to the terms of the
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# Common Development and Distribution License (the "License").
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# You may not use this file except in compliance with the License.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# or http://www.opensolaris.org/os/licensing.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# See the License for the specific language governing permissions
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# and limitations under the License.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# When distributing Covered Code, include this CDDL HEADER in each
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# If applicable, add the following below this CDDL HEADER, with the
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# fields enclosed by brackets "[]" replaced with your own identifying
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# information: Portions Copyright [yyyy] [name of copyright owner]
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# CDDL HEADER END
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# Use is subject to license terms.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# ident "%Z%%M% %I% %E% SMI"
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranPROG = hald-addon-acpi
d2ec54f7875f7e05edd56195adbeb593c947763fphitranOBJS = addon-acpi.o logger.o util_helper.o acpi.o util_pm.o
7b840e52d558c34b70cbcde044d8d79852d169d2phitranSRCS = addon-acpi.c ../../hald/logger.c ../../hald/util_helper.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninclude ../../../Makefile.cmd
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninclude ../../Makefile.hal
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranROOTCMDDIR = $(ROOTLIB_HAL)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranLDLIBS += -lc -ldbus-1 -lhal -lglib-2.0
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
7b840e52d558c34b70cbcde044d8d79852d169d2phitranCPPFLAGS += -I$(ROOT)/usr/include/hal -I../../hald
7b840e52d558c34b70cbcde044d8d79852d169d2phitranC99MODE = $(C99_ENABLE)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitran.KEEP_STATE:
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranall: $(PROG)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitranacpi.o: ../../utils/acpi.c
d2ec54f7875f7e05edd56195adbeb593c947763fphitran $(COMPILE.c) -o $@ ../../utils/acpi.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(POST_PROCESS_O)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranlogger.o: ../../hald/logger.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(COMPILE.c) -o $@ ../../hald/logger.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(POST_PROCESS_O)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranutil_helper.o: ../../hald/util_helper.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(COMPILE.c) -o $@ ../../hald/util_helper.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(POST_PROCESS_O)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranutil_pm.o: ../../hald/util_pm.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(COMPILE.c) -o $@ ../../hald/util_pm.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(POST_PROCESS_O)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitran$(PROG): $(OBJS)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(POST_PROCESS)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninstall: all $(ROOTCMD)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranclean:
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(RM) $(OBJS) $(PROG)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranFRC:
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninclude ../../../Makefile.targ