xref: /illumos-gate/usr/src/lib/libsasl/Makefile.com (revision d17be682)
17c478bd9Sstevel@tonic-gate#
2f808c858Sraf# CDDL HEADER START
3f808c858Sraf#
4f808c858Sraf# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
7f808c858Sraf#
8f808c858Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f808c858Sraf# or http://www.opensolaris.org/os/licensing.
10f808c858Sraf# See the License for the specific language governing permissions
11f808c858Sraf# and limitations under the License.
12f808c858Sraf#
13f808c858Sraf# When distributing Covered Code, include this CDDL HEADER in each
14f808c858Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f808c858Sraf# If applicable, add the following below this CDDL HEADER, with the
16f808c858Sraf# fields enclosed by brackets "[]" replaced with your own identifying
17f808c858Sraf# information: Portions Copyright [yyyy] [name of copyright owner]
18f808c858Sraf#
19f808c858Sraf# CDDL HEADER END
20f808c858Sraf#
21f808c858Sraf#
22734b6a94Sdarrenm# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
2505ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc.
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateLIBRARY= libsasl.a
287c478bd9Sstevel@tonic-gateVERS= .1
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateSASLOBJS=	auxprop.o	canonusr.o	checkpw.o	client.o \
317c478bd9Sstevel@tonic-gate		common.o	config.o	dlopen.o	external.o \
327c478bd9Sstevel@tonic-gate		md5.o		saslutil.o	seterror.o	server.o
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateCOMMONOBJS=	plugin_common.o
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gateOBJECTS=	$(SASLOBJS) $(COMMONOBJS)
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib
397c478bd9Sstevel@tonic-gate
40241c90a0SRichard LoweLIBS=		$(DYNLIB)
417c478bd9Sstevel@tonic-gateSRCS=		$(SASLOBJS:%.o=../lib/%.c) $(COMMONOBJS:%.o=$(PLUGDIR)/%.c)
42734b6a94SdarrenmLDLIBS +=	-lsocket -lc -lmd
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gateSRCDIR=		../lib
457c478bd9Sstevel@tonic-gatePLUGDIR=	../plugin
467c478bd9Sstevel@tonic-gate
47*d17be682SRichard LoweCFLAGS +=	$(CCVERBOSE)
487c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I../include -I$(PLUGDIR)
497c478bd9Sstevel@tonic-gate
5005ede3dbSJohn Levon# not linted
5105ede3dbSJohn LevonSMATCH=off
5205ede3dbSJohn Levon
537c478bd9Sstevel@tonic-gate.KEEP_STATE:
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gateall: $(LIBS)
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gatepics/%.o: $(PLUGDIR)/%.c
597c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
607c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
63