1*da6c28aaSamw# 2*da6c28aaSamw# CDDL HEADER START 3*da6c28aaSamw# 4*da6c28aaSamw# The contents of this file are subject to the terms of the 5*da6c28aaSamw# Common Development and Distribution License (the "License"). 6*da6c28aaSamw# You may not use this file except in compliance with the License. 7*da6c28aaSamw# 8*da6c28aaSamw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*da6c28aaSamw# or http://www.opensolaris.org/os/licensing. 10*da6c28aaSamw# See the License for the specific language governing permissions 11*da6c28aaSamw# and limitations under the License. 12*da6c28aaSamw# 13*da6c28aaSamw# When distributing Covered Code, include this CDDL HEADER in each 14*da6c28aaSamw# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*da6c28aaSamw# If applicable, add the following below this CDDL HEADER, with the 16*da6c28aaSamw# fields enclosed by brackets "[]" replaced with your own identifying 17*da6c28aaSamw# information: Portions Copyright [yyyy] [name of copyright owner] 18*da6c28aaSamw# 19*da6c28aaSamw# CDDL HEADER END 20*da6c28aaSamw# 21*da6c28aaSamw# 22*da6c28aaSamw# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*da6c28aaSamw# Use is subject to license terms. 24*da6c28aaSamw# 25*da6c28aaSamw#ident "%Z%%M% %I% %E% SMI" 26*da6c28aaSamw 27*da6c28aaSamw# 28*da6c28aaSamw# Common Makefile definitions for smbsrv. 29*da6c28aaSamw# 30*da6c28aaSamw 31*da6c28aaSamw# We reset the Makefile.lib macros ROOTLIBDIR to refer to usr/lib/smbsrv 32*da6c28aaSamw# We also install the userland library header files under /usr/include/smbsrv 33*da6c28aaSamwROOTSMBHDRDIR= $(ROOTHDRDIR)/smbsrv 34*da6c28aaSamwROOTSMBHDRS= $(HDRS:%=$(ROOTSMBHDRDIR)/%) 35*da6c28aaSamw 36*da6c28aaSamwROOTLIBDIR = $(ROOT)/usr/lib/smbsrv 37*da6c28aaSamw 38*da6c28aaSamwSRCDIR= ../common 39*da6c28aaSamwNDLDIR= $(ROOT)/usr/include/smbsrv/ndl 40*da6c28aaSamwLIBS= $(DYNLIB) $(LINTLIB) 41*da6c28aaSamwC99MODE = -xc99=%all 42*da6c28aaSamwC99LMODE = -Xc99=%all 43*da6c28aaSamwCPPFLAGS += -I$(SRCDIR) -I. 44*da6c28aaSamwDYNFLAGS += -R/usr/lib/smbsrv 45*da6c28aaSamwDYNFLAGS64 += -R/usr/lib/smbsrv/$(MACH64) 46*da6c28aaSamwLDLIBS32 += -L$(ROOT)/usr/lib/smbsrv 47*da6c28aaSamwLDLIBS64 += -L$(ROOT)/usr/lib/smbsrv/$(MACH64) 48*da6c28aaSamw$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 49*da6c28aaSamw 50*da6c28aaSamwCLEANFILES += $(OBJECTS:%_ndr.o=%_ndr.c) 51