Merge illumos-gate
[unleashed/lotheac.git] / usr / src / lib / libshare / smb / Makefile.com
blob7408e826ebf1a454e52cacf94c9d2b5261f83f80
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
27 # Copyright (c) 2018, Joyent, Inc.
29 LIBRARY =       libshare_smb.a
30 VERS =          .1
31 SMBMLSVC_DIR    = $(SRC)/lib/smbsrv/libmlsvc/common
32 SMBBASE_DIR     = $(SRC)/lib/smbsrv/libsmb/common
33 SMBCOMMON_DIR   = $(SRC)/common/smbsrv
35 LIBOBJS =       libshare_smb.o smb_share_doorclnt.o
36 SMBCOMMON_OBJ = smb_door_legacy.o
37 SMBBASE_OBJ =   smb_cfg.o smb_scfutil.o
38 OBJECTS =       $(LIBOBJS) $(SMBCOMMON_OBJ) $(SMBBASE_OBJ)
40 include ../../../Makefile.lib
42 ROOTLIBDIR =    $(ROOT)/usr/lib/fs/smb
43 ROOTLIBDIR64 =  $(ROOT)/usr/lib/fs/smb/$(MACH64)
45 LIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
47 LIBS =          $(DYNLIB)
48 LDLIBS +=       -lshare -lscf -luuid -ldlpi -lnvpair -lxml2 -lumem -lc
50 CERRWARN +=     -Wno-char-subscripts
51 CERRWARN +=     -Wno-switch
53 # not linted
54 SMATCH=off
56 CPPFLAGS +=     -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
57                 -I$(SRCDIR)/../common
59 .KEEP_STATE:
61 all: $(LIBS)
63 install: all
65 pics/smb_door_client.o:       $(SMBBASE_DIR)/smb_door_client.c
66         $(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_door_client.c
67         $(POST_PROCESS_O)
69 pics/smb_door_legacy.o:       $(SMBCOMMON_DIR)/smb_door_legacy.c
70         $(COMPILE.c) -o $@ $(SMBCOMMON_DIR)/smb_door_legacy.c
71         $(POST_PROCESS_O)
73 pics/smb_cfg.o:       $(SMBBASE_DIR)/smb_cfg.c
74         $(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_cfg.c
75         $(POST_PROCESS_O)
77 pics/smb_scfutil.o:       $(SMBBASE_DIR)/smb_scfutil.c
78         $(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_scfutil.c
79         $(POST_PROCESS_O)
81 include ../../../Makefile.targ