xref: /illumos-gate/usr/src/uts/intel/sockpfp/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
10a0e9771SDarren Reed#
20a0e9771SDarren Reed# CDDL HEADER START
30a0e9771SDarren Reed#
40a0e9771SDarren Reed# The contents of this file are subject to the terms of the
50a0e9771SDarren Reed# Common Development and Distribution License (the "License").
60a0e9771SDarren Reed# You may not use this file except in compliance with the License.
70a0e9771SDarren Reed#
80a0e9771SDarren Reed# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90a0e9771SDarren Reed# or http://www.opensolaris.org/os/licensing.
100a0e9771SDarren Reed# See the License for the specific language governing permissions
110a0e9771SDarren Reed# and limitations under the License.
120a0e9771SDarren Reed#
130a0e9771SDarren Reed# When distributing Covered Code, include this CDDL HEADER in each
140a0e9771SDarren Reed# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150a0e9771SDarren Reed# If applicable, add the following below this CDDL HEADER, with the
160a0e9771SDarren Reed# fields enclosed by brackets "[]" replaced with your own identifying
170a0e9771SDarren Reed# information: Portions Copyright [yyyy] [name of copyright owner]
180a0e9771SDarren Reed#
190a0e9771SDarren Reed# CDDL HEADER END
200a0e9771SDarren Reed#
210a0e9771SDarren Reed#
220a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230a0e9771SDarren Reed# Use is subject to license terms.
240a0e9771SDarren Reed#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
260a0e9771SDarren Reed
270a0e9771SDarren Reed#
280a0e9771SDarren Reed#	Path to the base of the uts directory tree (usually /usr/src/uts).
290a0e9771SDarren Reed#
300a0e9771SDarren ReedUTSBASE	= ../..
310a0e9771SDarren Reed
320a0e9771SDarren Reed#
330a0e9771SDarren Reed#	Define the module and object file sets.
340a0e9771SDarren Reed#
350a0e9771SDarren ReedMODULE		= sockpfp
360a0e9771SDarren ReedOBJECTS		= $(PFP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%)
370a0e9771SDarren ReedROOTMODULE	= $(USR_SOCK_DIR)/$(MODULE)
380a0e9771SDarren Reed
390a0e9771SDarren Reed#
400a0e9771SDarren Reed#	Include common rules.
410a0e9771SDarren Reed#
420a0e9771SDarren Reedinclude $(UTSBASE)/intel/Makefile.intel
430a0e9771SDarren Reed
440a0e9771SDarren Reed#
450a0e9771SDarren Reed#	Define targets
460a0e9771SDarren Reed#
470a0e9771SDarren ReedALL_TARGET	= $(BINARY)
480a0e9771SDarren ReedINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
490a0e9771SDarren Reed
50*82d0151aSRichard LoweLDFLAGS += -Nfs/sockfs -Nmisc/dls -Nmisc/mac -Ndrv/bpf -Ndrv/ip
510a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/inet/sockmods -I$(UTSBASE)/common/io/bpf
520a0e9771SDarren Reed
530a0e9771SDarren Reed#
540aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
550aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
560a0e9771SDarren Reed# Please do not carry these forward to new Makefiles.
570a0e9771SDarren Reed#
580aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
59d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
607014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
617014882cSRichard Lowe
62b6b206fcSJohn Levon# needs work
63b6b206fcSJohn LevonSMOFF += all_func_returns
64b6b206fcSJohn Levon
650a0e9771SDarren Reed#
660a0e9771SDarren Reed#	Default build targets.
670a0e9771SDarren Reed#
680a0e9771SDarren Reed.KEEP_STATE:
690a0e9771SDarren Reed
700a0e9771SDarren Reeddef:		$(DEF_DEPS)
710a0e9771SDarren Reed
720a0e9771SDarren Reedall:		$(ALL_DEPS)
730a0e9771SDarren Reed
740a0e9771SDarren Reedclean:		$(CLEAN_DEPS)
750a0e9771SDarren Reed
760a0e9771SDarren Reedclobber:	$(CLOBBER_DEPS)
770a0e9771SDarren Reed
780a0e9771SDarren Reedinstall:	$(INSTALL_DEPS)
790a0e9771SDarren Reed
800a0e9771SDarren Reed#
810a0e9771SDarren Reed#	Include common targets.
820a0e9771SDarren Reed#
830a0e9771SDarren Reedinclude $(UTSBASE)/intel/Makefile.targ
84