92
93 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
94
95 CSTD= $(CSTD_GNU99)
96
97 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
98
99 # normal warnings...
100 CFLAGS += $(CCVERBOSE)
101
102 CERRWARN += -_gcc=-Wno-uninitialized
103 CERRWARN += -_gcc=-Wno-unused-variable
104
105 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
106 -I$(SRCDIR) -I.. -I../netsmb \
107 -I$(SRC)/uts/common \
108 -I$(SRC)/common/smbclnt
109
110 # Debugging
111 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
112
113 # uncomment these for dbx debugging
114 #COPTFLAG = -g
115 #CTF_FLAGS =
116 #CTFCONVERT_O=
117 #CTFMERGE_LIB=
118
119 # Filter out the less important lint.
120 # See lgrep.awk
121 LGREP = $(AWK) -f $(SRCDIR)/lgrep.awk
122 LTAIL += 2>&1 | $(LGREP)
123
124 all: $(LIBS)
125
126 lint: lintcheck_t
127
128 include ../../Makefile.targ
129
130 lintcheck_t: $$(SRCS)
131 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
132
133 objs/%.o pics/%.o: $(CMNDIR)/%.c
134 $(COMPILE.c) -o $@ $<
135 $(POST_PROCESS_O)
136
137 .KEEP_STATE:
|
92
93 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
94
95 CSTD= $(CSTD_GNU99)
96
97 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
98
99 # normal warnings...
100 CFLAGS += $(CCVERBOSE)
101
102 CERRWARN += -_gcc=-Wno-uninitialized
103 CERRWARN += -_gcc=-Wno-unused-variable
104
105 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
106 -I$(SRCDIR) -I.. -I../netsmb \
107 -I$(SRC)/uts/common \
108 -I$(SRC)/common/smbclnt
109
110 # Debugging
111 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
112
113 # Filter out the less important lint.
114 # See lgrep.awk
115 LGREP = $(AWK) -f $(SRCDIR)/lgrep.awk
116 LTAIL += 2>&1 | $(LGREP)
117
118 all: $(LIBS)
119
120 lint: lintcheck_t
121
122 include ../../Makefile.targ
123
124 lintcheck_t: $$(SRCS)
125 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
126
127 objs/%.o pics/%.o: $(CMNDIR)/%.c
128 $(COMPILE.c) -o $@ $<
129 $(POST_PROCESS_O)
130
131 .KEEP_STATE:
|