19c84c2e8SKeith M Wesolowski# 29c84c2e8SKeith M Wesolowski# CDDL HEADER START 39c84c2e8SKeith M Wesolowski# 49c84c2e8SKeith M Wesolowski# The contents of this file are subject to the terms of the 59c84c2e8SKeith M Wesolowski# Common Development and Distribution License (the "License"). 69c84c2e8SKeith M Wesolowski# You may not use this file except in compliance with the License. 79c84c2e8SKeith M Wesolowski# 89c84c2e8SKeith M Wesolowski# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99c84c2e8SKeith M Wesolowski# or http://www.opensolaris.org/os/licensing. 109c84c2e8SKeith M Wesolowski# See the License for the specific language governing permissions 119c84c2e8SKeith M Wesolowski# and limitations under the License. 129c84c2e8SKeith M Wesolowski# 139c84c2e8SKeith M Wesolowski# When distributing Covered Code, include this CDDL HEADER in each 149c84c2e8SKeith M Wesolowski# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159c84c2e8SKeith M Wesolowski# If applicable, add the following below this CDDL HEADER, with the 169c84c2e8SKeith M Wesolowski# fields enclosed by brackets "[]" replaced with your own identifying 179c84c2e8SKeith M Wesolowski# information: Portions Copyright [yyyy] [name of copyright owner] 189c84c2e8SKeith M Wesolowski# 199c84c2e8SKeith M Wesolowski# CDDL HEADER END 209c84c2e8SKeith M Wesolowski# 219c84c2e8SKeith M Wesolowski# 229c84c2e8SKeith M Wesolowski# uts/i86xpv/pcie/Makefile 239c84c2e8SKeith M Wesolowski# 249c84c2e8SKeith M Wesolowski# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 259c84c2e8SKeith M Wesolowski# Use is subject to license terms. 269c84c2e8SKeith M Wesolowski# 279c84c2e8SKeith M Wesolowski# Copyright 2019 Joyent, Inc. 289c84c2e8SKeith M Wesolowski# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 299c84c2e8SKeith M Wesolowski 309c84c2e8SKeith M Wesolowski# 319c84c2e8SKeith M Wesolowski# Path to the base of the uts directory tree (usually /usr/src/uts). 329c84c2e8SKeith M Wesolowski# 339c84c2e8SKeith M WesolowskiUTSBASE = ../.. 349c84c2e8SKeith M Wesolowski 359c84c2e8SKeith M Wesolowski# 369c84c2e8SKeith M Wesolowski# Define the module and object file sets. 379c84c2e8SKeith M Wesolowski# 389c84c2e8SKeith M WesolowskiMODULE = pcie 399c84c2e8SKeith M WesolowskiOBJECTS = $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%) \ 409c84c2e8SKeith M Wesolowski $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%) 419c84c2e8SKeith M WesolowskiROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) 429c84c2e8SKeith M Wesolowski 439c84c2e8SKeith M Wesolowski# 449c84c2e8SKeith M Wesolowski# Include common rules. 459c84c2e8SKeith M Wesolowski# 469c84c2e8SKeith M Wesolowskiinclude $(UTSBASE)/i86xpv/Makefile.i86xpv 479c84c2e8SKeith M Wesolowski 489c84c2e8SKeith M Wesolowski# 499c84c2e8SKeith M Wesolowski# Dependency 509c84c2e8SKeith M Wesolowski# 51*bd97c7ceSRobert MustacchiLDFLAGS += -Nmisc/acpica -Nmisc/busra -Nmisc/pci_prd 529c84c2e8SKeith M Wesolowski 539c84c2e8SKeith M Wesolowski# 549c84c2e8SKeith M Wesolowski# Define targets 559c84c2e8SKeith M Wesolowski# 569c84c2e8SKeith M WesolowskiALL_TARGET = $(BINARY) 579c84c2e8SKeith M WesolowskiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 589c84c2e8SKeith M Wesolowski 59*bd97c7ceSRobert MustacchiCPPFLAGS += -I$(SRC)/common/pci 609c84c2e8SKeith M WesolowskiCERRWARN += -_gcc=-Wno-unused-value 619c84c2e8SKeith M WesolowskiCERRWARN += -_gcc=-Wno-unused-function # safe 629c84c2e8SKeith M Wesolowski 639c84c2e8SKeith M Wesolowski# needs work 649c84c2e8SKeith M WesolowskiSMOFF += all_func_returns,deref_check 659c84c2e8SKeith M Wesolowski 669c84c2e8SKeith M Wesolowski# 679c84c2e8SKeith M Wesolowski# Default build targets. 689c84c2e8SKeith M Wesolowski# 699c84c2e8SKeith M Wesolowski.KEEP_STATE: 709c84c2e8SKeith M Wesolowski 719c84c2e8SKeith M Wesolowskidef: $(DEF_DEPS) 729c84c2e8SKeith M Wesolowski 739c84c2e8SKeith M Wesolowskiall: $(ALL_DEPS) 749c84c2e8SKeith M Wesolowski 759c84c2e8SKeith M Wesolowskiclean: $(CLEAN_DEPS) 769c84c2e8SKeith M Wesolowski 779c84c2e8SKeith M Wesolowskiclobber: $(CLOBBER_DEPS) 789c84c2e8SKeith M Wesolowski 799c84c2e8SKeith M Wesolowskiinstall: $(INSTALL_DEPS) 809c84c2e8SKeith M Wesolowski 819c84c2e8SKeith M Wesolowski# 829c84c2e8SKeith M Wesolowski# Include common targets. 839c84c2e8SKeith M Wesolowski# 849c84c2e8SKeith M Wesolowskiinclude $(UTSBASE)/i86xpv/Makefile.targ 85