xref: /illumos-gate/usr/src/lib/smbclnt/Makefile.lib (revision 241c90a0)
18329232eSGordon Ross#
28329232eSGordon Ross# CDDL HEADER START
38329232eSGordon Ross#
48329232eSGordon Ross# The contents of this file are subject to the terms of the
58329232eSGordon Ross# Common Development and Distribution License (the "License").
68329232eSGordon Ross# You may not use this file except in compliance with the License.
78329232eSGordon Ross#
88329232eSGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98329232eSGordon Ross# or http://www.opensolaris.org/os/licensing.
108329232eSGordon Ross# See the License for the specific language governing permissions
118329232eSGordon Ross# and limitations under the License.
128329232eSGordon Ross#
138329232eSGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
148329232eSGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
158329232eSGordon Ross# If applicable, add the following below this CDDL HEADER, with the
168329232eSGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
178329232eSGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
188329232eSGordon Ross#
198329232eSGordon Ross# CDDL HEADER END
208329232eSGordon Ross#
218329232eSGordon Ross#
228329232eSGordon Ross# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
238329232eSGordon Ross# Use is subject to license terms.
248329232eSGordon Ross#
258329232eSGordon Ross# Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
268329232eSGordon Ross#
278329232eSGordon Ross
288329232eSGordon Ross#
298329232eSGordon Ross# Common Makefile definitions for smbclnt
308329232eSGordon Ross#
318329232eSGordon Ross
328329232eSGordon Ross# We reset the Makefile.lib macros ROOTLIBDIR to refer to usr/lib/smbfs.
338329232eSGordon Ross# For 64 bit, we reset ROOTLIBDIR64 to refer to usr/lib/smbfs/$(MACH64).
348329232eSGordon Ross# Install the userland library header files under /usr/include/netsmb
358329232eSGordon RossROOTSMBHDRDIR=	$(ROOTHDRDIR)/netsmb
368329232eSGordon RossROOTSMBHDRS=	$(HDRS:%=$(ROOTSMBHDRDIR)/%)
378329232eSGordon Ross
388329232eSGordon RossROOTLIBDIR =	$(ROOT)/usr/lib/smbfs
398329232eSGordon RossROOTLIBDIR64 =	$(ROOT)/usr/lib/smbfs/$(MACH64)
408329232eSGordon Ross
418329232eSGordon RossSRCDIR=		../common
42*241c90a0SRichard LoweLIBS=		$(DYNLIB)
438329232eSGordon Ross
448329232eSGordon RossCSTD =		$(CSTD_GNU99)
458329232eSGordon Ross
468329232eSGordon RossCPPFLAGS +=	-I$(SRCDIR) -I.
478329232eSGordon RossLDLIBS32 +=	-L$(ROOT)/usr/lib/smbfs
488329232eSGordon RossLDLIBS64 +=	-L$(ROOT)/usr/lib/smbfs/$(MACH64)
498329232eSGordon Ross
508329232eSGordon RossCLEANFILES += $(OBJECTS:%_ndr.o=%_ndr.c)
51