xref: /titanic_51/usr/src/lib/libsasl/Makefile.com (revision f808c858fa61e7769218966759510a8b1190dfcf)
17c478bd9Sstevel@tonic-gate#
2*f808c858Sraf# CDDL HEADER START
3*f808c858Sraf#
4*f808c858Sraf# The contents of this file are subject to the terms of the
5*f808c858Sraf# Common Development and Distribution License (the "License").
6*f808c858Sraf# You may not use this file except in compliance with the License.
7*f808c858Sraf#
8*f808c858Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*f808c858Sraf# or http://www.opensolaris.org/os/licensing.
10*f808c858Sraf# See the License for the specific language governing permissions
11*f808c858Sraf# and limitations under the License.
12*f808c858Sraf#
13*f808c858Sraf# When distributing Covered Code, include this CDDL HEADER in each
14*f808c858Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*f808c858Sraf# If applicable, add the following below this CDDL HEADER, with the
16*f808c858Sraf# fields enclosed by brackets "[]" replaced with your own identifying
17*f808c858Sraf# information: Portions Copyright [yyyy] [name of copyright owner]
18*f808c858Sraf#
19*f808c858Sraf# CDDL HEADER END
20*f808c858Sraf#
21*f808c858Sraf#
22734b6a94Sdarrenm# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateLIBRARY= libsasl.a
297c478bd9Sstevel@tonic-gateVERS= .1
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateSASLOBJS=	auxprop.o	canonusr.o	checkpw.o	client.o \
327c478bd9Sstevel@tonic-gate		common.o	config.o	dlopen.o	external.o \
337c478bd9Sstevel@tonic-gate		md5.o		saslutil.o	seterror.o	server.o
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gateCOMMONOBJS=	plugin_common.o
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gateOBJECTS=	$(SASLOBJS) $(COMMONOBJS)
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateLIBS=		$(DYNLIB) $(LINTLIB)
427c478bd9Sstevel@tonic-gateSRCS=		$(SASLOBJS:%.o=../lib/%.c) $(COMMONOBJS:%.o=$(PLUGDIR)/%.c)
437c478bd9Sstevel@tonic-gate$(LINTLIB):= 	SRCS = $(SRCDIR)/$(LINTSRC)
44734b6a94SdarrenmLDLIBS +=	-lsocket -lc -lmd
457c478bd9Sstevel@tonic-gateLINTFLAGS +=	-DPIC
467c478bd9Sstevel@tonic-gateLINTFLAGS64 +=	-DPIC
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gateSRCDIR=		../lib
497c478bd9Sstevel@tonic-gatePLUGDIR=	../plugin
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gateCFLAGS +=	$(CCVERBOSE) $(XSTRCONST)
527c478bd9Sstevel@tonic-gateCFLAGS64 +=	$(XSTRCONST)
537c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I../include -I$(PLUGDIR)
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gate.KEEP_STATE:
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gateall: $(LIBS)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gatelint: lintcheck
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gatepics/%.o: $(PLUGDIR)/%.c
627c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
637c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
66