Makefile revision e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# CDDL HEADER START
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# The contents of this file are subject to the terms of the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Common Development and Distribution License (the "License").
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# You may not use this file except in compliance with the License.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# or http://www.opensolaris.org/os/licensing.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# See the License for the specific language governing permissions
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# and limitations under the License.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# When distributing Covered Code, include this CDDL HEADER in each
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# If applicable, add the following below this CDDL HEADER, with the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# fields enclosed by brackets "[]" replaced with your own identifying
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# information: Portions Copyright [yyyy] [name of copyright owner]
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# CDDL HEADER END
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Use is subject to license terms.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#ident "%Z%%M% %I% %E% SMI"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwPROG = idmapd
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwMANIFEST = idmap.xml
c8e261054d98729a8718903716b9b8a512d8b693jpSERVEROBJS = idmapd.o init.o dbutils.o rpc_svc.o server.o adutils.o addisc.o\
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban idmap_config.o nldaputils.o
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwSERVERSRCS = $(SERVEROBJS:%.o=%.c)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwOBJS = $(SERVEROBJS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwSRCS = $(SERVERSRCS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwPOFILES = $(OBJS:%.o=%.po)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwall := TARGET = all
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinstall := TARGET = install
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwclean := TARGET = clean
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwclobber := TARGET = clobber
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwLIBSQLITE = $(ROOT)/usr/lib/libsqlite.o
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwSQLITELINT = $(ROOT)/usr/lib/llib-lsqlite.ln
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwIDMAP_PROT_DIR = $(SRC)/head/rpcsvc
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwIDMAP_PROT_X = $(IDMAP_PROT_DIR)/idmap_prot.x
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwIDMAP_PROT_H = $(IDMAP_PROT_DIR)/idmap_prot.h
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude ../../Makefile.cmd
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwPOFILE = $(PROG)_all.po
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(ROOTMANIFEST) := FILEMODE= 444
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwINCS += -I. -I../../../lib/libidmap/common -I$(IDMAP_PROT_DIR)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(POFILE) := CPPFLAGS += $(INCS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCLOBBERFILES += $(IDMAP_PROT_H)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS += -v
c8e261054d98729a8718903716b9b8a512d8b693jpLDLIBS += -lsecdb -lresolv -lsocket -lnsl -lidmap -lscf -lldap -luuid
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(PROG) := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(PROG) := LDFLAGS += $(MAPFILES:%=-M%)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwDIRMODE = 0755
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwFILEMODE = 0555
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwOWNER = root
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwGROUP = sys
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwlint_SRCS := CPPFLAGS += $(INCS) -D_REENTRANT
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwlint := LDLIBS += $(SQLITELINT)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c8e261054d98729a8718903716b9b8a512d8b693jpLINTFLAGS += -erroff=E_CONSTANT_CONDITION
c8e261054d98729a8718903716b9b8a512d8b693jp
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw.KEEP_STATE:
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw.PARALLEL: $(OBJS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwall: $(PROG)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(IDMAP_PROT_H): $(IDMAP_PROT_X)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw $(RM) $@; $(RPCGEN) -CMNh -o $@ $(IDMAP_PROT_X)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(PROG): $(IDMAP_PROT_H) $(OBJS) $$(MAPFILES)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw $(LINK.c) -o $@ $(OBJS) $(LIBSQLITE) $(LDLIBS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw $(POST_PROCESS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(POFILE): $(POFILES)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw $(RM) $(POFILE)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw cat $(POFILES) > $(POFILE)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinstall: all $(ROOTLIBPROG) $(ROOTMANIFEST)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwcheck: $(CHKMANIFEST)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwclean:
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw $(RM) $(OBJS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwclobber:
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwlint: lint_SRCS
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwlint_SRCS:
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude ../../Makefile.targ
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwFRC:
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw