Makefile revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
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
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Use is subject to license terms.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# ident "%Z%%M% %I% %E% SMI"
18c2aff776a775d34a4c9893a4c72e0434d68e36artemHAL_PROG = hal-device hal-find-by-capability hal-find-by-property \
18c2aff776a775d34a4c9893a4c72e0434d68e36artemSTORAGE_METHOD_PROG = hal-storage-closetray hal-storage-eject \
18c2aff776a775d34a4c9893a4c72e0434d68e36artem$(STORAGE_PROG) := LDLIBS += -lc -ldbus-1 -lglib-2.0 -lhal -lhal-storage -lbsm
18c2aff776a775d34a4c9893a4c72e0434d68e36artemCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artemROOTUSRSBINPROG = $(HAL_PROG:%=$(ROOTUSRSBIN)/%) $(SCRIPT:%=$(ROOTUSRSBIN)/%)
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)