1*03831d35Sstevel# 2*03831d35Sstevel# CDDL HEADER START 3*03831d35Sstevel# 4*03831d35Sstevel# The contents of this file are subject to the terms of the 5*03831d35Sstevel# Common Development and Distribution License (the "License"). 6*03831d35Sstevel# You may not use this file except in compliance with the License. 7*03831d35Sstevel# 8*03831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*03831d35Sstevel# or http://www.opensolaris.org/os/licensing. 10*03831d35Sstevel# See the License for the specific language governing permissions 11*03831d35Sstevel# and limitations under the License. 12*03831d35Sstevel# 13*03831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each 14*03831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*03831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the 16*03831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying 17*03831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner] 18*03831d35Sstevel# 19*03831d35Sstevel# CDDL HEADER END 20*03831d35Sstevel# 21*03831d35Sstevel 22*03831d35Sstevel# 23*03831d35Sstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*03831d35Sstevel# Use is subject to license terms. 25*03831d35Sstevel# 26*03831d35Sstevel#pragma ident "%Z%%M% %I% %E% SMI" 27*03831d35Sstevel# 28*03831d35Sstevel# This makefile drives the production of the pci/schizo portion of 29*03831d35Sstevel# of the Safari Configurator. 30*03831d35Sstevel# 31*03831d35Sstevel# sun4u implementation architecture dependent 32*03831d35Sstevel# 33*03831d35Sstevel 34*03831d35Sstevel# 35*03831d35Sstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 36*03831d35Sstevel# 37*03831d35SstevelUTSBASE = ../../.. 38*03831d35Sstevel 39*03831d35Sstevel# 40*03831d35Sstevel# Define the module and object file sets. 41*03831d35Sstevel# 42*03831d35SstevelMODULE = gptwo_pci 43*03831d35SstevelOBJECTS = $(GPTWO_PCI_OBJS:%=$(OBJS_DIR)/%) 44*03831d35SstevelLINTS = $(GPTWO_PCI_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*03831d35SstevelROOTMODULE = $(ROOT_STARCAT_MISC_DIR)/$(MODULE) 46*03831d35Sstevel 47*03831d35Sstevel# 48*03831d35Sstevel# Include common rules. 49*03831d35Sstevel# 50*03831d35Sstevelinclude $(UTSBASE)/sun4u/starcat/Makefile.starcat 51*03831d35Sstevel 52*03831d35Sstevel# 53*03831d35Sstevel# Define targets 54*03831d35Sstevel# 55*03831d35SstevelALL_TARGET = $(BINARY) 56*03831d35SstevelLINT_TARGET = $(MODULE).lint 57*03831d35SstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 58*03831d35Sstevel 59*03831d35Sstevel# Turn this on once compiler understands v9 in it's backend 60*03831d35Sstevel#INLINES += $(UTSBASE)/sun4u/starcat/io/gptwo_pci.il 61*03831d35Sstevel 62*03831d35Sstevel# 63*03831d35Sstevel# lint pass one enforcement 64*03831d35Sstevel# 65*03831d35SstevelCFLAGS += $(CCVERBOSE) 66*03831d35Sstevel 67*03831d35Sstevel# 68*03831d35Sstevel# module dependencies 69*03831d35Sstevel# 70*03831d35SstevelLDFLAGS += -dy -Nmisc/gptwocfg -Nmisc/fcgp2 -Nmisc/fcodem -Nmisc/busra 71*03831d35Sstevel 72*03831d35Sstevel# 73*03831d35Sstevel# Turn on doubleword alignment for 64 bit registers 74*03831d35Sstevel# 75*03831d35SstevelCFLAGS += -dalign 76*03831d35Sstevel 77*03831d35Sstevel# 78*03831d35Sstevel# Default build targets. 79*03831d35Sstevel# 80*03831d35Sstevel.KEEP_STATE: 81*03831d35Sstevel 82*03831d35Ssteveldef: $(DEF_DEPS) 83*03831d35Sstevel 84*03831d35Sstevelall: $(ALL_DEPS) 85*03831d35Sstevel 86*03831d35Sstevelclean: $(CLEAN_DEPS) 87*03831d35Sstevel 88*03831d35Sstevelclobber: $(CLOBBER_DEPS) 89*03831d35Sstevel 90*03831d35Sstevellint: $(LINT_DEPS) 91*03831d35Sstevel 92*03831d35Sstevelmodlintlib: $(MODLINTLIB_DEPS) 93*03831d35Sstevel 94*03831d35Sstevelclean.lint: $(CLEAN_LINT_DEPS) 95*03831d35Sstevel 96*03831d35Sstevelinstall: $(INSTALL_DEPS) 97*03831d35Sstevel 98*03831d35Sstevel# 99*03831d35Sstevel# Include common targets. 100*03831d35Sstevel# 101*03831d35Sstevelinclude $(UTSBASE)/sun4u/starcat/Makefile.targ 102