xref: /illumos-gate/usr/src/uts/intel/daplt/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
19e39c5baSBill Taylor#
29e39c5baSBill Taylor# CDDL HEADER START
39e39c5baSBill Taylor#
49e39c5baSBill Taylor# The contents of this file are subject to the terms of the
59e39c5baSBill Taylor# Common Development and Distribution License (the "License").
69e39c5baSBill Taylor# You may not use this file except in compliance with the License.
79e39c5baSBill Taylor#
89e39c5baSBill Taylor# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99e39c5baSBill Taylor# or http://www.opensolaris.org/os/licensing.
109e39c5baSBill Taylor# See the License for the specific language governing permissions
119e39c5baSBill Taylor# and limitations under the License.
129e39c5baSBill Taylor#
139e39c5baSBill Taylor# When distributing Covered Code, include this CDDL HEADER in each
149e39c5baSBill Taylor# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159e39c5baSBill Taylor# If applicable, add the following below this CDDL HEADER, with the
169e39c5baSBill Taylor# fields enclosed by brackets "[]" replaced with your own identifying
179e39c5baSBill Taylor# information: Portions Copyright [yyyy] [name of copyright owner]
189e39c5baSBill Taylor#
199e39c5baSBill Taylor# CDDL HEADER END
209e39c5baSBill Taylor#
219e39c5baSBill Taylor
229e39c5baSBill Taylor#
239e39c5baSBill Taylor# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
249e39c5baSBill Taylor# Use is subject to license terms.
259e39c5baSBill Taylor#
26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
279e39c5baSBill Taylor
289e39c5baSBill Taylor#
299e39c5baSBill Taylor#	Paths to the base of the uts directory trees
309e39c5baSBill Taylor#
319e39c5baSBill TaylorUTSBASE = ../..
329e39c5baSBill Taylor
339e39c5baSBill Taylor#
349e39c5baSBill Taylor#	Define the module and object file sets.
359e39c5baSBill Taylor#
369e39c5baSBill TaylorMODULE		= daplt
379e39c5baSBill TaylorOBJECTS		= $(DAPLT_OBJS:%=$(OBJS_DIR)/%)
389e39c5baSBill TaylorROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
399e39c5baSBill TaylorCONF_SRCDIR	= $(UTSBASE)/common/io/ib/clients/daplt
40*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/ibtl -Nmisc/ibcm
415c25b6f1SYuri Pankov
429e39c5baSBill Taylor#
439e39c5baSBill Taylor#	Include common rules.
449e39c5baSBill Taylor#
459e39c5baSBill Taylorinclude $(UTSBASE)/intel/Makefile.intel
469e39c5baSBill Taylor
479e39c5baSBill Taylor#
489e39c5baSBill Taylor#	Define targets
499e39c5baSBill Taylor#
509e39c5baSBill TaylorALL_TARGET	= $(BINARY) $(SRC_CONFILE)
519e39c5baSBill TaylorINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
529e39c5baSBill Taylor
539e39c5baSBill Taylor#
549e39c5baSBill Taylor# path for header files
559e39c5baSBill Taylor#
569e39c5baSBill TaylorINCLUDE_PATH += -I$(UTSBASE)/common/sys/ib/clients/daplt
579e39c5baSBill Taylor
589e39c5baSBill Taylor#
599e39c5baSBill Taylor#       Overrides.
609e39c5baSBill Taylor#
619e39c5baSBill Taylor
629e39c5baSBill Taylor#
630aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
640aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
659e39c5baSBill Taylor# Please do not carry these forward to new Makefiles.
669e39c5baSBill Taylor#
679e39c5baSBill Taylor
687014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
697014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
71d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
727014882cSRichard Lowe
73b6b206fcSJohn Levon# needs work
74b6b206fcSJohn Levon$(OBJS_DIR)/daplt.o := SMOFF += all_func_returns,deref_check
75b6b206fcSJohn Levon
769e39c5baSBill Taylor#
779e39c5baSBill Taylor#	Default build targets.
789e39c5baSBill Taylor#
799e39c5baSBill Taylor.KEEP_STATE:
809e39c5baSBill Taylor
819e39c5baSBill Taylordef:		$(DEF_DEPS)
829e39c5baSBill Taylor
839e39c5baSBill Taylorall:		$(ALL_DEPS)
849e39c5baSBill Taylor
859e39c5baSBill Taylorclean:		$(CLEAN_DEPS)
869e39c5baSBill Taylor
879e39c5baSBill Taylorclobber:	$(CLOBBER_DEPS)
889e39c5baSBill Taylor
899e39c5baSBill Taylorinstall:	$(INSTALL_DEPS)
909e39c5baSBill Taylor
919e39c5baSBill Taylor#
929e39c5baSBill Taylor#	Include common targets.
939e39c5baSBill Taylor#
949e39c5baSBill Taylorinclude $(UTSBASE)/intel/Makefile.targ
95