175ab5f91Slh155975# 275ab5f91Slh155975# CDDL HEADER START 375ab5f91Slh155975# 475ab5f91Slh155975# The contents of this file are subject to the terms of the 575ab5f91Slh155975# Common Development and Distribution License (the "License"). 675ab5f91Slh155975# You may not use this file except in compliance with the License. 775ab5f91Slh155975# 875ab5f91Slh155975# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 975ab5f91Slh155975# or http://www.opensolaris.org/os/licensing. 1075ab5f91Slh155975# See the License for the specific language governing permissions 1175ab5f91Slh155975# and limitations under the License. 1275ab5f91Slh155975# 1375ab5f91Slh155975# When distributing Covered Code, include this CDDL HEADER in each 1475ab5f91Slh155975# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1575ab5f91Slh155975# If applicable, add the following below this CDDL HEADER, with the 1675ab5f91Slh155975# fields enclosed by brackets "[]" replaced with your own identifying 1775ab5f91Slh155975# information: Portions Copyright [yyyy] [name of copyright owner] 1875ab5f91Slh155975# 1975ab5f91Slh155975# CDDL HEADER END 2075ab5f91Slh155975# 2175ab5f91Slh155975# 2222eb7cb5Sgd78059# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2375ab5f91Slh155975# Use is subject to license terms. 2475ab5f91Slh155975# 25*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 2675ab5f91Slh155975 2775ab5f91Slh155975# 2875ab5f91Slh155975# Path to the base of the uts directory tree (usually /usr/src/uts). 2975ab5f91Slh155975# 3075ab5f91Slh155975UTSBASE = ../.. 3175ab5f91Slh155975 3275ab5f91Slh155975# 3375ab5f91Slh155975# Define the module and object file sets. 3475ab5f91Slh155975# 3575ab5f91Slh155975MODULE = amd8111s 3675ab5f91Slh155975OBJECTS = $(AMD8111S_OBJS:%=$(OBJS_DIR)/%) 3775ab5f91Slh155975LINTS = $(AMD8111S_OBJS:%.o=$(LINTS_DIR)/%.ln) 3875ab5f91Slh155975ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 3975ab5f91Slh155975 4075ab5f91Slh155975# 4175ab5f91Slh155975# Include common rules. 4275ab5f91Slh155975# 4375ab5f91Slh155975include $(UTSBASE)/intel/Makefile.intel 4475ab5f91Slh155975 4575ab5f91Slh155975# 4675ab5f91Slh155975# Define targets 4775ab5f91Slh155975# 4875ab5f91Slh155975ALL_TARGET = $(BINARY) 4975ab5f91Slh155975LINT_TARGET = $(MODULE).lint 5075ab5f91Slh155975INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 5175ab5f91Slh155975 5275ab5f91Slh155975# 5375ab5f91Slh155975# Overrides 5475ab5f91Slh155975# 5575ab5f91Slh155975 5675ab5f91Slh155975# 5722eb7cb5Sgd78059# Driver depends on GLDv3 5875ab5f91Slh155975# 5922eb7cb5Sgd78059LDFLAGS += -dy -N misc/mac 6075ab5f91Slh155975 61*b6b206fcSJohn Levon# seems wrong 62*b6b206fcSJohn Levon$(OBJS_DIR)/amd8111s_hw.o := SMOFF += precedence 63*b6b206fcSJohn Levon 6475ab5f91Slh155975# 6575ab5f91Slh155975# Default build targets. 6675ab5f91Slh155975# 6775ab5f91Slh155975.KEEP_STATE: 6875ab5f91Slh155975 6975ab5f91Slh155975def: $(DEF_DEPS) 7075ab5f91Slh155975 7175ab5f91Slh155975all: $(ALL_DEPS) 7275ab5f91Slh155975 7375ab5f91Slh155975clean: $(CLEAN_DEPS) 7475ab5f91Slh155975 7575ab5f91Slh155975clobber: $(CLOBBER_DEPS) 7675ab5f91Slh155975 7775ab5f91Slh155975lint: $(LINT_DEPS) 7875ab5f91Slh155975 7975ab5f91Slh155975modlintlib: $(MODLINTLIB_DEPS) 8075ab5f91Slh155975 8175ab5f91Slh155975clean.lint: $(CLEAN_LINT_DEPS) 8275ab5f91Slh155975 8375ab5f91Slh155975install: $(INSTALL_DEPS) 8475ab5f91Slh155975 8575ab5f91Slh155975# 8675ab5f91Slh155975# Include common targets. 8775ab5f91Slh155975# 8875ab5f91Slh155975include $(UTSBASE)/intel/Makefile.targ 89