13299f39fSGordon Ross# 23299f39fSGordon Ross# CDDL HEADER START 33299f39fSGordon Ross# 43299f39fSGordon Ross# The contents of this file are subject to the terms of the 53299f39fSGordon Ross# Common Development and Distribution License (the "License"). 63299f39fSGordon Ross# You may not use this file except in compliance with the License. 73299f39fSGordon Ross# 83299f39fSGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93299f39fSGordon Ross# or http://www.opensolaris.org/os/licensing. 103299f39fSGordon Ross# See the License for the specific language governing permissions 113299f39fSGordon Ross# and limitations under the License. 123299f39fSGordon Ross# 133299f39fSGordon Ross# When distributing Covered Code, include this CDDL HEADER in each 143299f39fSGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153299f39fSGordon Ross# If applicable, add the following below this CDDL HEADER, with the 163299f39fSGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying 173299f39fSGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner] 183299f39fSGordon Ross# 193299f39fSGordon Ross# CDDL HEADER END 203299f39fSGordon Ross# 213299f39fSGordon Ross 223299f39fSGordon Ross# 233299f39fSGordon Ross# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 243299f39fSGordon Ross# Use is subject to license terms. 253299f39fSGordon Ross# 26*ce8560eeSMatt Barden# Copyright 2020 Tintri by DDN, Inc. All rights reserved. 273299f39fSGordon Ross# 283299f39fSGordon Ross 293299f39fSGordon RossLIBRARY = libmlrpc.a 303299f39fSGordon RossVERS = .2 313299f39fSGordon Ross 323299f39fSGordon RossOBJS_COMMON = \ 333299f39fSGordon Ross mlrpc_clh.o \ 34*ce8560eeSMatt Barden ndr_auth.o \ 353299f39fSGordon Ross ndr_client.o \ 363299f39fSGordon Ross ndr_heap.o \ 373299f39fSGordon Ross ndr_marshal.o \ 383299f39fSGordon Ross ndr_ops.o \ 393299f39fSGordon Ross ndr_process.o \ 403299f39fSGordon Ross ndr_server.o \ 413299f39fSGordon Ross ndr_svc.o \ 423299f39fSGordon Ross ndr_wchar.o 433299f39fSGordon Ross 443299f39fSGordon RossNDLLIST = rpcpdu 453299f39fSGordon Ross 463299f39fSGordon RossOBJECTS= $(OBJS_COMMON) $(NDLLIST:%=%_ndr.o) 473299f39fSGordon RossCLEANFILES += $(NDLLIST:%=%_ndr.c) 483299f39fSGordon Ross 493299f39fSGordon Rossinclude ../../Makefile.lib 503299f39fSGordon Ross 51241c90a0SRichard LoweLIBS= $(DYNLIB) 523299f39fSGordon Ross 533299f39fSGordon RossLDLIBS += -lsmbfs -luuid -lc 543299f39fSGordon Ross 553299f39fSGordon RossSRCDIR= ../common 563299f39fSGordon RossSRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) 573299f39fSGordon Ross 583299f39fSGordon RossNDLDIR = $(SRCDIR) 593299f39fSGordon Ross 603299f39fSGordon RossCFLAGS += $(CCVERBOSE) 613299f39fSGordon RossINCS = -I. -I$(SRCDIR) 623299f39fSGordon RossCPPFLAGS += $(INCS) -D_REENTRANT 633299f39fSGordon Ross 643299f39fSGordon Rossall: $(LIBS) 653299f39fSGordon Ross 663299f39fSGordon Ross 673299f39fSGordon Rossinclude ../../Makefile.targ 683299f39fSGordon Ross 693299f39fSGordon Rossobjs/%_ndr.o pics/%_ndr.o : %_ndr.c 703299f39fSGordon Ross 713299f39fSGordon Ross%_ndr.c : $(NDLDIR)/%.ndl 723299f39fSGordon Ross $(NDRGEN) -Y $(ANSI_CPP) $(CPPFLAGS) $< 733299f39fSGordon Ross 743299f39fSGordon Ross.KEEP_STATE: 75