Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/hal/tools/Makefile
+++ new/usr/src/cmd/hal/tools/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 -SUBDIR = sunos
26 +SUBDIR = sunos
27 27
28 28 HAL_PROG = hal-device hal-find-by-capability hal-find-by-property \
29 29 hal-get-property hal-set-property lshal
30 30
31 31 HAL_LIB = hal-is-caller-privileged
32 32
33 33 SCRIPT_BIN = hal-fdi-validate
34 34
35 35 SCRIPT_LIB = hal-system-lcd-set-brightness hal-system-lcd-get-brightness \
36 36 hal-system-power-hibernate hal-system-power-suspend \
37 37 hal-system-power-reboot hal-system-power-shutdown hal-functions
38 38
39 39 STORAGE_METHOD_PROG = hal-storage-closetray hal-storage-eject \
40 40 hal-storage-mount hal-storage-unmount \
41 41 hal-storage-zpool-export hal-storage-zpool-import
42 42
43 43 STORAGE_PROG = $(STORAGE_METHOD_PROG) \
44 44 hal-storage-cleanup-mountpoint \
45 45 hal-storage-cleanup-all-mountpoints
46 46
47 47 PROGSRCS = $(PROG:%=%.c) $(STORAGE_PROG:%=%.c)
48 48
49 49
50 50 STORAGE_OBJS = $(STORAGE_PROG:%=%.o)
51 51 STORAGE_SHAREDOBJS = hal-storage-shared.o adt_data.o
52 52 STORAGE_SHAREDSRCS = $(STORAGE_SHAREDOBJS:%.o=%.c) $(STORAGE_SHAREDOBJS:%.o=../utils/%.c)
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
53 53
54 54 SRCS = $(PROGSRCS) $(STORAGE_SHAREDSRCS)
55 55
56 56 CLOBBERFILES += $(HAL_PROG) $(STORAGE_PROG) $(SCRIPT_BIN) $(SCRIPT_LIB) $(HAL_LIB)
57 57 CLEANFILES += $(STORAGE_SHAREDOBJS) $(STORAGE_OBJS) hal-storage-zpool.o
58 58
59 59 include ../../Makefile.cmd
60 60 include ../Makefile.hal
61 61
62 62 $(HAL_PROG) := LDLIBS += -lc -ldbus-1 -lhal
63 +$(HAL_PROG) := ADJUNCT_LIBS = libdbus-1.so
63 64
64 65 lshal := LDLIBS += -ldbus-glib-1 -lglib-2.0
66 +lshal := ADJUNCT_LIBS = libdbus-glib-1.so libdbus-1.so libglib-2.0.so
65 67
66 68 $(HAL_LIB) := LDLIBS += -lc -ldbus-1 -lpolkit $(ZIGNORE) -lglib-2.0
69 +$(HAL_LIB) := ADJUNCT_LIBS = libdbus-1.so libglib-2.0.so
67 70
68 71 $(STORAGE_PROG) := LDLIBS += -lc -ldbus-1 -lglib-2.0 -lhal -lhal-storage -lbsm
72 +$(STORAGE_PROG) := ADJUNCT_LIBS = libdbus-1.so libglib-2.0.so
69 73
70 74 $(STORAGE_METHOD_PROG) := LDLIBS += -lpolkit
71 75
72 76 CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
73 77 CPPFLAGS += -I$(ROOT)/usr/include/hal
74 78 CPPFLAGS += -I$(ROOT)/usr/include/libpolkit
75 79 CSTD = $(CSTD_GNU99)
76 80
77 81 ROOTUSRSBINPROG = $(HAL_PROG:%=$(ROOTUSRSBIN)/%) \
78 82 $(SCRIPT_BIN:%=$(ROOTUSRSBIN)/%)
79 83
80 84 ROOTCMDDIR = $(ROOTLIB_HAL)
81 85 ROOTCMD = $(STORAGE_PROG:%=$(ROOTCMDDIR)/%) \
82 86 $(HAL_LIB:%=$(ROOTCMDDIR)/%) \
83 87 $(SCRIPT_LIB:%=$(ROOTCMDDIR)/%)
84 88
85 89 all := TARGET= all
86 90 install := TARGET= install
87 91 clean := TARGET= clean
88 92 clobber := TARGET= clobber
89 93
90 94 .KEEP_STATE:
91 95
92 96 all: $(HAL_PROG) $(STORAGE_PROG) $(SCRIPT_BIN) $(SCRIPT_LIB) $(HAL_LIB) $(SUBDIR)
93 97
94 98 hal-storage-shared.o: hal-storage-shared.c
95 99 $(COMPILE.c) -o $@ hal-storage-shared.c
96 100
97 101 adt_data.o: ../utils/adt_data.c
98 102 $(COMPILE.c) -o $@ ../utils/adt_data.c
99 103
100 104 hal-storage-closetray: hal-storage-closetray.o $(STORAGE_SHAREDOBJS)
101 105 $(LINK.c) hal-storage-closetray.o $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
102 106 $(POST_PROCESS)
103 107
104 108 hal-storage-eject: hal-storage-eject.o $(STORAGE_SHAREDOBJS)
105 109 $(LINK.c) hal-storage-eject.o $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
106 110 $(POST_PROCESS)
107 111
108 112 hal-storage-mount: hal-storage-mount.o $(STORAGE_SHAREDOBJS)
109 113 $(LINK.c) hal-storage-mount.o $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
110 114 $(POST_PROCESS)
111 115
112 116 hal-storage-unmount: hal-storage-unmount.o $(STORAGE_SHAREDOBJS)
113 117 $(LINK.c) hal-storage-unmount.o $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
114 118 $(POST_PROCESS)
115 119
116 120 hal-storage-cleanup-mountpoint: hal-storage-cleanup-mountpoint.c \
117 121 $(STORAGE_SHAREDOBJS)
118 122 $(LINK.c) hal-storage-cleanup-mountpoint.c \
119 123 $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
120 124 $(POST_PROCESS)
121 125
122 126 hal-storage-cleanup-all-mountpoints: hal-storage-cleanup-all-mountpoints.c \
123 127 $(STORAGE_SHAREDOBJS)
124 128 $(LINK.c) hal-storage-cleanup-all-mountpoints.c \
125 129 $(STORAGE_SHAREDOBJS) -o $@ $(LDLIBS)
126 130 $(POST_PROCESS)
127 131
128 132 hal-storage-zpool-export: hal-storage-zpool.c $(STORAGE_SHAREDOBJS)
129 133 $(LINK.c) -o $@ $(STORAGE_SHAREDOBJS) -DZPOOL_SUBCMD=\"export\" hal-storage-zpool.c $(LDLIBS)
130 134 $(POST_PROCESS)
131 135
132 136 hal-storage-zpool-import: hal-storage-zpool.c $(STORAGE_SHAREDOBJS)
133 137 $(LINK.c) -o $@ $(STORAGE_SHAREDOBJS) -DZPOOL_SUBCMD=\"import\" hal-storage-zpool.c $(LDLIBS)
134 138 $(POST_PROCESS)
135 139
136 140 hal-device: hal-device.c
137 141 $(LINK.c) -o $@ hal-device.c $(LDLIBS)
138 142 $(POST_PROCESS)
139 143
140 144 hal-find-by-capability: hal_find_by_capability.c
141 145 $(LINK.c) -o $@ hal_find_by_capability.c $(LDLIBS)
142 146 $(POST_PROCESS)
143 147
144 148 hal-find-by-property: hal_find_by_property.c
145 149 $(LINK.c) -o $@ hal_find_by_property.c $(LDLIBS)
146 150 $(POST_PROCESS)
147 151
148 152 hal-get-property: hal_get_property.c
149 153 $(LINK.c) -o $@ hal_get_property.c $(LDLIBS)
150 154 $(POST_PROCESS)
151 155
152 156 hal-set-property: hal_set_property.c
153 157 $(LINK.c) -o $@ hal_set_property.c $(LDLIBS)
154 158 $(POST_PROCESS)
155 159
156 160 lshal: lshal.c
157 161 $(LINK.c) -o $@ lshal.c $(LDLIBS)
158 162 $(POST_PROCESS)
159 163
160 164 install: all $(ROOTUSRSBINPROG) $(ROOTCMD) $(SUBDIR)
161 165
162 166 clean: $(SUBDIR)
163 167 $(RM) $(CLEANFILES)
164 168
165 169 $(SUBDIR): FRC
166 170 @cd $@; pwd; $(MAKE) $(TARGET)
167 171
168 172 FRC:
169 173
170 174 include ../../Makefile.targ
↓ open down ↓ |
92 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX