17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5f808c858Sraf# Common Development and Distribution License (the "License"). 6f808c858Sraf# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22f808c858Sraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 2618c2aff7SartemPROG = hald-probe-volume 2718c2aff7SartemOBJS = probe-volume.o cdutils.o fsutils.o logger.o 2818c2aff7SartemSRCS = probe-volume.c 297c478bd9Sstevel@tonic-gate 3018c2aff7Sarteminclude ../../../Makefile.cmd 3118c2aff7Sarteminclude ../../Makefile.hal 327c478bd9Sstevel@tonic-gate 3318c2aff7SartemROOTCMDDIR = $(ROOTLIB_HAL) 34f808c858Sraf 3518c2aff7SartemLDLIBS += -lc -ldbus-1 -lhal -lfstyp -lnvpair -ladm -lefi 36*5801b0f0SToomas SoomeNATIVE_LIBS += libdbus-1.so 377c478bd9Sstevel@tonic-gate 3818c2aff7SartemCPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 3918c2aff7SartemCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) 4018c2aff7SartemCPPFLAGS += -I$(ROOT)/usr/include/hal -I../../utils -I../../hald 41bd0ce624SYuri PankovCSTD = $(CSTD_GNU99) 427c478bd9Sstevel@tonic-gate 4318c2aff7Sartem.KEEP_STATE: 447c478bd9Sstevel@tonic-gate 4518c2aff7Sartemall: $(PROG) 467c478bd9Sstevel@tonic-gate 4718c2aff7Sartemlogger.o: ../../hald/logger.c 4818c2aff7Sartem $(COMPILE.c) -o $@ ../../hald/logger.c 4918c2aff7Sartem $(POST_PROCESS_O) 507c478bd9Sstevel@tonic-gate 5118c2aff7Sartemfsutils.o: ../../utils/fsutils.c 5218c2aff7Sartem $(COMPILE.c) -o $@ ../../utils/fsutils.c 5318c2aff7Sartem $(POST_PROCESS_O) 547c478bd9Sstevel@tonic-gate 5518c2aff7Sartemcdutils.o: ../../utils/cdutils.c 5618c2aff7Sartem $(COMPILE.c) -o $@ ../../utils/cdutils.c 5718c2aff7Sartem $(POST_PROCESS_O) 587c478bd9Sstevel@tonic-gate 5918c2aff7Sartem$(PROG): $(OBJS) 6018c2aff7Sartem $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 6118c2aff7Sartem $(POST_PROCESS) 627c478bd9Sstevel@tonic-gate 6318c2aff7Sarteminstall: all $(ROOTCMD) 647c478bd9Sstevel@tonic-gate 6518c2aff7Sartemclean: 6618c2aff7Sartem $(RM) $(OBJS) 677c478bd9Sstevel@tonic-gate 6818c2aff7SartemFRC: 697c478bd9Sstevel@tonic-gate 7018c2aff7Sarteminclude ../../../Makefile.targ 71