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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# CDDL HEADER START
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# The contents of this file are subject to the terms of the
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Common Development and Distribution License (the "License").
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# You may not use this file except in compliance with the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# See the License for the specific language governing permissions
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# and limitations under the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# When distributing Covered Code, include this CDDL HEADER in each
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# If applicable, add the following below this CDDL HEADER, with the
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# fields enclosed by brackets "[]" replaced with your own identifying
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# information: Portions Copyright [yyyy] [name of copyright owner]
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# CDDL HEADER END
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Use is subject to license terms.
18c2aff776a775d34a4c9893a4c72e0434d68e36artemHAL_PROG = hal-device hal-find-by-capability hal-find-by-property \
d2ec54f7875f7e05edd56195adbeb593c947763fphitranSCRIPT_LIB = hal-system-lcd-set-brightness hal-system-lcd-get-brightness \
d2ec54f7875f7e05edd56195adbeb593c947763fphitran hal-system-power-hibernate hal-system-power-suspend \
d2ec54f7875f7e05edd56195adbeb593c947763fphitran hal-system-power-reboot hal-system-power-shutdown hal-functions
18c2aff776a775d34a4c9893a4c72e0434d68e36artemSTORAGE_METHOD_PROG = hal-storage-closetray hal-storage-eject \
eade8b27e8185317f75d0a41e3a1b0d620d3e99cnpSTORAGE_SHAREDSRCS = $(STORAGE_SHAREDOBJS:%.o=%.c) $(STORAGE_SHAREDOBJS:%.o=../utils/%.c)
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCLOBBERFILES += $(HAL_PROG) $(STORAGE_PROG) $(SCRIPT_BIN) $(SCRIPT_LIB) $(HAL_LIB)
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon RossCLEANFILES += $(STORAGE_SHAREDOBJS) $(STORAGE_OBJS) hal-storage-zpool.o
d2ec54f7875f7e05edd56195adbeb593c947763fphitran$(HAL_LIB) := LDLIBS += -lc -ldbus-1 -lpolkit $(ZIGNORE) -lglib-2.0
18c2aff776a775d34a4c9893a4c72e0434d68e36artem$(STORAGE_PROG) := LDLIBS += -lc -ldbus-1 -lglib-2.0 -lhal -lhal-storage -lbsm
18c2aff776a775d34a4c9893a4c72e0434d68e36artemCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
d2ec54f7875f7e05edd56195adbeb593c947763fphitranall: $(HAL_PROG) $(STORAGE_PROG) $(SCRIPT_BIN) $(SCRIPT_LIB) $(HAL_LIB) $(SUBDIR)
18c2aff776a775d34a4c9893a4c72e0434d68e36artemhal-storage-closetray: hal-storage-closetray.o $(STORAGE_SHAREDOBJS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem $(LINK.c) hal-storage-closetray.o $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artemhal-storage-eject: hal-storage-eject.o $(STORAGE_SHAREDOBJS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem $(LINK.c) hal-storage-eject.o $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artemhal-storage-mount: hal-storage-mount.o $(STORAGE_SHAREDOBJS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem $(LINK.c) hal-storage-mount.o $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artemhal-storage-unmount: hal-storage-unmount.o $(STORAGE_SHAREDOBJS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem $(LINK.c) hal-storage-unmount.o $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artemhal-storage-cleanup-mountpoint: hal-storage-cleanup-mountpoint.c \
18c2aff776a775d34a4c9893a4c72e0434d68e36artemhal-storage-cleanup-all-mountpoints: hal-storage-cleanup-all-mountpoints.c \
18c2aff776a775d34a4c9893a4c72e0434d68e36artemhal-storage-zpool-export: hal-storage-zpool.c $(STORAGE_SHAREDOBJS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem $(LINK.c) -o $@ $(STORAGE_SHAREDOBJS) -DZPOOL_SUBCMD=\"export\" hal-storage-zpool.c $(LDLIBS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artemhal-storage-zpool-import: hal-storage-zpool.c $(STORAGE_SHAREDOBJS)