xref: /illumos-gate/usr/src/uts/intel/sol_ofs/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1c39526b7SPramod Gunjikar#
2c39526b7SPramod Gunjikar# CDDL HEADER START
3c39526b7SPramod Gunjikar#
4c39526b7SPramod Gunjikar# The contents of this file are subject to the terms of the
5c39526b7SPramod Gunjikar# Common Development and Distribution License (the "License").
6c39526b7SPramod Gunjikar# You may not use this file except in compliance with the License.
7c39526b7SPramod Gunjikar#
8c39526b7SPramod Gunjikar# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c39526b7SPramod Gunjikar# or http://www.opensolaris.org/os/licensing.
10c39526b7SPramod Gunjikar# See the License for the specific language governing permissions
11c39526b7SPramod Gunjikar# and limitations under the License.
12c39526b7SPramod Gunjikar#
13c39526b7SPramod Gunjikar# When distributing Covered Code, include this CDDL HEADER in each
14c39526b7SPramod Gunjikar# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c39526b7SPramod Gunjikar# If applicable, add the following below this CDDL HEADER, with the
16c39526b7SPramod Gunjikar# fields enclosed by brackets "[]" replaced with your own identifying
17c39526b7SPramod Gunjikar# information: Portions Copyright [yyyy] [name of copyright owner]
18c39526b7SPramod Gunjikar#
19c39526b7SPramod Gunjikar# CDDL HEADER END
20c39526b7SPramod Gunjikar#
21c39526b7SPramod Gunjikar#
22c39526b7SPramod Gunjikar# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23c39526b7SPramod Gunjikar#
24c85f09ccSJohn Levon# Copyright 2019 Joyent, Inc.
25c85f09ccSJohn Levon#
26b6b206fcSJohn Levon
27c39526b7SPramod Gunjikar
28c39526b7SPramod Gunjikar#
29c39526b7SPramod Gunjikar#	Path to the base of the uts directory tree (usually /usr/src/uts).
30c39526b7SPramod Gunjikar#
31c39526b7SPramod GunjikarUTSBASE	= ../..
32c39526b7SPramod Gunjikar
33c39526b7SPramod Gunjikar#
34c39526b7SPramod Gunjikar#	Define the module and object file sets.
35c39526b7SPramod Gunjikar#
36c39526b7SPramod GunjikarMODULE		= sol_ofs
37c39526b7SPramod GunjikarOBJECTS		= $(SOL_OFS_OBJS:%=$(OBJS_DIR)/%)
38c39526b7SPramod GunjikarROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
39*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/ibtl -Nmisc/ibcm
405c25b6f1SYuri Pankov
41c39526b7SPramod Gunjikar#
42c39526b7SPramod Gunjikar#	Include common rules.
43c39526b7SPramod Gunjikar#
44c39526b7SPramod Gunjikarinclude $(UTSBASE)/intel/Makefile.intel
45c39526b7SPramod Gunjikar
46c39526b7SPramod Gunjikar#
47c39526b7SPramod Gunjikar#	Define targets
48c39526b7SPramod Gunjikar#
49c39526b7SPramod GunjikarALL_TARGET	= $(BINARY)
50c39526b7SPramod GunjikarINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
51c39526b7SPramod Gunjikar
52c39526b7SPramod Gunjikar#
530aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
540aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
55c39526b7SPramod Gunjikar# Please do not carry these forward to new Makefiles.
56c39526b7SPramod Gunjikar#
57c39526b7SPramod Gunjikar
58d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
597014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
607014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
617014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
627014882cSRichard Lowe
63b6b206fcSJohn Levon# needs work
64b6b206fcSJohn Levon$(OBJS_DIR)/sol_cma.o := SMOFF += deref_check
65b6b206fcSJohn Levon
66c85f09ccSJohn Levon# false positive
67c85f09ccSJohn LevonSMOFF += signed
68c85f09ccSJohn Levon
69c39526b7SPramod Gunjikar#
70c39526b7SPramod Gunjikar#	Default build targets.
71c39526b7SPramod Gunjikar#
72c39526b7SPramod Gunjikar.KEEP_STATE:
73c39526b7SPramod Gunjikar
74c39526b7SPramod Gunjikardef:		$(DEF_DEPS)
75c39526b7SPramod Gunjikar
76c39526b7SPramod Gunjikarall:		$(ALL_DEPS)
77c39526b7SPramod Gunjikar
78c39526b7SPramod Gunjikarclean:		$(CLEAN_DEPS)
79c39526b7SPramod Gunjikar
80c39526b7SPramod Gunjikarclobber:	$(CLOBBER_DEPS)
81c39526b7SPramod Gunjikar
82c39526b7SPramod Gunjikarinstall:	$(INSTALL_DEPS)
83c39526b7SPramod Gunjikar
84c39526b7SPramod Gunjikar#
85c39526b7SPramod Gunjikar#	Include common targets.
86c39526b7SPramod Gunjikar#
87c39526b7SPramod Gunjikarinclude $(UTSBASE)/intel/Makefile.targ
88