4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright 2014 Nexenta Systems, Inc. All rights reserved.
30 directory_provider_builtin.o \
31 directory_provider_nsswitch.o \
32 directory_provider_ad.o \
49 SERVERSRCS
= $(SERVEROBJS
:%.o
=%.c
)
50 GENSRCS
= $(GENOBJS
:%.o
=%.c
)
51 OBJS
= $(SERVEROBJS
) $(GENOBJS
)
53 POFILES
= $(OBJS
:%.o
=%.po
)
56 install := TARGET
= install
57 clean := TARGET
= clean
58 clobber := TARGET
= clobber
60 include ..
/..
/Makefile.cmd
62 CERRWARN
+= -_gcc
=-Wno-type-limits
63 CERRWARN
+= -_gcc
=-Wno-switch
64 CERRWARN
+= -_gcc
=-Wno-uninitialized
66 TEXT_DOMAIN
= SUNW_OST_OSLIB
67 XGETTEXT
= $(GNUXGETTEXT
)
68 XGETFLAGS
= --foreign-user
--strict
-n
-E
--width
=72 \
69 --omit-header
--keyword
=directoryError
:2 \
70 --language
=C
--force-po
72 C99MODE
= $(C99_ENABLE
)
73 POFILE
= $(PROG
)_all.po
75 RPC_MSGOUT_OPT
= -DRPC_MSGOUT
=idmap_rpc_msgout
77 ROOTMANIFESTDIR
= $(ROOTSVCSYSTEM
)
78 $(ROOTMANIFEST
) := FILEMODE
= 444
79 RPCSVC
= ..
/..
/..
/uts
/common
/rpcsvc
80 ADS_CMN
=..
/..
/..
/lib
/libads
/common
82 INCS
+= -I.
-I..
/..
/..
/lib
/libidmap
/common \
83 -I..
/..
/..
/lib
/libsldap
/common \
84 -I..
/..
/..
/lib
/libadutils
/common \
86 -I..
/..
/..
/lib
/smbsrv
/libsmb
/common
88 # Should not have to do this, but the Kerberos includes are a mess.
89 INCS
+= -I
$(ROOT
)/usr
/include/kerberosv5
91 $(OBJS
) := CPPFLAGS
+= $(INCS
) -D_REENTRANT
92 $(POFILE
) := CPPFLAGS
+= $(INCS
)
94 LINTFLAGS
+= -xerroff
=E_NAME_DEF_NOT_USED2
95 LINTFLAGS
+= -xerroff
=E_NAME_USED_NOT_DEF2
97 CFLAGS
+= $(CCVERBOSE
)
113 -L
$(ROOT
)/usr
/lib
/smbsrv \
116 rpc_svc.o
:= CFLAGS
+= $(RPC_MSGOUT_OPT
)
118 $(PROG
) := MAPFILES
= $(MAPFILE.INT
) $(MAPFILE.NGB
)
119 $(PROG
) := LDFLAGS
+= $(MAPFILES
:%=-M
%) \
125 lint_SRCS
:= CPPFLAGS
+= $(INCS
) -D_REENTRANT
$(RPC_MSGOUT_OPT
)
133 $(PROG
): $(OBJS
) $$(MAPFILES
)
134 $(LINK.c
) -o
$@
$(OBJS
) $(LDLIBS
)
137 $(POFILE
): $(POFILES
)
139 cat
$(POFILES
) > $(POFILE
)
141 install: all $(ROOTLIBPROG
) $(ROOTMANIFEST
)
143 check: $(CHKMANIFEST
)
146 $(RM
) $(OBJS
) $(GENSRCS
)
154 adspriv_srv.o
: adspriv_srv.c
157 $(RPCGEN
) $(RPCGENFLAGS
) -m
$(ADS_CMN
)/ads_priv.x
> $@
159 rpc_svc.o
: rpc_svc.c
161 rpc_svc.c
: $(RPCSVC
)/idmap_prot.x
162 $(RPCGEN
) $(RPCGENFLAGS
) -m
$(RPCSVC
)/idmap_prot.x
> $@
164 include ..
/..
/Makefile.targ