xref: /illumos-gate/usr/src/lib/libipadm/Makefile (revision 35fa020436971e0d663866b134eff23b6f45d32c)
16e91bba0SGirish Moodalbail#
26e91bba0SGirish Moodalbail# CDDL HEADER START
36e91bba0SGirish Moodalbail#
46e91bba0SGirish Moodalbail# The contents of this file are subject to the terms of the
56e91bba0SGirish Moodalbail# Common Development and Distribution License (the "License").
66e91bba0SGirish Moodalbail# You may not use this file except in compliance with the License.
76e91bba0SGirish Moodalbail#
86e91bba0SGirish Moodalbail# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
96e91bba0SGirish Moodalbail# or http://www.opensolaris.org/os/licensing.
106e91bba0SGirish Moodalbail# See the License for the specific language governing permissions
116e91bba0SGirish Moodalbail# and limitations under the License.
126e91bba0SGirish Moodalbail#
136e91bba0SGirish Moodalbail# When distributing Covered Code, include this CDDL HEADER in each
146e91bba0SGirish Moodalbail# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
156e91bba0SGirish Moodalbail# If applicable, add the following below this CDDL HEADER, with the
166e91bba0SGirish Moodalbail# fields enclosed by brackets "[]" replaced with your own identifying
176e91bba0SGirish Moodalbail# information: Portions Copyright [yyyy] [name of copyright owner]
186e91bba0SGirish Moodalbail#
196e91bba0SGirish Moodalbail# CDDL HEADER END
206e91bba0SGirish Moodalbail#
216e91bba0SGirish Moodalbail#
226e91bba0SGirish Moodalbail# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
236e91bba0SGirish Moodalbail# Use is subject to license terms.
246e91bba0SGirish Moodalbail#
25*35fa0204SHans Rosenfeld# Copyright 2021 Tintri by DDN, Inc. All rights reserved.
266e91bba0SGirish Moodalbail#
276e91bba0SGirish Moodalbail
286e91bba0SGirish Moodalbailinclude $(SRC)/lib/Makefile.lib
296e91bba0SGirish Moodalbail
306e91bba0SGirish MoodalbailHDRS =		libipadm.h ipadm_ndpd.h ipadm_ipmgmt.h
316e91bba0SGirish MoodalbailHDRDIR =	common
326e91bba0SGirish MoodalbailSUBDIRS =	$(MACH)
33*35fa0204SHans Rosenfeld$(BUILD64)SUBDIRS += $(MACH64)
346e91bba0SGirish MoodalbailPOFILE =	libipadm.po
356e91bba0SGirish MoodalbailMSGFILES =	common/libipadm.c common/ipadm_prop.c common/ipadm_persist.c \
366e91bba0SGirish Moodalbail		common/ipadm_addr.c common/ipadm_if.c common/ipadm_ndpd.c
376e91bba0SGirish MoodalbailXGETFLAGS =     -a -x libipadm.xcl
386e91bba0SGirish Moodalbail
39*35fa0204SHans RosenfeldTYPECHECK_LIB = libipadm.so.1
40*35fa0204SHans RosenfeldTYPELIST = \
41*35fa0204SHans Rosenfeld	   ipmgmt_aobjop_rval_t \
42*35fa0204SHans Rosenfeld	   ipmgmt_get_rval_t \
43*35fa0204SHans Rosenfeld	   ipmgmt_getif_rval_t \
44*35fa0204SHans Rosenfeld	   ipmgmt_getprop_rval_t \
45*35fa0204SHans Rosenfeld	   ipmgmt_retval_t
46*35fa0204SHans Rosenfeld
476e91bba0SGirish Moodalbailall :=		TARGET = all
486e91bba0SGirish Moodalbailclean :=	TARGET = clean
496e91bba0SGirish Moodalbailclobber :=	TARGET = clobber
506e91bba0SGirish Moodalbailinstall :=	TARGET = install
516e91bba0SGirish Moodalbail
526e91bba0SGirish Moodalbail.KEEP_STATE:
536e91bba0SGirish Moodalbail
54241c90a0SRichard Loweall clean clobber install: $(SUBDIRS)
556e91bba0SGirish Moodalbail
566e91bba0SGirish Moodalbailinstall_h:	$(ROOTHDRS)
576e91bba0SGirish Moodalbail
58*35fa0204SHans Rosenfeldcheck:		$(CHECKHDRS) $(TYPECHECK)
596e91bba0SGirish Moodalbail
606e91bba0SGirish Moodalbail$(POFILE):	pofile_MSGFILES
616e91bba0SGirish Moodalbail
626e91bba0SGirish Moodalbail_msg:		$(MSGDOMAINPOFILE)
636e91bba0SGirish Moodalbail
646e91bba0SGirish Moodalbail$(SUBDIRS): FRC
656e91bba0SGirish Moodalbail	@cd $@; pwd; $(MAKE) $(TARGET)
666e91bba0SGirish Moodalbail
676e91bba0SGirish MoodalbailFRC:
686e91bba0SGirish Moodalbail
696e91bba0SGirish Moodalbailinclude $(SRC)/Makefile.msg.targ
706e91bba0SGirish Moodalbailinclude $(SRC)/lib/Makefile.targ
71