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]
21 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24 # Needed for ROOTFS_LIBDIR definition
25 include ..
/..
/..
/..
/lib
/Makefile.lib
28 OBJS
= ipmgmt_main.o ipmgmt_door.o ipmgmt_persist.o ipmgmt_util.o
31 MANIFEST
= network-ipmgmt.xml
34 # Needed for ROOTETC definition
35 include ..
/..
/..
/Makefile.cmd
37 ROOTCFGDIR
= $(ROOTETC
)/ipadm
38 ROOTCFGFILES
= $(CFGFILES
:%=$(ROOTCFGDIR
)/%)
39 ROOTMANIFESTDIR
= $(ROOTSVCNETWORK
)
41 CERRWARN
+= -_gcc
=-Wno-switch
42 CERRWARN
+= -_gcc
=-Wno-uninitialized
44 $(ROOTCFGFILES
) := OWNER
= ipadm
45 $(ROOTCFGFILES
) := GROUP
= sys
46 $(ROOTCFGFILES
) := FILEMODE
= 644
48 ROOTCMDDIR
= $(ROOTFS_LIBDIR
)/inet
50 LDLIBS
+= -lipadm
-lnvpair
-lsecdb
-lnsl
-lumem
-lscf
53 # Instrument ipmgmtd with CTF data to ease debugging.
55 CTFCONVERT_HOOK
= && $(CTFCONVERT_O
)
56 CTFMERGE_HOOK
= && $(CTFMERGE
) -L VERSION
-o
$@
$(OBJS
)
57 $(OBJS
) := CFLAGS
+= $(CTF_FLAGS
)
66 $(LINK.c
) -o
$@
$(OBJS
) $(LDLIBS
) $(CTFMERGE_HOOK
)
69 install: $(ROOTCMD
) $(ROOTMANIFEST
) $(ROOTSVCMETHOD
) $(ROOTCFGDIR
) \
72 check: $(SRCS
) $(HEADERS
) $(CHKMANIFEST
)
73 $(CSTYLE
) -cpP
$(SRCS
) $(HEADERS
)
85 $(ROOTCFGDIR
)/%: $(ROOTCFGDIR
) %
88 include ..
/..
/..
/Makefile.targ