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# 255661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 267c478bd9Sstevel@tonic-gate 2718c2aff7SartemPROG = rmvolmgr 2818c2aff7SartemOBJS = rmm_common.o rmvolmgr.o vold.o 2918c2aff7SartemSRCS = $(OBJS:%.o=%.c) 307c478bd9Sstevel@tonic-gate 3118c2aff7SartemMANIFEST = rmvolmgr.xml 3218c2aff7SartemSVCMETHOD = svc-rmvolmgr 337c478bd9Sstevel@tonic-gate 3418c2aff7Sarteminclude ../Makefile.cmd 3518c2aff7Sarteminclude ../hal/Makefile.hal 36f808c858Sraf 3718c2aff7SartemPOFILE=rmvolmgr_all.po 3818c2aff7SartemPOFILES=$(OBJS:%.o=%.po) 397c478bd9Sstevel@tonic-gate 40*5801b0f0SToomas SoomeLDLIBS += -ldbus-1 -ldbus-glib-1 -lglib-2.0 -lhal -lhal-storage 41*5801b0f0SToomas SoomeLDLIBS += -lcontract -lscf 42*5801b0f0SToomas SoomeNATIVE_LIBS += libdbus-1.so libdbus-glib-1.so libglib-2.0.so 437c478bd9Sstevel@tonic-gate 4418c2aff7SartemCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) 4518c2aff7SartemCPPFLAGS += -I$(ROOT)/usr/include/hal 46bd0ce624SYuri PankovCSTD = $(CSTD_GNU99) 477c478bd9Sstevel@tonic-gate 48*5801b0f0SToomas SoomeCERRWARN += -_gcc=-Wno-switch 49*5801b0f0SToomas SoomeCERRWARN += $(CNOWARN_UNINIT) 50*5801b0f0SToomas SoomeCERRWARN += -_gcc=-Wno-unused-variable 51*5801b0f0SToomas SoomeCERRWARN += -_gcc=-Wno-parentheses 52*5801b0f0SToomas SoomeCERRWARN += -_gcc=-Wno-unused-function 537014882cSRichard Lowe 545661bb76SJohn Levon# not linted 555661bb76SJohn LevonSMATCH=off 565661bb76SJohn Levon 5718c2aff7SartemROOTCMDDIR = $(ROOTLIB) 5818c2aff7SartemROOTMANIFESTDIR = $(ROOTSVCSYSTEMFILESYSTEM) 5918c2aff7Sartem$(ROOTMANIFEST) := FILEMODE = 444 6018c2aff7Sartem$(ROOTLIBSVCMETHOD)/svc-rmvolmgr:= FILEMODE = 555 617c478bd9Sstevel@tonic-gate 6218c2aff7Sartem.KEEP_STATE: 637c478bd9Sstevel@tonic-gate 6418c2aff7Sartemall: $(PROG) 657c478bd9Sstevel@tonic-gate 6618c2aff7Sartem$(PROG): $(OBJS) 6718c2aff7Sartem $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) 6818c2aff7Sartem $(POST_PROCESS) 6918c2aff7Sartem 7018c2aff7Sarteminstall: all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD) 717c478bd9Sstevel@tonic-gate 7218c2aff7Sartemclean: 7318c2aff7Sartem $(RM) $(OBJS) 747c478bd9Sstevel@tonic-gate 7518c2aff7Sartemcheck: $(CHKMANIFEST) 767c478bd9Sstevel@tonic-gate 7718c2aff7Sartem$(POFILE): $(POFILES) 7818c2aff7Sartem $(RM) $@ 7918c2aff7Sartem $(CAT) $(POFILES) > $@ 807c478bd9Sstevel@tonic-gate 8118c2aff7Sarteminclude ../Makefile.targ 82