1 #
   2 # CDDL HEADER START
   3 #
   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.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 #
  28 # lib/libsmbfs/Makefile.com
  29 #
  30 
  31 LIBRARY=        libsmbfs.a
  32 VERS=           .1
  33 
  34 # leaving out: kiconv.o
  35 
  36 OBJ_LIB=\
  37         acl_api.o \
  38         acl_print.o \
  39         charsets.o \
  40         cfopt.o \
  41         connect.o \
  42         crypt.o \
  43         ctx.o \
  44         derparse.o \
  45         file.o \
  46         findvc.o \
  47         getaddr.o \
  48         iod_cl.o \
  49         iod_wk.o \
  50         keychain.o \
  51         krb5ssp.o \
  52         mbuf.o \
  53         nb.o \
  54         nb_name.o \
  55         nb_net.o \
  56         nb_ssn.o \
  57         nbns_rq.o \
  58         negprot.o \
  59         netshareenum.o \
  60         newvc.o \
  61         nls.o \
  62         ntlm.o \
  63         ntlmssp.o \
  64         print.o \
  65         rap.o \
  66         rcfile.o \
  67         rq.o \
  68         signing.o \
  69         spnego.o \
  70         spnegoparse.o \
  71         ssnsetup.o \
  72         ssp.o \
  73         subr.o \
  74         ui-sun.o \
  75         utf_str.o
  76 
  77 OBJ_CMN= smbfs_ntacl.o 
  78 
  79 OBJECTS= $(OBJ_LIB) $(OBJ_CMN)
  80 
  81 include $(SRC)/lib/Makefile.lib
  82 
  83 LIBS =          $(DYNLIB) $(LINTLIB)
  84 
  85 SRCDIR=         ../smb
  86 CMNDIR=         $(SRC)/common/smbclnt
  87 
  88 SRCS=           $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
  89                 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
  90 
  91 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  92 
  93 C99MODE=        $(C99_ENABLE)
  94 
  95 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
  96 
  97 # normal warnings...
  98 CFLAGS  +=      $(CCVERBOSE) 
  99 
 100 CERRWARN +=     -_gcc=-Wno-uninitialized
 101 CERRWARN +=     -_gcc=-Wno-unused-variable
 102 
 103 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
 104         -I$(SRCDIR) -I.. \
 105         -I$(SRC)/uts/common \
 106         -I$(SRC)/common/smbclnt
 107 
 108 # Debugging
 109 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
 110 
 111 # uncomment these for dbx debugging
 112 #COPTFLAG = -g
 113 #CTF_FLAGS =
 114 #CTFCONVERT_O=
 115 #CTFMERGE_LIB=
 116 
 117 # Filter out the less important lint.
 118 # See lgrep.awk
 119 LGREP = nawk -f $(SRCDIR)/lgrep.awk
 120 LTAIL   +=      2>&1 | $(LGREP)
 121 
 122 all:    $(LIBS)
 123 
 124 lint:   lintcheck_t
 125 
 126 include ../../Makefile.targ
 127 
 128 lintcheck_t: $$(SRCS)
 129         $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
 130 
 131 objs/%.o pics/%.o: $(CMNDIR)/%.c
 132         $(COMPILE.c) -o $@ $<
 133         $(POST_PROCESS_O)
 134 
 135 .KEEP_STATE: