xref: /illumos-gate/usr/src/lib/libipadm/Makefile (revision 6e91bba0d6c6bdabbba62cefae583715a4a58e2a)
1*6e91bba0SGirish Moodalbail#
2*6e91bba0SGirish Moodalbail# CDDL HEADER START
3*6e91bba0SGirish Moodalbail#
4*6e91bba0SGirish Moodalbail# The contents of this file are subject to the terms of the
5*6e91bba0SGirish Moodalbail# Common Development and Distribution License (the "License").
6*6e91bba0SGirish Moodalbail# You may not use this file except in compliance with the License.
7*6e91bba0SGirish Moodalbail#
8*6e91bba0SGirish Moodalbail# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*6e91bba0SGirish Moodalbail# or http://www.opensolaris.org/os/licensing.
10*6e91bba0SGirish Moodalbail# See the License for the specific language governing permissions
11*6e91bba0SGirish Moodalbail# and limitations under the License.
12*6e91bba0SGirish Moodalbail#
13*6e91bba0SGirish Moodalbail# When distributing Covered Code, include this CDDL HEADER in each
14*6e91bba0SGirish Moodalbail# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*6e91bba0SGirish Moodalbail# If applicable, add the following below this CDDL HEADER, with the
16*6e91bba0SGirish Moodalbail# fields enclosed by brackets "[]" replaced with your own identifying
17*6e91bba0SGirish Moodalbail# information: Portions Copyright [yyyy] [name of copyright owner]
18*6e91bba0SGirish Moodalbail#
19*6e91bba0SGirish Moodalbail# CDDL HEADER END
20*6e91bba0SGirish Moodalbail#
21*6e91bba0SGirish Moodalbail#
22*6e91bba0SGirish Moodalbail# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23*6e91bba0SGirish Moodalbail# Use is subject to license terms.
24*6e91bba0SGirish Moodalbail#
25*6e91bba0SGirish Moodalbail#
26*6e91bba0SGirish Moodalbail
27*6e91bba0SGirish Moodalbailinclude $(SRC)/lib/Makefile.lib
28*6e91bba0SGirish Moodalbail
29*6e91bba0SGirish MoodalbailHDRS =		libipadm.h ipadm_ndpd.h ipadm_ipmgmt.h
30*6e91bba0SGirish MoodalbailHDRDIR =	common
31*6e91bba0SGirish MoodalbailSUBDIRS =	$(MACH)
32*6e91bba0SGirish MoodalbailPOFILE =	libipadm.po
33*6e91bba0SGirish MoodalbailMSGFILES =	common/libipadm.c common/ipadm_prop.c common/ipadm_persist.c \
34*6e91bba0SGirish Moodalbail		common/ipadm_addr.c common/ipadm_if.c common/ipadm_ndpd.c
35*6e91bba0SGirish MoodalbailXGETFLAGS =     -a -x libipadm.xcl
36*6e91bba0SGirish Moodalbail
37*6e91bba0SGirish Moodalbailall :=		TARGET = all
38*6e91bba0SGirish Moodalbailclean :=	TARGET = clean
39*6e91bba0SGirish Moodalbailclobber :=	TARGET = clobber
40*6e91bba0SGirish Moodalbailinstall :=	TARGET = install
41*6e91bba0SGirish Moodalbaillint :=		TARGET = lint
42*6e91bba0SGirish Moodalbail
43*6e91bba0SGirish Moodalbail.KEEP_STATE:
44*6e91bba0SGirish Moodalbail
45*6e91bba0SGirish Moodalbailall clean clobber install lint: $(SUBDIRS)
46*6e91bba0SGirish Moodalbail
47*6e91bba0SGirish Moodalbailinstall_h:	$(ROOTHDRS)
48*6e91bba0SGirish Moodalbail
49*6e91bba0SGirish Moodalbailcheck:		$(CHECKHDRS)
50*6e91bba0SGirish Moodalbail
51*6e91bba0SGirish Moodalbail$(POFILE):	pofile_MSGFILES
52*6e91bba0SGirish Moodalbail
53*6e91bba0SGirish Moodalbail_msg:		$(MSGDOMAINPOFILE)
54*6e91bba0SGirish Moodalbail
55*6e91bba0SGirish Moodalbail$(SUBDIRS): FRC
56*6e91bba0SGirish Moodalbail	@cd $@; pwd; $(MAKE) $(TARGET)
57*6e91bba0SGirish Moodalbail
58*6e91bba0SGirish MoodalbailFRC:
59*6e91bba0SGirish Moodalbail
60*6e91bba0SGirish Moodalbailinclude $(SRC)/Makefile.msg.targ
61*6e91bba0SGirish Moodalbailinclude $(SRC)/lib/Makefile.targ
62