Makefile.com revision f808c858fa61e7769218966759510a8b1190dfcf
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# CDDL HEADER START
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# The contents of this file are subject to the terms of the
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# Common Development and Distribution License (the "License").
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# You may not use this file except in compliance with the License.
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# or http://www.opensolaris.org/os/licensing.
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# See the License for the specific language governing permissions
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# and limitations under the License.
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# When distributing Covered Code, include this CDDL HEADER in each
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# If applicable, add the following below this CDDL HEADER, with the
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# fields enclosed by brackets "[]" replaced with your own identifying
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# information: Portions Copyright [yyyy] [name of copyright owner]
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# CDDL HEADER END
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# Use is subject to license terms.
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello# ident "%Z%%M% %I% %E% SMI"
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello#
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloLIBRARY= libldap.a
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloVERS= .4
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloLDAPOBJS= abandon.o getentry.o referral.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello add.o getfilter.o regex.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello addentry.o getmsg.o rename.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello bind.o getref.o request.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello cache.o getvalues.o result.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello charset.o kbind.o saslbind.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello cldap.o sbind.o compare.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello search.o controls.o sort.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello delete.o srchpref.o disptmpl.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello tmplout.o dsparse.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello error.o ufn.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello extensions.o unbind.o extop.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello url.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello free.o modify.o utils.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello friendly.o modrdn.o notif.o Version.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello getattr.o open.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello getdn.o option.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello getdxbyname.o os-ip.o sortctrl.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello vlistctrl.o
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloBEROBJS= bprint.o decode.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello encode.o \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello io.o i18n.o
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloUTILOBJS= line64.o log.o
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloSECOBJS= cram_md5.o secutil.o
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloOBJECTS= $(LDAPOBJS) $(BEROBJS) $(UTILOBJS) $(SECOBJS)
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Melloinclude ../../Makefile.lib
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloLDAPINC= $(SRC)/lib/libldap4/include
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloLDAP_FLAGS= -DLDAP_REFERRALS -DCLDAP -DLDAP_DNS -DSUN
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloSRCDIR = ../common
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloSRCS= $(LDAPOBJS:%.o=../common/%.c) $(BEROBJS:%.o=../ber/%.c) \
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello $(UTILOBJS:%.o=../util/%.c) $(SECOBJS:%.o=../sec/%.c)
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloLIBS = $(DYNLIB)
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello$(LINTLIB):= SRCS=../common/llib-lldap
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter Mello
90221f9148b67fdc90178b67f9600b7bd4e3bc7cCody Peter MelloLINTSRC= $(LINTLIB:%.ln=%)
ROOTLINTDIR= $(ROOTLIBDIR)
ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%)
CLEANFILES += $(LINTOUT) $(LINTLIB)
# Local Libldap definitions
LOCFLAGS += -D_SYS_STREAM_H -D_REENTRANT -DSVR4 -DSUNW_OPTIONS \
-DTHREAD_SUNOS5_LWP -DSOUNDEX -DSTR_TRANSLATION \
$(LDAP_FLAGS) -I$(LDAPINC)
CPPFLAGS = $(LOCFLAGS) $(CPPFLAGS.master)
CFLAGS += $(CCVERBOSE)
LDLIBS += -lsocket -lnsl -lresolv -lc -lmd
.KEEP_STATE:
lint: lintcheck
# include library targets
include ../../Makefile.targ
objs/%.o pics/%.o: ../common/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../ber/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../util/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../sec/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)