xref: /titanic_51/usr/src/lib/libads/Makefile.com (revision b3700b074e637f8c6991b70754c88a2cfffb246b)
1*b3700b07SGordon Ross#
2*b3700b07SGordon Ross# CDDL HEADER START
3*b3700b07SGordon Ross#
4*b3700b07SGordon Ross# The contents of this file are subject to the terms of the
5*b3700b07SGordon Ross# Common Development and Distribution License (the "License").
6*b3700b07SGordon Ross# You may not use this file except in compliance with the License.
7*b3700b07SGordon Ross#
8*b3700b07SGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*b3700b07SGordon Ross# or http://www.opensolaris.org/os/licensing.
10*b3700b07SGordon Ross# See the License for the specific language governing permissions
11*b3700b07SGordon Ross# and limitations under the License.
12*b3700b07SGordon Ross#
13*b3700b07SGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
14*b3700b07SGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*b3700b07SGordon Ross# If applicable, add the following below this CDDL HEADER, with the
16*b3700b07SGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
17*b3700b07SGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
18*b3700b07SGordon Ross#
19*b3700b07SGordon Ross# CDDL HEADER END
20*b3700b07SGordon Ross#
21*b3700b07SGordon Ross#
22*b3700b07SGordon Ross# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*b3700b07SGordon Ross# Use is subject to license terms.
24*b3700b07SGordon Ross#
25*b3700b07SGordon Ross# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
26*b3700b07SGordon Ross#
27*b3700b07SGordon Ross
28*b3700b07SGordon RossLIBRARY =	libads.a
29*b3700b07SGordon RossVERS =		.1
30*b3700b07SGordon RossLINT_OBJECTS =	dsgetdc.o poke.o
31*b3700b07SGordon RossOBJECTS =	$(LINT_OBJECTS) adspriv_xdr.o
32*b3700b07SGordon Ross
33*b3700b07SGordon Rossinclude ../../Makefile.lib
34*b3700b07SGordon Ross
35*b3700b07SGordon RossC99MODE=	-xc99=%all
36*b3700b07SGordon RossC99LMODE=	-Xc99=%all
37*b3700b07SGordon Ross
38*b3700b07SGordon RossLIBS =		$(DYNLIB) $(LINTLIB)
39*b3700b07SGordon RossLDLIBS +=	-lnsl -lc
40*b3700b07SGordon RossSRCDIR =	../common
41*b3700b07SGordon Ross$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
42*b3700b07SGordon Ross
43*b3700b07SGordon RossCFLAGS +=	$(CCVERBOSE)
44*b3700b07SGordon RossCPPFLAGS +=	-D_REENTRANT -I$(SRCDIR) -I..
45*b3700b07SGordon Ross# CPPFLAGS +=	-I$(SRC)/lib/libldap5/include/ldap
46*b3700b07SGordon Ross
47*b3700b07SGordon RossCERRWARN +=	-_gcc=-Wno-type-limits
48*b3700b07SGordon RossCERRWARN +=	-_gcc=-Wno-uninitialized
49*b3700b07SGordon RossCERRWARN +=	-_gcc=-Wno-unused-variable
50*b3700b07SGordon Ross
51*b3700b07SGordon Ross.KEEP_STATE:
52*b3700b07SGordon Ross
53*b3700b07SGordon Rossall: $(LIBS)
54*b3700b07SGordon Ross
55*b3700b07SGordon Rosslint := OBJECTS = $(LINT_OBJECTS)
56*b3700b07SGordon Ross
57*b3700b07SGordon Rosslint: lintcheck
58*b3700b07SGordon Ross
59*b3700b07SGordon Ross#LINTFLAGS += -erroff=E_CONSTANT_CONDITION
60*b3700b07SGordon Ross#LINTFLAGS64 += -erroff=E_CONSTANT_CONDITION
61*b3700b07SGordon Ross
62*b3700b07SGordon Rossinclude ../../Makefile.targ
63