12f172c55SRobert Thurlow# 22f172c55SRobert Thurlow# CDDL HEADER START 32f172c55SRobert Thurlow# 42f172c55SRobert Thurlow# The contents of this file are subject to the terms of the 52f172c55SRobert Thurlow# Common Development and Distribution License (the "License"). 62f172c55SRobert Thurlow# You may not use this file except in compliance with the License. 72f172c55SRobert Thurlow# 82f172c55SRobert Thurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92f172c55SRobert Thurlow# or http://www.opensolaris.org/os/licensing. 102f172c55SRobert Thurlow# See the License for the specific language governing permissions 112f172c55SRobert Thurlow# and limitations under the License. 122f172c55SRobert Thurlow# 132f172c55SRobert Thurlow# When distributing Covered Code, include this CDDL HEADER in each 142f172c55SRobert Thurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152f172c55SRobert Thurlow# If applicable, add the following below this CDDL HEADER, with the 162f172c55SRobert Thurlow# fields enclosed by brackets "[]" replaced with your own identifying 172f172c55SRobert Thurlow# information: Portions Copyright [yyyy] [name of copyright owner] 182f172c55SRobert Thurlow# 192f172c55SRobert Thurlow# CDDL HEADER END 202f172c55SRobert Thurlow# 212f172c55SRobert Thurlow# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 222f172c55SRobert Thurlow# Use is subject to license terms. 232f172c55SRobert Thurlow# 245661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 252f172c55SRobert Thurlow 262f172c55SRobert ThurlowLIBRARY = libnfs_basic.a 272f172c55SRobert ThurlowVERS = .1 282f172c55SRobert Thurlow 292f172c55SRobert ThurlowLIBOBJS = libnfs_basic.o 302f172c55SRobert ThurlowCOMMON = ref_subr.o 312f172c55SRobert ThurlowOBJECTS = $(LIBOBJS) $(COMMON) 322f172c55SRobert Thurlow 332f172c55SRobert Thurlowinclude $(SRC)/lib/Makefile.lib 342f172c55SRobert Thurlow 352f172c55SRobert ThurlowROOTLIBDIR = $(ROOT)/usr/lib/reparse 362f172c55SRobert ThurlowROOTLIBDIR64 = $(ROOT)/usr/lib/reparse/$(MACH64) 372f172c55SRobert Thurlow 382f172c55SRobert ThurlowLIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c) 392f172c55SRobert Thurlow 402f172c55SRobert ThurlowLIBS = $(DYNLIB) 412f172c55SRobert ThurlowLDLIBS += -lc -lnsl 422f172c55SRobert Thurlow 43*a5f20e89SToomas SoomeCSTD = $(CSTD_GNU99) 442f172c55SRobert ThurlowCFLAGS += $(CCVERBOSE) 452f172c55SRobert ThurlowCPPFLAGS += -D_REENTRANT -I$(SRC)/cmd/fs.d/nfs/lib 462f172c55SRobert Thurlow 475661bb76SJohn Levon# not linted 485661bb76SJohn LevonSMATCH=off 495661bb76SJohn Levon 508222814eSRichard LoweZGUIDANCE= -Wl,-zguidance=noasserts 518222814eSRichard Lowe 522f172c55SRobert Thurlow.KEEP_STATE: 532f172c55SRobert Thurlow 542f172c55SRobert Thurlowall: $(LIBS) 552f172c55SRobert Thurlow 562f172c55SRobert Thurlowinstall: $(ROOTLIBDIR) $(ROOTLIBDIR64) all 572f172c55SRobert Thurlow 582f172c55SRobert Thurlowpics/ref_subr.o: ../../lib/ref_subr.c 592f172c55SRobert Thurlow $(COMPILE.c) -o pics/ref_subr.o ../../lib/ref_subr.c 602f172c55SRobert Thurlow $(POST_PROCESS_O) 612f172c55SRobert Thurlow 622f172c55SRobert Thurlow$(ROOTLIBDIR): 632f172c55SRobert Thurlow $(INS.dir) 642f172c55SRobert Thurlow 652f172c55SRobert Thurlow$(ROOTLIBDIR64): 662f172c55SRobert Thurlow $(INS.dir) 672f172c55SRobert Thurlow 682f172c55SRobert Thurlowinclude $(SRC)/lib/Makefile.targ 69