65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser#
79159a86ddb51071055abd7ee08935bc65b9e7a9Scott Moser# CDDL HEADER START
79159a86ddb51071055abd7ee08935bc65b9e7a9Scott Moser#
79159a86ddb51071055abd7ee08935bc65b9e7a9Scott Moser# The contents of this file are subject to the terms of the
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# Common Development and Distribution License (the "License").
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# You may not use this file except in compliance with the License.
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser#
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# or http://www.opensolaris.org/os/licensing.
79159a86ddb51071055abd7ee08935bc65b9e7a9Scott Moser# See the License for the specific language governing permissions
79159a86ddb51071055abd7ee08935bc65b9e7a9Scott Moser# and limitations under the License.
79159a86ddb51071055abd7ee08935bc65b9e7a9Scott Moser#
79159a86ddb51071055abd7ee08935bc65b9e7a9Scott Moser# When distributing Covered Code, include this CDDL HEADER in each
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d24d56d7ee3420bb79238ff84cad07c20cf4757dScott Moser# If applicable, add the following below this CDDL HEADER, with the
54e339f91785368a7825b2edaad04c2177a1a382Scott Moser# fields enclosed by brackets "[]" replaced with your own identifying
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# information: Portions Copyright [yyyy] [name of copyright owner]
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser#
1e0f62acaacb4e7639d6203a9f008c66be712026Serge Hallyn# CDDL HEADER END
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser#
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser#
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# Use is subject to license terms.
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser#
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser# ident "%Z%%M% %I% %E% SMI"
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser#
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott MoserPROG = hald-probe-storage
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott MoserOBJS = probe-storage.o cdutils.o fsutils.o logger.o
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott MoserSRCS = addon-storage.c
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moserinclude ../../../Makefile.cmd
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moserinclude ../../Makefile.hal
5d066f24e65ef482cdfee241ce65e060d1652efcScott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott MoserROOTCMDDIR = $(ROOTLIB_HAL)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott MoserLDLIBS += -lc -ldbus-1 -lhal -ladm -lefi
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott MoserCPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott MoserCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
5d066f24e65ef482cdfee241ce65e060d1652efcScott MoserCPPFLAGS += -I$(ROOT)/usr/include/hal -I../../utils -I../../hald
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott MoserC99MODE = $(C99_ENABLE)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser.KEEP_STATE:
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moserall: $(PROG)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moserlogger.o: ../../hald/logger.c
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser $(COMPILE.c) -o $@ ../../hald/logger.c
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser $(POST_PROCESS_O)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moserfsutils.o: ../../utils/fsutils.c
5d066f24e65ef482cdfee241ce65e060d1652efcScott Moser $(COMPILE.c) -o $@ ../../utils/fsutils.c
cb0c6c020314ee0fea0ce30d209711f7e9c29aaaScott Moser $(POST_PROCESS_O)
d24d56d7ee3420bb79238ff84cad07c20cf4757dScott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Mosercdutils.o: ../../utils/cdutils.c
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser $(COMPILE.c) -o $@ ../../utils/cdutils.c
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser $(POST_PROCESS_O)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser$(PROG): $(OBJS)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser $(POST_PROCESS)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
fb760f70541c9af728eb2ab0c6175875f7448752Scott Moserinstall: all $(ROOTCMD)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moserclean:
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser $(RM) $(OBJS)
65d8ae9c4a66f5ca85289c02dc06d63261c84619Scott Moser
5d066f24e65ef482cdfee241ce65e060d1652efcScott MoserFRC:
5d066f24e65ef482cdfee241ce65e060d1652efcScott Moser
5d066f24e65ef482cdfee241ce65e060d1652efcScott Moserinclude ../../../Makefile.targ
5d066f24e65ef482cdfee241ce65e060d1652efcScott Moser