feature_tests.h: repurpose __UNLEASHED_VISIBLE
[unleashed.git] / usr / src / lib / libsmbfs / Makefile.com
blob0ec84e9c67fe6fb1cb86c99bf188a48cffb92b79
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
23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24 # Use is subject to license terms.
25 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
27 # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
31 # lib/libsmbfs/Makefile.com
34 LIBRARY=        libsmbfs.a
35 VERS=           .1
37 # leaving out: kiconv.o
39 OBJ_LIB=\
40         acl_api.o \
41         acl_print.o \
42         charsets.o \
43         cfopt.o \
44         connect.o \
45         crypt.o \
46         ctx.o \
47         derparse.o \
48         file.o \
49         findvc.o \
50         getaddr.o \
51         iod_cl.o \
52         iod_wk.o \
53         keychain.o \
54         krb5ssp.o \
55         mbuf.o \
56         nb.o \
57         nb_name.o \
58         nb_net.o \
59         nb_ssn.o \
60         nbns_rq.o \
61         negprot.o \
62         newvc.o \
63         nls.o \
64         ntlm.o \
65         ntlmssp.o \
66         print.o \
67         rap.o \
68         rcfile.o \
69         rq.o \
70         signing.o \
71         spnego.o \
72         spnegoparse.o \
73         ssnsetup.o \
74         ssp.o \
75         subr.o \
76         ui-sun.o \
77         utf_str.o
79 OBJ_CMN= smbfs_ntacl.o 
81 OBJECTS= $(OBJ_LIB) $(OBJ_CMN)
83 include $(SRC)/lib/Makefile.lib
85 LIBS =          $(DYNLIB)
87 SRCDIR=         ../smb
88 CMNDIR=         $(SRC)/common/smbclnt
90 SRCS=           $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
91                 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
93 C99MODE=        $(C99_ENABLE)
95 LDLIBS += -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
97 # normal warnings...
99 CERRWARN +=     -Wno-uninitialized
100 CERRWARN +=     -Wno-unused-variable
102 CPPFLAGS += -D__EXTENSIONS__ -DMIA \
103         -I$(SRCDIR) -I.. -I../netsmb \
104         -I$(SRC)/uts/common \
105         -I$(SRCTOP)/include \
106         -I$(SRC)/common/smbclnt
108 # Debugging
109 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
111 # uncomment these for dbx debugging
112 #COPTFLAG = -g
113 #CTF_FLAGS =
114 #CTFCONVERT_O=
115 #CTFMERGE_LIB=
117 all:    $(LIBS)
119 include ../../Makefile.targ
121 objs/%.o pics/%.o: $(CMNDIR)/%.c
122         $(COMPILE.c) -o $@ $<
123         $(POST_PROCESS_O)
125 .KEEP_STATE: