Makefile revision 2b4a78020b9c38d1b95e2f3fefa6d6e4be382d1f
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# CDDL HEADER START
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# The contents of this file are subject to the terms of the
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Common Development and Distribution License (the "License").
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# You may not use this file except in compliance with the License.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# or http://www.opensolaris.org/os/licensing.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# See the License for the specific language governing permissions
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# and limitations under the License.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# If applicable, add the following below this CDDL HEADER, with the
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# CDDL HEADER END
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Use is subject to license terms.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncPROG = idmapd
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncMANIFEST = idmap.xml
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSERVEROBJS = idmapd.o init.o dbutils.o rpc_svc.o server.o adutils.o\
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync idmap_config.o nldaputils.o
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSERVERSRCS = $(SERVEROBJS:%.o=%.c)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncOBJS = $(SERVEROBJS)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSRCS = $(SERVERSRCS)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncPOFILES = $(OBJS:%.o=%.po)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncall := TARGET = all
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncinstall := TARGET = install
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncclean := TARGET = clean
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncclobber := TARGET = clobber
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncLIBSQLITE = $(ROOT)/usr/lib/libsqlite.o
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSQLITELINT = $(ROOT)/usr/lib/llib-lsqlite.ln
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncIDMAP_PROT_DIR = $(SRC)/head/rpcsvc
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncIDMAP_PROT_X = $(IDMAP_PROT_DIR)/idmap_prot.x
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncIDMAP_PROT_H = $(IDMAP_PROT_DIR)/idmap_prot.h
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncinclude ../../Makefile.cmd
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncPOFILE = $(PROG)_all.po
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(ROOTMANIFEST) := FILEMODE= 444
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncINCS += -I. -I../../../lib/libidmap/common -I$(IDMAP_PROT_DIR)\
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync -I../../../lib/libsldap/common\
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync -I../../../lib/libadutils/common
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(POFILE) := CPPFLAGS += $(INCS)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCLOBBERFILES += $(IDMAP_PROT_H)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCFLAGS += -v
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncLDLIBS += -lsecdb -lsocket -lnsl -lidmap -lscf -lsldap -lldap -luuid -ladutils
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(PROG) := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(PROG) := LDFLAGS += $(MAPFILES:%=-M%)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDIRMODE = 0755
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncFILEMODE = 0555
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncOWNER = root
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncGROUP = sys
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynclint_SRCS := CPPFLAGS += $(INCS) -D_REENTRANT
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynclint := LDLIBS += $(SQLITELINT)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync.KEEP_STATE:
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync.PARALLEL: $(OBJS)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncall: $(PROG)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(IDMAP_PROT_H): $(IDMAP_PROT_X)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync $(RM) $@; $(RPCGEN) -CMNh -o $@ $(IDMAP_PROT_X)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(PROG): $(IDMAP_PROT_H) $(OBJS) $$(MAPFILES)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync $(LINK.c) -o $@ $(OBJS) $(LIBSQLITE) $(LDLIBS)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync $(POST_PROCESS)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(POFILE): $(POFILES)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync $(RM) $(POFILE)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync cat $(POFILES) > $(POFILE)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncinstall: all $(ROOTLIBPROG) $(ROOTMANIFEST)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynccheck: $(CHKMANIFEST)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncclean:
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync $(RM) $(OBJS)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncclobber:
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynclint: lint_SRCS
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynclint_SRCS:
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncinclude ../../Makefile.targ
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncFRC:
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync