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 27 include $(SRC)/lib/Makefile.lib 28 29 HDRS = 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 libdlfeth.h 34 35 HDRDIR = common 36 37 SUBDIRS = $(MACH) 38 $(BUILD64)SUBDIRS += $(MACH64) 39 40 POFILE = libdladm.po 41 MSGFILES = 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/libdlfeth.c common/libdlib.c 51 52 XGETFLAGS = -a -x libdladm.xcl 53 54 TYPECHECK_LIB = libdladm.so.1 55 TYPELIST = overlay_ioc_create_t \ 56 overlay_ioc_activate_t \ 57 overlay_ioc_delete_t \ 58 overlay_ioc_nprops_t \ 59 overlay_ioc_propinfo_t \ 60 overlay_ioc_prop_t 61 62 all := TARGET = all 63 clean := TARGET = clean 64 clobber := TARGET = clobber 65 install := TARGET = install 66 lint := TARGET = lint 67 68 .KEEP_STATE: 69 70 all clean clobber install lint: $(SUBDIRS) 71 72 install_h: $(ROOTHDRS) 73 74 check: $(CHECKHDRS) $(TYPECHECK) 75 76 $(POFILE): pofile_MSGFILES 77 78 _msg: $(MSGDOMAINPOFILE) 79 80 $(SUBDIRS): FRC 81 @cd $@; pwd; $(MAKE) $(TARGET) 82 83 FRC: 84 85 include $(SRC)/Makefile.msg.targ 86 include $(SRC)/lib/Makefile.targ