1*1ae08745Sheppo# 2*1ae08745Sheppo# CDDL HEADER START 3*1ae08745Sheppo# 4*1ae08745Sheppo# The contents of this file are subject to the terms of the 5*1ae08745Sheppo# Common Development and Distribution License (the "License"). 6*1ae08745Sheppo# You may not use this file except in compliance with the License. 7*1ae08745Sheppo# 8*1ae08745Sheppo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1ae08745Sheppo# or http://www.opensolaris.org/os/licensing. 10*1ae08745Sheppo# See the License for the specific language governing permissions 11*1ae08745Sheppo# and limitations under the License. 12*1ae08745Sheppo# 13*1ae08745Sheppo# When distributing Covered Code, include this CDDL HEADER in each 14*1ae08745Sheppo# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1ae08745Sheppo# If applicable, add the following below this CDDL HEADER, with the 16*1ae08745Sheppo# fields enclosed by brackets "[]" replaced with your own identifying 17*1ae08745Sheppo# information: Portions Copyright [yyyy] [name of copyright owner] 18*1ae08745Sheppo# 19*1ae08745Sheppo# CDDL HEADER END 20*1ae08745Sheppo# 21*1ae08745Sheppo# 22*1ae08745Sheppo# uts/sun4v/cnex/Makefile 23*1ae08745Sheppo# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*1ae08745Sheppo# Use is subject to license terms. 25*1ae08745Sheppo# 26*1ae08745Sheppo#ident "%Z%%M% %I% %E% SMI" 27*1ae08745Sheppo# 28*1ae08745Sheppo# This makefile drives the production of the cnex driver kernel module. 29*1ae08745Sheppo# 30*1ae08745Sheppo# sun4v implementation architecture dependent 31*1ae08745Sheppo# 32*1ae08745Sheppo 33*1ae08745Sheppo# 34*1ae08745Sheppo# Path to the base of the uts directory tree (usually /usr/src/uts). 35*1ae08745Sheppo# 36*1ae08745SheppoUTSBASE = ../.. 37*1ae08745Sheppo 38*1ae08745Sheppo# 39*1ae08745Sheppo# Define the module and object file sets. 40*1ae08745Sheppo# 41*1ae08745SheppoMODULE = cnex 42*1ae08745SheppoOBJECTS = $(CNEX_OBJS:%=$(OBJS_DIR)/%) 43*1ae08745SheppoLINTS = $(CNEX_OBJS:%.o=$(LINTS_DIR)/%.ln) 44*1ae08745SheppoROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 45*1ae08745Sheppo 46*1ae08745Sheppo# 47*1ae08745Sheppo# Include common rules. 48*1ae08745Sheppo# 49*1ae08745Sheppoinclude $(UTSBASE)/sun4v/Makefile.sun4v 50*1ae08745Sheppo 51*1ae08745Sheppo# 52*1ae08745Sheppo# Override defaults to build a unique, local modstubs.o. 53*1ae08745Sheppo# 54*1ae08745SheppoMODSTUBS_DIR = $(OBJS_DIR) 55*1ae08745Sheppo 56*1ae08745SheppoCLEANFILES += $(MODSTUBS_O) 57*1ae08745Sheppo 58*1ae08745Sheppo# 59*1ae08745Sheppo# Define targets 60*1ae08745Sheppo# 61*1ae08745SheppoALL_TARGET = $(BINARY) 62*1ae08745SheppoLINT_TARGET = $(MODULE).lint 63*1ae08745SheppoINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 64*1ae08745Sheppo 65*1ae08745Sheppo# 66*1ae08745Sheppo# lint pass one enforcement 67*1ae08745Sheppo# 68*1ae08745SheppoCFLAGS += $(CCVERBOSE) 69*1ae08745Sheppo 70*1ae08745Sheppo# 71*1ae08745Sheppo# Module dependencies 72*1ae08745Sheppo# 73*1ae08745SheppoLDFLAGS += -dy -Nmisc/ldc 74*1ae08745Sheppo 75*1ae08745Sheppo# 76*1ae08745Sheppo# Default build targets. 77*1ae08745Sheppo# 78*1ae08745Sheppo.KEEP_STATE: 79*1ae08745Sheppo 80*1ae08745Sheppodef: $(DEF_DEPS) 81*1ae08745Sheppo 82*1ae08745Sheppoall: $(ALL_DEPS) 83*1ae08745Sheppo 84*1ae08745Sheppoclean: $(CLEAN_DEPS) 85*1ae08745Sheppo 86*1ae08745Sheppoclobber: $(CLOBBER_DEPS) 87*1ae08745Sheppo 88*1ae08745Sheppolint: $(LINT_DEPS) 89*1ae08745Sheppo 90*1ae08745Sheppomodlintlib: $(MODLINTLIB_DEPS) 91*1ae08745Sheppo 92*1ae08745Sheppoclean.lint: $(CLEAN_LINT_DEPS) 93*1ae08745Sheppo 94*1ae08745Sheppoinstall: $(INSTALL_DEPS) 95*1ae08745Sheppo 96*1ae08745Sheppo# 97*1ae08745Sheppo# Include common targets. 98*1ae08745Sheppo# 99*1ae08745Sheppoinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ 100