140db2e2bSzf162725# 240db2e2bSzf162725# CDDL HEADER START 340db2e2bSzf162725# 440db2e2bSzf162725# The contents of this file are subject to the terms of the 540db2e2bSzf162725# Common Development and Distribution License (the "License"). 640db2e2bSzf162725# You may not use this file except in compliance with the License. 740db2e2bSzf162725# 840db2e2bSzf162725# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 940db2e2bSzf162725# or http://www.opensolaris.org/os/licensing. 1040db2e2bSzf162725# See the License for the specific language governing permissions 1140db2e2bSzf162725# and limitations under the License. 1240db2e2bSzf162725# 1340db2e2bSzf162725# When distributing Covered Code, include this CDDL HEADER in each 1440db2e2bSzf162725# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1540db2e2bSzf162725# If applicable, add the following below this CDDL HEADER, with the 1640db2e2bSzf162725# fields enclosed by brackets "[]" replaced with your own identifying 1740db2e2bSzf162725# information: Portions Copyright [yyyy] [name of copyright owner] 1840db2e2bSzf162725# 1940db2e2bSzf162725# CDDL HEADER END 2040db2e2bSzf162725# 2140db2e2bSzf162725# 2240db2e2bSzf162725# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2340db2e2bSzf162725# Use is subject to license terms. 2440db2e2bSzf162725# 25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 2640db2e2bSzf162725 2740db2e2bSzf162725# 2840db2e2bSzf162725# Path to the base of the uts directory tree (usually /usr/src/uts). 2940db2e2bSzf162725# 3040db2e2bSzf162725UTSBASE = ../.. 3140db2e2bSzf162725 3240db2e2bSzf162725# 3340db2e2bSzf162725# Define the module and object file sets. 3440db2e2bSzf162725# 3540db2e2bSzf162725MODULE = ural 3640db2e2bSzf162725OBJECTS = $(URAL_OBJS:%=$(OBJS_DIR)/%) 3740db2e2bSzf162725ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 3840db2e2bSzf162725 3940db2e2bSzf162725# 4040db2e2bSzf162725# Include common rules. 4140db2e2bSzf162725# 4240db2e2bSzf162725include $(UTSBASE)/intel/Makefile.intel 4340db2e2bSzf162725 4440db2e2bSzf162725# 4540db2e2bSzf162725# Define targets 4640db2e2bSzf162725# 4740db2e2bSzf162725ALL_TARGET = $(BINARY) 4840db2e2bSzf162725INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 4940db2e2bSzf162725 5040db2e2bSzf162725# 5140db2e2bSzf162725# Driver depends on GLDv3 & wifi kernel support module. 5240db2e2bSzf162725# 53*82d0151aSRichard LoweLDFLAGS += -Nmisc/mac -Nmisc/net80211 -Nmisc/usba 5440db2e2bSzf162725 55b6b206fcSJohn Levon# needs work 56b6b206fcSJohn LevonSMOFF += deref_check 57b6b206fcSJohn Levon 5840db2e2bSzf162725# 5940db2e2bSzf162725# Default build targets. 6040db2e2bSzf162725# 6140db2e2bSzf162725.KEEP_STATE: 6240db2e2bSzf162725 6340db2e2bSzf162725def: $(DEF_DEPS) 6440db2e2bSzf162725 6540db2e2bSzf162725all: $(ALL_DEPS) 6640db2e2bSzf162725 6740db2e2bSzf162725clean: $(CLEAN_DEPS) 6840db2e2bSzf162725 6940db2e2bSzf162725clobber: $(CLOBBER_DEPS) 7040db2e2bSzf162725 7140db2e2bSzf162725install: $(INSTALL_DEPS) 7240db2e2bSzf162725 7340db2e2bSzf162725# 7440db2e2bSzf162725# Include common targets. 7540db2e2bSzf162725# 7640db2e2bSzf162725include $(UTSBASE)/intel/Makefile.targ 7740db2e2bSzf162725 7840db2e2bSzf162725# 7940db2e2bSzf162725# If you have any special case that general 8040db2e2bSzf162725# Makefile rules don't serve for you, just do 8140db2e2bSzf162725# it yourself. 8240db2e2bSzf162725# 83