xref: /illumos-gate/usr/src/lib/libdladm/Makefile (revision 3fe80ca4a1f8a033d672a9a2e6e4babac651205a)
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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23# Copyright 2015, Joyent, Inc.
24#
25#
26
27include $(SRC)/lib/Makefile.lib
28
29HDRS =		libdladm.h libdladm_impl.h libdllink.h libdlaggr.h	\
30		libdlwlan.h libdlwlan_impl.h libdlvnic.h libdlvlan.h	\
31		libdlmgmt.h libdlflow.h libdlflow_impl.h libdlstat.h	\
32		libdlether.h libdlsim.h libdlbridge.h libdliptun.h	\
33		libdlib.h libdloverlay.h
34
35HDRDIR =	common
36
37SUBDIRS =	$(MACH)
38$(BUILD64)SUBDIRS += $(MACH64)
39
40POFILE =	libdladm.po
41MSGFILES =	common/libdladm.c common/linkprop.c common/secobj.c	\
42		common/libdllink.c common/libdlaggr.c	\
43		common/libdlwlan.c common/libdlvnic.c	\
44		common/libdlvlan.c common/libdlmgmt.c	\
45		common/flowattr.c common/flowprop.c	\
46		common/propfuncs.c common/libdlflow.c	\
47		common/libdlstat.c common/flowattr.c	\
48		common/libdlether.c common/libdlsim.c	\
49		common/libdlbridge.c common/libdliptun.c\
50		common/libdlib.c
51
52XGETFLAGS =     -a -x libdladm.xcl
53
54TYPECHECK_LIB = libdladm.so.1
55TYPELIST = \
56	   dlmgmt_door_setattr_t \
57	   dlmgmt_door_createid_t \
58	   dlmgmt_door_destroyid_t \
59	   dlmgmt_door_remapid_t \
60	   dlmgmt_door_upid_t \
61	   dlmgmt_door_createconf_t \
62	   dlmgmt_door_setattr_t \
63	   dlmgmt_door_unsetattr_t \
64	   dlmgmt_door_writeconf_t \
65	   dlmgmt_door_removeconf_t \
66	   dlmgmt_door_destroyconf_t \
67	   dlmgmt_door_openconf_t \
68	   dlmgmt_door_getconfsnapshot_t \
69	   dlmgmt_door_getattr_t \
70	   dlmgmt_createconf_retval_t \
71	   dlmgmt_openconf_retval_t \
72	   dlmgmt_getconfsnapshot_retval_t \
73	   dlmgmt_door_zoneboot_t \
74	   dlmgmt_remapid_retval_t \
75	   dlmgmt_createid_retval_t \
76	   overlay_ioc_create_t \
77	   overlay_ioc_activate_t \
78	   overlay_ioc_delete_t \
79	   overlay_ioc_nprops_t \
80	   overlay_ioc_propinfo_t \
81	   overlay_ioc_prop_t
82
83all :=		TARGET = all
84clean :=	TARGET = clean
85clobber :=	TARGET = clobber
86install :=	TARGET = install
87
88.KEEP_STATE:
89
90all clean clobber install: $(SUBDIRS)
91
92install_h:	$(ROOTHDRS)
93
94check:		$(CHECKHDRS) $(TYPECHECK)
95
96$(POFILE):	pofile_MSGFILES
97
98_msg:		$(MSGDOMAINPOFILE)
99
100$(SUBDIRS): FRC
101	@cd $@; pwd; $(MAKE) $(TARGET)
102
103FRC:
104
105include $(SRC)/Makefile.msg.targ
106include $(SRC)/lib/Makefile.targ
107