2317N/A#
4174N/A# CDDL HEADER START
2317N/A#
2317N/A# The contents of this file are subject to the terms of the
2317N/A# Common Development and Distribution License (the "License").
2317N/A# You may not use this file except in compliance with the License.
2362N/A#
2317N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
2317N/A# See the License for the specific language governing permissions
2317N/A# and limitations under the License.
2317N/A#
2317N/A# When distributing Covered Code, include this CDDL HEADER in each
2317N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2317N/A# If applicable, add the following below this CDDL HEADER, with the
2317N/A# fields enclosed by brackets "[]" replaced with your own identifying
2317N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2317N/A#
2317N/A# CDDL HEADER END
2317N/A#
2362N/A#
2362N/A# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
2362N/A#
2317N/A
2317N/AHDRS= libsmb.h
2317N/A
5784N/AGENSRCS = common/smb_status_tbl.h
2317N/ACLEANFILES += $(GENSRCS)
3915N/A
3915N/Aall install lint: $(GENSRCS)
3915N/A
2317N/Ainclude ../Makefile.lib
3915N/A
3915N/A# Install the library header files under /usr/include/smbsrv.
2317N/AROOTSMBHDRDIR= $(ROOTHDRDIR)/smbsrv
2317N/AROOTSMBHDRS= $(HDRS:%=$(ROOTSMBHDRDIR)/%)
6443N/A
2317N/ASRCDIR= ../common
2317N/ALIBS= $(DYNLIB) $(LINTLIB)
6443N/AC99MODE = -xc99=%all
2317N/AC99LMODE = -Xc99=%all
4807N/ACPPFLAGS += -I$(SRCDIR) -I.
5784N/A$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
4807N/A
3915N/ASUBDIRS= $(MACH)
5784N/A$(BUILD64)SUBDIRS += $(MACH64)
5784N/A
5784N/AHDRDIR= common
3915N/A
3915N/Aall := TARGET = all
3915N/Aclean := TARGET = clean
5784N/Aclobber := TARGET = clobber
install := TARGET = install
lint := TARGET = lint
stub := TARGET = stub
stubinstall := TARGET = stubinstall
.KEEP_STATE:
all clean clobber install lint stub stubinstall: $(SUBDIRS)
install: install_h $(SUBDIRS)
check: $(CHECKHDRS)
install_h: $(ROOTSMBHDRS)
$(SUBDIRS): FRC
@cd $@; pwd; VERSION='$(VERSION)' $(MAKE) $(TARGET)
FRC:
$(ROOTSMBHDRDIR)/%: common/%
$(INS.file)
include ../Makefile.targ
$(GENSRCS): common/smb_status_gen.awk $(SRC)/uts/common/smb/ntstatus.h
nawk -f common/smb_status_gen.awk \
$(SRC)/uts/common/smb/ntstatus.h > $@