Makefile revision 1fcced4c370617db71610fecffd5451a5894ca5e
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#
9b214d32697277d03ed2e5d98c4a7bfef16dcf4dJordan Brown# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Use is subject to license terms.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwPROG = idmapd
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwMANIFEST = idmap.xml
1fcced4c370617db71610fecffd5451a5894ca5eJordan BrownSERVEROBJS = \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown directory_provider_builtin.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown directory_provider_nsswitch.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown directory_provider_ad.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown directory_server.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown adutils.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown dbutils.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown idmap_config.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown idmapd.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown init.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown nldaputils.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown rpc_svc.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown server.o \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown wksids.o
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown
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
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude ../../Makefile.cmd
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
1fcced4c370617db71610fecffd5451a5894ca5eJordan BrownTEXT_DOMAIN = SUNW_OST_OSLIB
1fcced4c370617db71610fecffd5451a5894ca5eJordan BrownXGETTEXT = $(GNUXGETTEXT)
1fcced4c370617db71610fecffd5451a5894ca5eJordan BrownXGETFLAGS = --foreign-user --strict -n -E --width=72 \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown --omit-header --keyword=directoryError:2 \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown --language=C --force-po
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown
1fcced4c370617db71610fecffd5451a5894ca5eJordan BrownC99MODE = $(C99_ENABLE)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwPOFILE = $(PROG)_all.po
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
1fcced4c370617db71610fecffd5451a5894ca5eJordan BrownRPC_MSGOUT_OPT = -DRPC_MSGOUT=idmap_rpc_msgout
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(ROOTMANIFEST) := FILEMODE= 444
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
9b214d32697277d03ed2e5d98c4a7bfef16dcf4dJordan BrownINCS += -I. -I../../../lib/libidmap/common\
2b4a78020b9c38d1b95e2f3fefa6d6e4be382d1fBaban Kenkre -I../../../lib/libsldap/common\
2b4a78020b9c38d1b95e2f3fefa6d6e4be382d1fBaban Kenkre -I../../../lib/libadutils/common
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(POFILE) := CPPFLAGS += $(INCS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS += -v
1fcced4c370617db71610fecffd5451a5894ca5eJordan BrownLDLIBS += -lsecdb \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -lsocket \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -lnsl \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -lidmap \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -lscf \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -lsldap \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -lldap \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -luuid \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -ladutils \
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown -lumem
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brownrpc_svc.o := CFLAGS += $(RPC_MSGOUT_OPT)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(PROG) := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw$(PROG) := LDFLAGS += $(MAPFILES:%=-M%)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwDIRMODE = 0755
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwFILEMODE = 0555
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwOWNER = root
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwGROUP = sys
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brownlint_SRCS := CPPFLAGS += $(INCS) -D_REENTRANT $(RPC_MSGOUT_OPT)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwlint := LDLIBS += $(SQLITELINT)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw.KEEP_STATE:
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw.PARALLEL: $(OBJS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwall: $(PROG)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
9b214d32697277d03ed2e5d98c4a7bfef16dcf4dJordan Brown$(PROG): $(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