xref: /illumos-gate/usr/src/lib/libdladm/Makefile (revision 36589d6bb0cdae89e166b57b0d64ae56d53247d9)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
221cfa752fSRamaswamy Tummala# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23*36589d6bSRobert Mustacchi# Copyright 2015, Joyent, Inc.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib
287c478bd9Sstevel@tonic-gate
29f595a68aSyz147064HDRS =		libdladm.h libdladm_impl.h libdllink.h libdlaggr.h	\
30d62bc4baSyz147064		libdlwlan.h libdlwlan_impl.h libdlvnic.h libdlvlan.h	\
314784fcbdSSowmini Varadhan		libdlmgmt.h libdlflow.h libdlflow_impl.h libdlstat.h	\
321cfa752fSRamaswamy Tummala		libdlether.h libdlsim.h libdlbridge.h libdliptun.h	\
33*36589d6bSRobert Mustacchi		libdlib.h libdloverlay.h
34da14cebeSEric Cheng
357c478bd9Sstevel@tonic-gateHDRDIR =	common
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gateSUBDIRS =	$(MACH)
38948f2876Sss150715$(BUILD64)SUBDIRS += $(MACH64)
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gatePOFILE =	libdladm.po
41f595a68aSyz147064MSGFILES =	common/libdladm.c common/linkprop.c common/secobj.c	\
42843e1988Sjohnlev		common/libdllink.c common/libdlaggr.c	\
43d62bc4baSyz147064		common/libdlwlan.c common/libdlvnic.c	\
44da14cebeSEric Cheng		common/libdlvlan.c common/libdlmgmt.c	\
45da14cebeSEric Cheng		common/flowattr.c common/flowprop.c	\
46da14cebeSEric Cheng		common/propfuncs.c common/libdlflow.c	\
474784fcbdSSowmini Varadhan		common/libdlstat.c common/flowattr.c	\
484eaa4710SRishi Srivatsavai		common/libdlether.c common/libdlsim.c	\
491cfa752fSRamaswamy Tummala		common/libdlbridge.c common/libdliptun.c\
501cfa752fSRamaswamy Tummala		common/libdlib.c
51da14cebeSEric Cheng
5233343a97SmeemXGETFLAGS =     -a -x libdladm.xcl
537c478bd9Sstevel@tonic-gate
54640aa5d6SRyan GoodfellowTYPECHECK_LIB = libdladm.so.1
55640aa5d6SRyan GoodfellowTYPELIST = \
56640aa5d6SRyan Goodfellow	   dlmgmt_door_setattr_t \
57640aa5d6SRyan Goodfellow	   dlmgmt_door_createid_t \
58640aa5d6SRyan Goodfellow	   dlmgmt_door_destroyid_t \
59640aa5d6SRyan Goodfellow	   dlmgmt_door_remapid_t \
60640aa5d6SRyan Goodfellow	   dlmgmt_door_upid_t \
61640aa5d6SRyan Goodfellow	   dlmgmt_door_createconf_t \
62640aa5d6SRyan Goodfellow	   dlmgmt_door_setattr_t \
63640aa5d6SRyan Goodfellow	   dlmgmt_door_unsetattr_t \
64640aa5d6SRyan Goodfellow	   dlmgmt_door_writeconf_t \
65640aa5d6SRyan Goodfellow	   dlmgmt_door_removeconf_t \
66640aa5d6SRyan Goodfellow	   dlmgmt_door_destroyconf_t \
67640aa5d6SRyan Goodfellow	   dlmgmt_door_openconf_t \
68640aa5d6SRyan Goodfellow	   dlmgmt_door_getconfsnapshot_t \
69640aa5d6SRyan Goodfellow	   dlmgmt_door_getattr_t \
70640aa5d6SRyan Goodfellow	   dlmgmt_createconf_retval_t \
71640aa5d6SRyan Goodfellow	   dlmgmt_openconf_retval_t \
72640aa5d6SRyan Goodfellow	   dlmgmt_getconfsnapshot_retval_t \
73640aa5d6SRyan Goodfellow	   dlmgmt_door_zoneboot_t \
74640aa5d6SRyan Goodfellow	   dlmgmt_remapid_retval_t \
75*36589d6bSRobert Mustacchi	   dlmgmt_createid_retval_t \
76*36589d6bSRobert Mustacchi	   overlay_ioc_create_t \
77*36589d6bSRobert Mustacchi	   overlay_ioc_activate_t \
78*36589d6bSRobert Mustacchi	   overlay_ioc_delete_t \
79*36589d6bSRobert Mustacchi	   overlay_ioc_nprops_t \
80*36589d6bSRobert Mustacchi	   overlay_ioc_propinfo_t \
81*36589d6bSRobert Mustacchi	   overlay_ioc_prop_t
82640aa5d6SRyan Goodfellow
837c478bd9Sstevel@tonic-gateall :=		TARGET = all
847c478bd9Sstevel@tonic-gateclean :=	TARGET = clean
857c478bd9Sstevel@tonic-gateclobber :=	TARGET = clobber
867c478bd9Sstevel@tonic-gateinstall :=	TARGET = install
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate.KEEP_STATE:
897c478bd9Sstevel@tonic-gate
90241c90a0SRichard Loweall clean clobber install: $(SUBDIRS)
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gateinstall_h:	$(ROOTHDRS)
937c478bd9Sstevel@tonic-gate
94640aa5d6SRyan Goodfellowcheck:		$(CHECKHDRS) $(TYPECHECK)
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gate$(POFILE):	pofile_MSGFILES
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gate_msg:		$(MSGDOMAINPOFILE)
997c478bd9Sstevel@tonic-gate
100f808c858Sraf$(SUBDIRS): FRC
1017c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gateFRC:
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.msg.targ
1067c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
107