Merge illumos-gate
[unleashed/lotheac.git] / usr / src / lib / sasl_plugins / Makefile.com
blob7a799a2cd79a6a509856b5a0923f6d31990a0b85
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # Copyright (c) 2018, Joyent, Inc.
27 COMMONOBJS=     plugin_common.o
28 OBJECTS=        $(PLUG_OBJS) $(COMMONOBJS)
30 include $(SRC)/lib/Makefile.lib
32 CPPFLAGS +=     -I$(SRC)/lib/libsasl/include
34 CERRWARN +=     -Wno-uninitialized
36 # not linted
37 SMATCH=off
39 LIBS =          $(DYNLIB)
40 SRCS=           $(PLUG_OBJS:%.o=../%.c) \
41                 $(COMMONOBJS:%.o=$(SRC)/lib/libsasl/plugin/%.c)
42 LDLIBS +=        -lc $(PLUG_LIBS)
44 MAPFILES =      ../../mapfile-vers
46 ROOTLIBDIR=     $(ROOT)/usr/lib/sasl
47 ROOTLIBDIR64=   $(ROOT)/usr/lib/sasl/$(MACH64)
50 CFLAGS +=       $(ENC_FLAGS)
51 CFLAGS64 +=     $(ENC_FLAGS)
53 .KEEP_STATE:
55 all:    $(LIBS)
58 pics/%.o: $(SRC)/lib/libsasl/plugin/%.c
59         $(COMPILE.c) -o $@ $<
60         $(POST_PROCESS_O)
62 include $(SRC)/lib/Makefile.targ