17c478bd9Sstevel@tonic-gate# 2381a2a9aSdr# CDDL HEADER START 3381a2a9aSdr# 4381a2a9aSdr# The contents of this file are subject to the terms of the 5381a2a9aSdr# Common Development and Distribution License (the "License"). 6381a2a9aSdr# You may not use this file except in compliance with the License. 7381a2a9aSdr# 8381a2a9aSdr# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9381a2a9aSdr# or http://www.opensolaris.org/os/licensing. 10381a2a9aSdr# See the License for the specific language governing permissions 11381a2a9aSdr# and limitations under the License. 12381a2a9aSdr# 13381a2a9aSdr# When distributing Covered Code, include this CDDL HEADER in each 14381a2a9aSdr# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15381a2a9aSdr# If applicable, add the following below this CDDL HEADER, with the 16381a2a9aSdr# fields enclosed by brackets "[]" replaced with your own identifying 17381a2a9aSdr# information: Portions Copyright [yyyy] [name of copyright owner] 18381a2a9aSdr# 19381a2a9aSdr# CDDL HEADER END 20381a2a9aSdr# 21381a2a9aSdr# 22ab073b32Sdr# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate# Path to the base of the uts directory tree (usually /usr/src/uts). 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gateUTSBASE = ../.. 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate# 337c478bd9Sstevel@tonic-gate# Define the module and object file sets. 347c478bd9Sstevel@tonic-gate# 357c478bd9Sstevel@tonic-gateMODULE = ipf 367c478bd9Sstevel@tonic-gateOBJECTS = $(IPF_OBJS:%=$(OBJS_DIR)/%) 377c478bd9Sstevel@tonic-gateROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 387c478bd9Sstevel@tonic-gateCONF_SRCDIR = $(UTSBASE)/common/inet/ipf 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate# 417c478bd9Sstevel@tonic-gate# Include common rules. 427c478bd9Sstevel@tonic-gate# 437c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate# 467c478bd9Sstevel@tonic-gate# Define targets 477c478bd9Sstevel@tonic-gate# 487c478bd9Sstevel@tonic-gateALL_TARGET = $(BINARY) $(SRC_CONFFILE) 497c478bd9Sstevel@tonic-gateINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 507c478bd9Sstevel@tonic-gate 517663b816SmlCPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP -DUSE_INET6 522032ea7bSmeemCPPFLAGS += -DSUNDDI -DSOLARIS2=$(RELEASE_MINOR) -DIRE_ILL_CN 5382d0151aSRichard LoweLDFLAGS += -Ndrv/ip -Nmisc/md5 -Nmisc/neti -Nmisc/hook -Nmisc/kcf 54ec71f88eSPatrick MooneyLDFLAGS += -Nmisc/mac 557c478bd9Sstevel@tonic-gate 56ab25eeb5SyzINC_PATH += -I$(UTSBASE)/common/inet/ipf 57ab25eeb5Syz 58bb25c06cSjg# 590aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 600aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 61bb25c06cSjg# Please do not carry these forward to new Makefiles. 62bb25c06cSjg# 63bb25c06cSjg 647014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 657014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 667014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 67d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 687014882cSRichard LoweCERRWARN += -_gcc=-Wno-empty-body 69*fd5e5f43SAndy FiddamanCCWARNINLINE = 707014882cSRichard Lowe 71b6b206fcSJohn Levon# needs work 72b6b206fcSJohn LevonSMATCH=off 73b6b206fcSJohn Levon 747c478bd9Sstevel@tonic-gate# 757c478bd9Sstevel@tonic-gate# Default build targets. 767c478bd9Sstevel@tonic-gate# 777c478bd9Sstevel@tonic-gate.KEEP_STATE: 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gatedef: $(DEF_DEPS) 807c478bd9Sstevel@tonic-gate 81112f9fc1Syzall: $(ALL_DEPS) $(SISCHECK_DEPS) 827c478bd9Sstevel@tonic-gate 83112f9fc1Syzclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS) 847c478bd9Sstevel@tonic-gate 85112f9fc1Syzclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS) 867c478bd9Sstevel@tonic-gate 87112f9fc1Syzinstall: $(INSTALL_DEPS) $(SISCHECK_DEPS) 88f4b3ec61Sdh 897c478bd9Sstevel@tonic-gate# 907c478bd9Sstevel@tonic-gate# Include common targets. 917c478bd9Sstevel@tonic-gate# 927c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ 93