1b65731f1Skini# 2b65731f1Skini# CDDL HEADER START 3b65731f1Skini# 4b65731f1Skini# The contents of this file are subject to the terms of the 57aadd8d4Skini# Common Development and Distribution License (the "License"). 67aadd8d4Skini# 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. 26*89b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved. 27b65731f1Skini# 28b65731f1Skini# This makefile drives the production of the fcode driver kernel module 29b65731f1Skini# 30b65731f1Skini# sparc implementation architecture dependent 31b65731f1Skini# 32b65731f1Skini 33b65731f1Skini# 34b65731f1Skini# Path to the base of the uts directory tree (usually /usr/src/uts). 35b65731f1Skini# 36b65731f1SkiniUTSBASE = ../.. 37b65731f1Skini 38b65731f1Skini# 39b65731f1Skini# Define the module and object file sets. 40b65731f1Skini# 41b65731f1SkiniMODULE = fcode 42b65731f1SkiniOBJECTS = $(FCODE_OBJS:%=$(OBJS_DIR)/%) 43b65731f1SkiniLINTS = $(FCODE_OBJS:%.o=$(LINTS_DIR)/%.ln) 44b65731f1SkiniROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 45b65731f1SkiniCONF_SRCDIR = $(UTSBASE)/sun4/io/efcode 46b65731f1Skini 47b65731f1Skini# 48b65731f1Skini# Include common rules. 49b65731f1Skini# 50b65731f1Skiniinclude $(UTSBASE)/sparc/Makefile.sparc 51b65731f1Skini 52b65731f1Skini# 53b65731f1Skini# Define targets 54b65731f1Skini# 55b65731f1SkiniALL_TARGET = $(BINARY) $(SRC_CONFFILE) 56b65731f1SkiniLINT_TARGET = $(MODULE).lint 57b65731f1SkiniINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 58b65731f1Skini 59b65731f1Skini# 60b65731f1Skini# Include sun4 specific headers files 61b65731f1Skini# 62b65731f1SkiniINC_PATH += -I$(UTSBASE)/sun4 63b65731f1Skini 64b65731f1Skini# Turn this on once compiler understands v9 in it's backend 65b65731f1Skini#INLINES += $(UTSBASE)/sun4/io/fcode.il 66b65731f1Skini 67b65731f1Skini# 68b65731f1Skini# lint pass one enforcement 69b65731f1Skini# 70b65731f1SkiniCFLAGS += $(CCVERBOSE) 71b65731f1Skini 72b65731f1Skini# 73b65731f1Skini# Turn on doubleword alignment for 64 bit registers 74b65731f1Skini# 75b65731f1SkiniCFLAGS += -dalign 76b65731f1Skini 77b65731f1Skini# 78*89b43686SBayard Bell# Define dependency on fcodem 79*89b43686SBayard Bell# 80*89b43686SBayard BellLDFLAGS += -dy -N misc/fcodem 81*89b43686SBayard Bell 82*89b43686SBayard Bell# 83b65731f1Skini# Default build targets. 84b65731f1Skini# 85b65731f1Skini.KEEP_STATE: 86b65731f1Skini 87b65731f1Skinidef: $(DEF_DEPS) 88b65731f1Skini 89b65731f1Skiniall: $(ALL_DEPS) 90b65731f1Skini 91b65731f1Skiniclean: $(CLEAN_DEPS) 92b65731f1Skini 93b65731f1Skiniclobber: $(CLOBBER_DEPS) 94b65731f1Skini 95b65731f1Skinilint: $(LINT_DEPS) 96b65731f1Skini 97b65731f1Skinimodlintlib: $(MODLINTLIB_DEPS) 98b65731f1Skini 99b65731f1Skiniclean.lint: $(CLEAN_LINT_DEPS) 100b65731f1Skini 101b65731f1Skiniinstall: $(INSTALL_DEPS) 102b65731f1Skini 103b65731f1Skini# 104b65731f1Skini# Include common targets. 105b65731f1Skini# 106b65731f1Skiniinclude $(UTSBASE)/sparc/Makefile.targ 107