Print this page
XXX Remove nawk(1)
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libsmbfs/Makefile.com
+++ new/usr/src/lib/libsmbfs/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 #
28 28 # lib/libsmbfs/Makefile.com
29 29 #
30 30
31 31 LIBRARY= libsmbfs.a
32 32 VERS= .1
33 33
34 34 # leaving out: kiconv.o
35 35
36 36 OBJ_LIB=\
37 37 acl_api.o \
38 38 acl_print.o \
39 39 charsets.o \
40 40 cfopt.o \
41 41 connect.o \
42 42 crypt.o \
43 43 ctx.o \
44 44 derparse.o \
45 45 file.o \
46 46 findvc.o \
47 47 getaddr.o \
48 48 iod_cl.o \
49 49 iod_wk.o \
50 50 keychain.o \
51 51 krb5ssp.o \
52 52 mbuf.o \
53 53 nb.o \
54 54 nb_name.o \
55 55 nb_net.o \
56 56 nb_ssn.o \
57 57 nbns_rq.o \
58 58 negprot.o \
59 59 netshareenum.o \
60 60 newvc.o \
61 61 nls.o \
62 62 ntlm.o \
63 63 ntlmssp.o \
64 64 print.o \
65 65 rap.o \
66 66 rcfile.o \
67 67 rq.o \
68 68 signing.o \
69 69 spnego.o \
70 70 spnegoparse.o \
71 71 ssnsetup.o \
72 72 ssp.o \
73 73 subr.o \
74 74 ui-sun.o \
75 75 utf_str.o
76 76
77 77 OBJ_CMN= smbfs_ntacl.o
78 78
79 79 OBJECTS= $(OBJ_LIB) $(OBJ_CMN)
80 80
81 81 include $(SRC)/lib/Makefile.lib
82 82
83 83 LIBS = $(DYNLIB) $(LINTLIB)
84 84
85 85 SRCDIR= ../smb
86 86 CMNDIR= $(SRC)/common/smbclnt
87 87
88 88 SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
89 89 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
90 90
91 91 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
92 92
93 93 C99MODE= $(C99_ENABLE)
94 94
95 95 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
96 96
97 97 # normal warnings...
98 98 CFLAGS += $(CCVERBOSE)
99 99
100 100 CERRWARN += -_gcc=-Wno-uninitialized
101 101 CERRWARN += -_gcc=-Wno-unused-variable
102 102
103 103 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
104 104 -I$(SRCDIR) -I.. \
105 105 -I$(SRC)/uts/common \
106 106 -I$(SRC)/common/smbclnt
107 107
108 108 # Debugging
↓ open down ↓ |
108 lines elided |
↑ open up ↑ |
109 109 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
110 110
111 111 # uncomment these for dbx debugging
112 112 #COPTFLAG = -g
113 113 #CTF_FLAGS =
114 114 #CTFCONVERT_O=
115 115 #CTFMERGE_LIB=
116 116
117 117 # Filter out the less important lint.
118 118 # See lgrep.awk
119 -LGREP = nawk -f $(SRCDIR)/lgrep.awk
119 +LGREP = /usr/xpg4/bin/awk -f $(SRCDIR)/lgrep.awk
120 120 LTAIL += 2>&1 | $(LGREP)
121 121
122 122 all: $(LIBS)
123 123
124 124 lint: lintcheck_t
125 125
126 126 include ../../Makefile.targ
127 127
128 128 lintcheck_t: $$(SRCS)
129 129 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
130 130
131 131 objs/%.o pics/%.o: $(CMNDIR)/%.c
132 132 $(COMPILE.c) -o $@ $<
133 133 $(POST_PROCESS_O)
134 134
135 135 .KEEP_STATE:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX