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# 22c5866007SKeyur Desai# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 23c5c4113dSnw141292# 24c5c4113dSnw141292 25c5c4113dSnw141292PROG = idmap 26c5866007SKeyur DesaiCLIENTOBJS = idmap.o idmap_engine.o namemaps.o 27c5c4113dSnw141292# idmap_clnt.o 28c5c4113dSnw141292CLIENTSRCS = $(CLIENTOBJS:%.o=%.c) 29c5c4113dSnw141292POFILES = $(CLIENTOBJS:.o=.po) 30c5c4113dSnw141292OBJS = $(CLIENTOBJS) 31c5c4113dSnw141292SRCS = $(CLIENTSRCS) 32c5c4113dSnw141292IDMAP_PROT_DIR = $(SRC)/head/rpcsvc 33c5c4113dSnw141292 34c5c4113dSnw141292include ../../Makefile.cmd 35c5c4113dSnw141292 36*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 37*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 38*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 39*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts 40*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 41*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 42*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-address 43*7014882cSRichard Lowe 44c5c4113dSnw141292POFILE = $(PROG)_all.po 45c5866007SKeyur DesaiLDLIBS += -lidmap -ladutils -lsldap -lldap 46c5c4113dSnw141292FILEMODE = 0555 47c5c4113dSnw141292 48c5866007SKeyur DesaiINCS += -I. \ 49c5866007SKeyur Desai -I../../../lib/libidmap/common \ 50c5866007SKeyur Desai -I../../../lib/libadutils/common \ 51c5866007SKeyur Desai -I../../../lib/libsldap/common \ 52c5866007SKeyur Desai -I$(IDMAP_PROT_DIR) 53c5c4113dSnw141292 54c5866007SKeyur DesaiCFLAGS += $(CCVERBOSE) 55c5c4113dSnw141292$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT 56c5c4113dSnw141292$(POFILE) := CPPFLAGS += $(INCS) 57c5c4113dSnw141292 58c5c4113dSnw141292lint_SRCS := CPPFLAGS += $(INCS) 59c5c4113dSnw141292 60c5c4113dSnw141292.KEEP_STATE: 61c5c4113dSnw141292 62c5c4113dSnw141292all: $(PROG) 63c5c4113dSnw141292 64c5c4113dSnw141292$(PROG): $(OBJS) 65c5c4113dSnw141292 $(LINK.c) -g -o $@ $(OBJS) $(LDLIBS) 66c5c4113dSnw141292 $(POST_PROCESS) 67c5c4113dSnw141292 68c5c4113dSnw141292$(POFILE): $(POFILES) 69c5c4113dSnw141292 $(RM) $@ 70c5c4113dSnw141292 cat $(POFILES) > $@ 71c5c4113dSnw141292 72c5c4113dSnw141292install: all $(ROOTUSRSBINPROG) 73c5c4113dSnw141292 74c5c4113dSnw141292clean: 75c5c4113dSnw141292 $(RM) $(OBJS) 76c5c4113dSnw141292 77c5c4113dSnw141292lint: lint_SRCS 78c5c4113dSnw141292 797a8a68f5SJulian PullenLINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 807a8a68f5SJulian Pullen 81c5c4113dSnw141292include ../../Makefile.targ 82c5c4113dSnw141292 83c5c4113dSnw141292 84