11531Skini# 21531Skini# CDDL HEADER START 31531Skini# 41531Skini# The contents of this file are subject to the terms of the 5*1540Skini# Common Development and Distribution License (the "License"). 6*1540Skini# You may not use this file except in compliance with the License. 71531Skini# 81531Skini# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91531Skini# or http://www.opensolaris.org/os/licensing. 101531Skini# See the License for the specific language governing permissions 111531Skini# and limitations under the License. 121531Skini# 131531Skini# When distributing Covered Code, include this CDDL HEADER in each 141531Skini# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151531Skini# If applicable, add the following below this CDDL HEADER, with the 161531Skini# fields enclosed by brackets "[]" replaced with your own identifying 171531Skini# information: Portions Copyright [yyyy] [name of copyright owner] 181531Skini# 191531Skini# CDDL HEADER END 201531Skini# 211531Skini# 221531Skini# uts/sparc/fcode/Makefile 231531Skini# 241531Skini# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 251531Skini# Use is subject to license terms. 261531Skini# 271531Skini#ident "%Z%%M% %I% %E% SMI" 281531Skini# 291531Skini# This makefile drives the production of the fcode driver kernel module 301531Skini# 311531Skini# sparc implementation architecture dependent 321531Skini# 331531Skini 341531Skini# 351531Skini# Path to the base of the uts directory tree (usually /usr/src/uts). 361531Skini# 371531SkiniUTSBASE = ../.. 381531Skini 391531Skini# 401531Skini# Define the module and object file sets. 411531Skini# 421531SkiniMODULE = fcode 431531SkiniOBJECTS = $(FCODE_OBJS:%=$(OBJS_DIR)/%) 441531SkiniLINTS = $(FCODE_OBJS:%.o=$(LINTS_DIR)/%.ln) 451531SkiniROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 461531SkiniCONF_SRCDIR = $(UTSBASE)/sun4/io/efcode 471531Skini 481531Skini# 491531Skini# Include common rules. 501531Skini# 511531Skiniinclude $(UTSBASE)/sparc/Makefile.sparc 521531Skini 531531Skini# 541531Skini# Define targets 551531Skini# 561531SkiniALL_TARGET = $(BINARY) $(SRC_CONFFILE) 571531SkiniLINT_TARGET = $(MODULE).lint 581531SkiniINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 591531Skini 601531Skini# 611531Skini# Include sun4 specific headers files 621531Skini# 631531SkiniINC_PATH += -I$(UTSBASE)/sun4 641531Skini 651531Skini# Turn this on once compiler understands v9 in it's backend 661531Skini#INLINES += $(UTSBASE)/sun4/io/fcode.il 671531Skini 681531Skini# 691531Skini# lint pass one enforcement 701531Skini# 711531SkiniCFLAGS += $(CCVERBOSE) 721531Skini 731531Skini# 741531Skini# Turn on doubleword alignment for 64 bit registers 751531Skini# 761531SkiniCFLAGS += -dalign 771531Skini 781531Skini# 791531Skini# Default build targets. 801531Skini# 811531Skini.KEEP_STATE: 821531Skini 831531Skinidef: $(DEF_DEPS) 841531Skini 851531Skiniall: $(ALL_DEPS) 861531Skini 871531Skiniclean: $(CLEAN_DEPS) 881531Skini 891531Skiniclobber: $(CLOBBER_DEPS) 901531Skini 911531Skinilint: $(LINT_DEPS) 921531Skini 931531Skinimodlintlib: $(MODLINTLIB_DEPS) 941531Skini 951531Skiniclean.lint: $(CLEAN_LINT_DEPS) 961531Skini 971531Skiniinstall: $(INSTALL_DEPS) 981531Skini 991531Skini# 1001531Skini# Include common targets. 1011531Skini# 1021531Skiniinclude $(UTSBASE)/sparc/Makefile.targ 103