Makefile revision ae115bc77f6fcde83175c75b4206dc2e50747966
d657c51f14601d0235434ffb78cf6ac0f27cc83cLennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# CDDL HEADER START
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# The contents of this file are subject to the terms of the
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# Common Development and Distribution License (the "License").
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# You may not use this file except in compliance with the License.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# or http://www.opensolaris.org/os/licensing.
9fa2f41077b2d76685058836f602f38715b5eef3Kay Sievers# See the License for the specific language governing permissions
9fa2f41077b2d76685058836f602f38715b5eef3Kay Sievers# and limitations under the License.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# When distributing Covered Code, include this CDDL HEADER in each
9fa2f41077b2d76685058836f602f38715b5eef3Kay Sievers# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# If applicable, add the following below this CDDL HEADER, with the
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# fields enclosed by brackets "[]" replaced with your own identifying
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# information: Portions Copyright [yyyy] [name of copyright owner]
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# CDDL HEADER END
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# uts/intel/pci_autoconfig/Makefile
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# Use is subject to license terms.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#ident "%Z%%M% %I% %E% SMI"
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering#
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# This makefile drives the production of the PCI autoconfiguration
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# kernel module.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
673eab9bf0d2d79a72f3d7c430807b8786de7ee3Lennart Poettering# intel platform dependent
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering#
b67f541f130cd4c55da0b74af5fcbb4daeca1937Lennart Poettering
b67f541f130cd4c55da0b74af5fcbb4daeca1937Lennart Poettering#
85424725d1870e2c218e3e2d53971f7e5dc3f0aeKay Sievers# Path to the base of the uts directory tree (usually /usr/src/uts).
85424725d1870e2c218e3e2d53971f7e5dc3f0aeKay Sievers#
673eab9bf0d2d79a72f3d7c430807b8786de7ee3Lennart PoetteringUTSBASE = ../..
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
be2ea723b1d023b3d385d3b791ee4607cbfb20caKay Sievers#
23aedd029452b65c11b6eb838e44f60be1c66814Kay Sievers# Define the module and object file sets.
23aedd029452b65c11b6eb838e44f60be1c66814Kay Sievers#
23aedd029452b65c11b6eb838e44f60be1c66814Kay SieversMODULE = pci_autoconfig
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversOBJECTS = $(PCI_AUTOCONFIG_OBJS:%=$(OBJS_DIR)/%) \
d28315e4aff91560ed4c2fc9f876ec8bfc559f2dJan Engelhardt $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversLINTS = $(PCI_AUTOCONFIG_OBJS:%.o=$(LINTS_DIR)/%.ln) \
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers $(PCI_STRING_OBJS:%.o=$(LINTS_DIR)/%.ln)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversINC_PATH += -I$(UTSBASE)/i86pc
41938693e76c32161d2b3b83253ce996468cbf9bKay Sievers
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers#
06d461ee6f3da6650e6d023d7828455752d70b0bShawn Landden# Include common rules.
5d31974e44b8fa163f859d8467a3667ed52056d0Kay Sievers#
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sieversinclude $(UTSBASE)/intel/Makefile.intel
be2ea723b1d023b3d385d3b791ee4607cbfb20caKay Sievers
f28cbd0382ca53baa99803bbc907a469fbf68128Kay Sievers#
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers# Define targets
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers#
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversALL_TARGET = $(BINARY)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversLINT_TARGET = $(MODULE).lint
be2ea723b1d023b3d385d3b791ee4607cbfb20caKay SieversINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
be2ea723b1d023b3d385d3b791ee4607cbfb20caKay Sievers
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers#
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers# Depends on acpica ACPI CA interpreter
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers#
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversLDFLAGS += -dy -N misc/acpica
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
a5c724b25b2930ecb4a64bb4d9b8619a1354afedKay Sievers#
a5c724b25b2930ecb4a64bb4d9b8619a1354afedKay Sievers# For now, disable these lint checks; maintainers should endeavor
a5c724b25b2930ecb4a64bb4d9b8619a1354afedKay Sievers# to investigate and remove these for maximum lint coverage.
a5c724b25b2930ecb4a64bb4d9b8619a1354afedKay Sievers# Please do not carry these forward to new Makefiles.
b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7caZbigniew Jędrzejewski-Szmek#
13468826f2457cae45a79649e122deadb9dc9774Mike GilbertLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7caZbigniew Jędrzejewski-SzmekLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7caZbigniew Jędrzejewski-Szmek
b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7caZbigniew Jędrzejewski-Szmek#
13468826f2457cae45a79649e122deadb9dc9774Mike Gilbert# Default build targets.
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers#
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers.KEEP_STATE:
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sieversdef: $(DEF_DEPS)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
f28cbd0382ca53baa99803bbc907a469fbf68128Kay Sieversall: $(ALL_DEPS)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
a21b4670d404ca4e55fef921f94a4259075882a9Umut Tezduyar Lindskogclean: $(CLEAN_DEPS)
a21b4670d404ca4e55fef921f94a4259075882a9Umut Tezduyar Lindskog
a21b4670d404ca4e55fef921f94a4259075882a9Umut Tezduyar Lindskogclobber: $(CLOBBER_DEPS)
a21b4670d404ca4e55fef921f94a4259075882a9Umut Tezduyar Lindskog
0acd5a08f5b2ff0580d4fc4d7fc2ff144b2f788fWaLyong Cholint: $(LINT_DEPS)
0acd5a08f5b2ff0580d4fc4d7fc2ff144b2f788fWaLyong Cho
0acd5a08f5b2ff0580d4fc4d7fc2ff144b2f788fWaLyong Chomodlintlib: $(MODLINTLIB_DEPS)
06d461ee6f3da6650e6d023d7828455752d70b0bShawn Landden
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sieversclean.lint: $(CLEAN_LINT_DEPS)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sieversinstall: $(INSTALL_DEPS)
f28cbd0382ca53baa99803bbc907a469fbf68128Kay Sievers
f33016ff8b56c45dc85485ecf4d59f435c42ca40Thomas Bächler#
f28cbd0382ca53baa99803bbc907a469fbf68128Kay Sievers# Include common targets.
f28cbd0382ca53baa99803bbc907a469fbf68128Kay Sievers#
77b6e19458f37cfde127ec6aa9494c0ac45ad890Lennart Poetteringinclude $(UTSBASE)/intel/Makefile.targ
77b6e19458f37cfde127ec6aa9494c0ac45ad890Lennart Poettering