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 5a192e900Samaguire# Common Development and Distribution License (the "License"). 6a192e900Samaguire# 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# 22a192e900Samaguire# 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 277c478bd9Sstevel@tonic-gatePROG = rpc.smserverd 287c478bd9Sstevel@tonic-gateOBJS = smediad.o smediad_err.o myaudit.o smed_svc.o smed_xdr.o 297c478bd9Sstevel@tonic-gateSRCS = $(OBJS:%.o=%.c) 307c478bd9Sstevel@tonic-gatelint := SRCS = smediad.c smediad_err.c myaudit.c 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateMANIFEST= smserver.xml 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateDERIVED_FILES = smed.h smed_xdr.c smed_svc.c 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate# install specifics 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateROOTLIBSMSERVERDIR= $(ROOTLIB)/smedia 397c478bd9Sstevel@tonic-gateROOTLIBSMSERVERD= $(PROG:%=$(ROOTLIBSMSERVERDIR)/%) 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC) 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateLDLIBS += -lnsl -lbsm 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT 487c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 49*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 507014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 515661bb76SJohn Levon 525661bb76SJohn Levon# not linted 535661bb76SJohn LevonSMATCH=off 545661bb76SJohn Levon 557c478bd9Sstevel@tonic-gateLINTFLAGS += -u 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate.KEEP_STATE: 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gateall: $(PROG) 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateinstall: all $(ROOTLIBSMSERVERDIR) $(ROOTLIBSMSERVERD) $(ROOTMANIFEST) 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate$(PROG): $(DERIVED_FILES) $(OBJS) 647c478bd9Sstevel@tonic-gate $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) 657c478bd9Sstevel@tonic-gate $(POST_PROCESS) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gatecheck: $(CHKMANIFEST) 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gateclean: 707c478bd9Sstevel@tonic-gate $(RM) $(OBJS) $(DERIVED_FILES) 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gatelint: smed.h lint_SRCS 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate$(ROOTLIBSMSERVERDIR): 777c478bd9Sstevel@tonic-gate $(INS.dir) 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate$(ROOTLIBSMSERVERDIR)/%: % 807c478bd9Sstevel@tonic-gate $(INS.file) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate# 837c478bd9Sstevel@tonic-gate# Derived files 847c478bd9Sstevel@tonic-gate# 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gatesmed.h: smed.x 877c478bd9Sstevel@tonic-gate $(RPCGEN) -C -h smed.x > $@ 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gatesmed_xdr.c: smed.x smed.h 907c478bd9Sstevel@tonic-gate $(RPCGEN) -c smed.x > $@ 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gatesmed_svc.c: smed.x 937c478bd9Sstevel@tonic-gate $(RPCGEN) -m smed.x > $@ 947c478bd9Sstevel@tonic-gate 95