xref: /illumos-gate/usr/src/lib/libipmp/Makefile (revision 1fa2a66491e7d8ae0be84e7da4da8e812480c710)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# Copyright 2021 Tintri by DDN, Inc.  All rights reserved.
26#
27
28include $(SRC)/lib/Makefile.lib
29
30HDRS =		ipmp.h ipmp_admin.h ipmp_mpathd.h ipmp_query.h ipmp_query_impl.h
31HDRDIR =	common
32SUBDIRS	=	$(MACH)
33$(BUILD64)SUBDIRS += $(MACH64)
34
35POFILE =	libipmp.po
36MSGFILES =	common/ipmp.c
37XGETFLAGS =	-a
38
39TYPECHECK_LIB =	libipmp.so.1
40TYPELIST = \
41	ipmp_addrinfo_t \
42	ipmp_addrlist_t \
43	ipmp_groupinfo_xfer_t \
44	ipmp_grouplist_t \
45	ipmp_ifinfo_xfer_t \
46	ipmp_iflist_t \
47	ipmp_infotype_t \
48	ipmp_targinfo_xfer_t \
49	mi_query_t \
50	mi_result_t
51
52all :=		TARGET = all
53clean :=	TARGET = clean
54clobber :=	TARGET = clobber
55install	:=	TARGET = install
56
57.KEEP_STATE:
58
59all clean clobber install: $(SUBDIRS)
60
61install_h:	$(ROOTHDRS)
62
63check:		$(CHECKHDRS) $(TYPECHECK)
64
65$(POFILE):	$(MSGFILES)
66		$(BUILDPO.msgfiles)
67
68_msg:		$(MSGDOMAINPOFILE)
69
70$(SUBDIRS): FRC
71	@cd $@; pwd; $(MAKE) $(TARGET)
72
73FRC:
74
75include $(SRC)/Makefile.msg.targ
76include $(SRC)/lib/Makefile.targ
77