Makefile revision 9b214d32697277d03ed2e5d98c4a7bfef16dcf4d
137N/A#
137N/A# CDDL HEADER START
1276N/A#
137N/A# The contents of this file are subject to the terms of the
1634N/A# Common Development and Distribution License (the "License").
137N/A# You may not use this file except in compliance with the License.
137N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
137N/A
137N/APROG = idmapd
137N/AMANIFEST = idmap.xml
137N/ASERVEROBJS = idmapd.o init.o dbutils.o rpc_svc.o server.o adutils.o\
493N/A idmap_config.o nldaputils.o
137N/ASERVERSRCS = $(SERVEROBJS:%.o=%.c)
137N/AOBJS = $(SERVEROBJS)
1634N/ASRCS = $(SERVERSRCS)
137N/APOFILES = $(OBJS:%.o=%.po)
911N/A
1634N/Aall := TARGET = all
1634N/Ainstall := TARGET = install
1634N/Aclean := TARGET = clean
911N/Aclobber := TARGET = clobber
137N/A
1665N/ALIBSQLITE = $(ROOT)/usr/lib/libsqlite.o
1665N/ASQLITELINT = $(ROOT)/usr/lib/llib-lsqlite.ln
137N/A
137N/Ainclude ../../Makefile.cmd
137N/A
137N/APOFILE = $(PROG)_all.po
137N/A
137N/AROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
493N/A$(ROOTMANIFEST) := FILEMODE= 444
969N/A
137N/AINCS += -I. -I../../../lib/libidmap/common\
970N/A -I../../../lib/libsldap/common\
970N/A -I../../../lib/libadutils/common
970N/A
970N/A$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT
970N/A$(POFILE) := CPPFLAGS += $(INCS)
970N/A
970N/ACFLAGS += -v
970N/ALDLIBS += -lsecdb -lsocket -lnsl -lidmap -lscf -lsldap -lldap -luuid -ladutils
137N/A
493N/A$(PROG) := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
137N/A$(PROG) := LDFLAGS += $(MAPFILES:%=-M%)
137N/A
493N/ADIRMODE = 0755
137N/AFILEMODE = 0555
493N/AOWNER = root
137N/AGROUP = sys
137N/A
137N/Alint_SRCS := CPPFLAGS += $(INCS) -D_REENTRANT
137N/Alint := LDLIBS += $(SQLITELINT)
970N/A
970N/A.KEEP_STATE:
970N/A
137N/A.PARALLEL: $(OBJS)
all: $(PROG)
$(PROG): $(OBJS) $$(MAPFILES)
$(LINK.c) -o $@ $(OBJS) $(LIBSQLITE) $(LDLIBS)
$(POST_PROCESS)
$(POFILE): $(POFILES)
$(RM) $(POFILE)
cat $(POFILES) > $(POFILE)
install: all $(ROOTLIBPROG) $(ROOTMANIFEST)
check: $(CHKMANIFEST)
clean:
$(RM) $(OBJS)
clobber:
lint: lint_SRCS
lint_SRCS:
include ../../Makefile.targ
FRC: