1c5c4113dSnw141292# 2c5c4113dSnw141292# CDDL HEADER START 3c5c4113dSnw141292# 4c5c4113dSnw141292# The contents of this file are subject to the terms of the 5c5c4113dSnw141292# Common Development and Distribution License (the "License"). 6c5c4113dSnw141292# You may not use this file except in compliance with the License. 7c5c4113dSnw141292# 8c5c4113dSnw141292# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9c5c4113dSnw141292# or http://www.opensolaris.org/os/licensing. 10c5c4113dSnw141292# See the License for the specific language governing permissions 11c5c4113dSnw141292# and limitations under the License. 12c5c4113dSnw141292# 13c5c4113dSnw141292# When distributing Covered Code, include this CDDL HEADER in each 14c5c4113dSnw141292# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15c5c4113dSnw141292# If applicable, add the following below this CDDL HEADER, with the 16c5c4113dSnw141292# fields enclosed by brackets "[]" replaced with your own identifying 17c5c4113dSnw141292# information: Portions Copyright [yyyy] [name of copyright owner] 18c5c4113dSnw141292# 19c5c4113dSnw141292# CDDL HEADER END 20c5c4113dSnw141292# 21c5c4113dSnw141292# 22148c5f43SAlan Wright# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 23c5c4113dSnw141292# 24c5c4113dSnw141292 25c5c4113dSnw141292PROG = idmapd 26c5c4113dSnw141292MANIFEST = idmap.xml 271fcced4cSJordan BrownSERVEROBJS = \ 281fcced4cSJordan Brown directory_provider_builtin.o \ 291fcced4cSJordan Brown directory_provider_nsswitch.o \ 301fcced4cSJordan Brown directory_provider_ad.o \ 311fcced4cSJordan Brown directory_server.o \ 321fcced4cSJordan Brown adutils.o \ 331fcced4cSJordan Brown dbutils.o \ 341fcced4cSJordan Brown idmap_config.o \ 351fcced4cSJordan Brown idmapd.o \ 361fcced4cSJordan Brown init.o \ 37148c5f43SAlan Wright idmap_lsa.o \ 381fcced4cSJordan Brown nldaputils.o \ 391fcced4cSJordan Brown rpc_svc.o \ 401fcced4cSJordan Brown server.o \ 411fcced4cSJordan Brown wksids.o 421fcced4cSJordan Brown 43c5c4113dSnw141292SERVERSRCS = $(SERVEROBJS:%.o=%.c) 44c5c4113dSnw141292OBJS = $(SERVEROBJS) 45c5c4113dSnw141292SRCS = $(SERVERSRCS) 46c5c4113dSnw141292POFILES = $(OBJS:%.o=%.po) 47c5c4113dSnw141292 48c5c4113dSnw141292all := TARGET = all 49c5c4113dSnw141292install := TARGET = install 50c5c4113dSnw141292clean := TARGET = clean 51c5c4113dSnw141292clobber := TARGET = clobber 52c5c4113dSnw141292 53c5c4113dSnw141292include ../../Makefile.cmd 54c5c4113dSnw141292 557014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 567014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 577014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 587014882cSRichard Lowe 591fcced4cSJordan BrownTEXT_DOMAIN = SUNW_OST_OSLIB 601fcced4cSJordan BrownXGETTEXT = $(GNUXGETTEXT) 611fcced4cSJordan BrownXGETFLAGS = --foreign-user --strict -n -E --width=72 \ 621fcced4cSJordan Brown --omit-header --keyword=directoryError:2 \ 631fcced4cSJordan Brown --language=C --force-po 641fcced4cSJordan Brown 651fcced4cSJordan BrownC99MODE = $(C99_ENABLE) 66c5c4113dSnw141292POFILE = $(PROG)_all.po 67c5c4113dSnw141292 681fcced4cSJordan BrownRPC_MSGOUT_OPT = -DRPC_MSGOUT=idmap_rpc_msgout 691fcced4cSJordan Brown 70c5c4113dSnw141292ROOTMANIFESTDIR = $(ROOTSVCSYSTEM) 71c5c4113dSnw141292$(ROOTMANIFEST) := FILEMODE= 444 72c5c4113dSnw141292 739b214d32SJordan BrownINCS += -I. -I../../../lib/libidmap/common\ 742b4a7802SBaban Kenkre -I../../../lib/libsldap/common\ 75148c5f43SAlan Wright -I../../../lib/libadutils/common \ 76148c5f43SAlan Wright -I../../../lib/smbsrv/libsmb/common 77c5c4113dSnw141292 78c5c4113dSnw141292$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT 79c5c4113dSnw141292$(POFILE) := CPPFLAGS += $(INCS) 80c5c4113dSnw141292 817014882cSRichard LoweCFLAGS += $(CCVERBOSE) 82*2a62b4a9SGordon RossLDLIBS += \ 83*2a62b4a9SGordon Ross -lsqlite-sys \ 84*2a62b4a9SGordon Ross -lsecdb \ 851fcced4cSJordan Brown -lsocket \ 861fcced4cSJordan Brown -lnsl \ 871fcced4cSJordan Brown -lidmap \ 881fcced4cSJordan Brown -lscf \ 891fcced4cSJordan Brown -lsldap \ 901fcced4cSJordan Brown -lldap \ 911fcced4cSJordan Brown -luuid \ 921fcced4cSJordan Brown -ladutils \ 93148c5f43SAlan Wright -lumem \ 94148c5f43SAlan Wright -lnvpair \ 95cb174861Sjoyce mcintosh -luutil \ 96148c5f43SAlan Wright -L $(ROOT)/usr/lib/smbsrv \ 97148c5f43SAlan Wright -lsmb 981fcced4cSJordan Brown 991fcced4cSJordan Brownrpc_svc.o := CFLAGS += $(RPC_MSGOUT_OPT) 100c5c4113dSnw141292 101c5c4113dSnw141292$(PROG) := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB) 102148c5f43SAlan Wright$(PROG) := LDFLAGS += $(MAPFILES:%=-M%) \ 103148c5f43SAlan Wright -R /usr/lib/smbsrv 104c5c4113dSnw141292 105c5c4113dSnw141292DIRMODE = 0755 106c5c4113dSnw141292FILEMODE = 0555 107c5c4113dSnw141292 1081fcced4cSJordan Brownlint_SRCS := CPPFLAGS += $(INCS) -D_REENTRANT $(RPC_MSGOUT_OPT) 109c5c4113dSnw141292 110c5c4113dSnw141292.KEEP_STATE: 111c5c4113dSnw141292 112c5c4113dSnw141292.PARALLEL: $(OBJS) 113c5c4113dSnw141292 114c5c4113dSnw141292all: $(PROG) 115c5c4113dSnw141292 1169b214d32SJordan Brown$(PROG): $(OBJS) $$(MAPFILES) 117*2a62b4a9SGordon Ross $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 118c5c4113dSnw141292 $(POST_PROCESS) 119c5c4113dSnw141292 120c5c4113dSnw141292$(POFILE): $(POFILES) 121c5c4113dSnw141292 $(RM) $(POFILE) 122c5c4113dSnw141292 cat $(POFILES) > $(POFILE) 123c5c4113dSnw141292 124c5c4113dSnw141292install: all $(ROOTLIBPROG) $(ROOTMANIFEST) 125c5c4113dSnw141292 126c5c4113dSnw141292check: $(CHKMANIFEST) 127c5c4113dSnw141292 128c5c4113dSnw141292clean: 129c5c4113dSnw141292 $(RM) $(OBJS) 130c5c4113dSnw141292 131c5c4113dSnw141292clobber: 132c5c4113dSnw141292 133c5c4113dSnw141292lint: lint_SRCS 134c5c4113dSnw141292 135c5c4113dSnw141292lint_SRCS: 136c5c4113dSnw141292 137c5c4113dSnw141292include ../../Makefile.targ 138c5c4113dSnw141292 139c5c4113dSnw141292FRC: 140c5c4113dSnw141292 141