1b65731f1Skini# 2b65731f1Skini# CDDL HEADER START 3b65731f1Skini# 4b65731f1Skini# The contents of this file are subject to the terms of the 5*7aadd8d4Skini# Common Development and Distribution License (the "License"). 6*7aadd8d4Skini# You may not use this file except in compliance with the License. 7b65731f1Skini# 8b65731f1Skini# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9b65731f1Skini# or http://www.opensolaris.org/os/licensing. 10b65731f1Skini# See the License for the specific language governing permissions 11b65731f1Skini# and limitations under the License. 12b65731f1Skini# 13b65731f1Skini# When distributing Covered Code, include this CDDL HEADER in each 14b65731f1Skini# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15b65731f1Skini# If applicable, add the following below this CDDL HEADER, with the 16b65731f1Skini# fields enclosed by brackets "[]" replaced with your own identifying 17b65731f1Skini# information: Portions Copyright [yyyy] [name of copyright owner] 18b65731f1Skini# 19b65731f1Skini# CDDL HEADER END 20b65731f1Skini# 21b65731f1Skini# 22b65731f1Skini# uts/sparc/fcode/Makefile 23b65731f1Skini# 24b65731f1Skini# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25b65731f1Skini# Use is subject to license terms. 26b65731f1Skini# 27b65731f1Skini#ident "%Z%%M% %I% %E% SMI" 28b65731f1Skini# 29b65731f1Skini# This makefile drives the production of the fcode driver kernel module 30b65731f1Skini# 31b65731f1Skini# sparc implementation architecture dependent 32b65731f1Skini# 33b65731f1Skini 34b65731f1Skini# 35b65731f1Skini# Path to the base of the uts directory tree (usually /usr/src/uts). 36b65731f1Skini# 37b65731f1SkiniUTSBASE = ../.. 38b65731f1Skini 39b65731f1Skini# 40b65731f1Skini# Define the module and object file sets. 41b65731f1Skini# 42b65731f1SkiniMODULE = fcode 43b65731f1SkiniOBJECTS = $(FCODE_OBJS:%=$(OBJS_DIR)/%) 44b65731f1SkiniLINTS = $(FCODE_OBJS:%.o=$(LINTS_DIR)/%.ln) 45b65731f1SkiniROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 46b65731f1SkiniCONF_SRCDIR = $(UTSBASE)/sun4/io/efcode 47b65731f1Skini 48b65731f1Skini# 49b65731f1Skini# Include common rules. 50b65731f1Skini# 51b65731f1Skiniinclude $(UTSBASE)/sparc/Makefile.sparc 52b65731f1Skini 53b65731f1Skini# 54b65731f1Skini# Define targets 55b65731f1Skini# 56b65731f1SkiniALL_TARGET = $(BINARY) $(SRC_CONFFILE) 57b65731f1SkiniLINT_TARGET = $(MODULE).lint 58b65731f1SkiniINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 59b65731f1Skini 60b65731f1Skini# 61b65731f1Skini# Include sun4 specific headers files 62b65731f1Skini# 63b65731f1SkiniINC_PATH += -I$(UTSBASE)/sun4 64b65731f1Skini 65b65731f1Skini# Turn this on once compiler understands v9 in it's backend 66b65731f1Skini#INLINES += $(UTSBASE)/sun4/io/fcode.il 67b65731f1Skini 68b65731f1Skini# 69b65731f1Skini# lint pass one enforcement 70b65731f1Skini# 71b65731f1SkiniCFLAGS += $(CCVERBOSE) 72b65731f1Skini 73b65731f1Skini# 74b65731f1Skini# Turn on doubleword alignment for 64 bit registers 75b65731f1Skini# 76b65731f1SkiniCFLAGS += -dalign 77b65731f1Skini 78b65731f1Skini# 79b65731f1Skini# Default build targets. 80b65731f1Skini# 81b65731f1Skini.KEEP_STATE: 82b65731f1Skini 83b65731f1Skinidef: $(DEF_DEPS) 84b65731f1Skini 85b65731f1Skiniall: $(ALL_DEPS) 86b65731f1Skini 87b65731f1Skiniclean: $(CLEAN_DEPS) 88b65731f1Skini 89b65731f1Skiniclobber: $(CLOBBER_DEPS) 90b65731f1Skini 91b65731f1Skinilint: $(LINT_DEPS) 92b65731f1Skini 93b65731f1Skinimodlintlib: $(MODLINTLIB_DEPS) 94b65731f1Skini 95b65731f1Skiniclean.lint: $(CLEAN_LINT_DEPS) 96b65731f1Skini 97b65731f1Skiniinstall: $(INSTALL_DEPS) 98b65731f1Skini 99b65731f1Skini# 100b65731f1Skini# Include common targets. 101b65731f1Skini# 102b65731f1Skiniinclude $(UTSBASE)/sparc/Makefile.targ 103