125cf1a30Sjl139090# 225cf1a30Sjl139090# CDDL HEADER START 325cf1a30Sjl139090# 425cf1a30Sjl139090# The contents of this file are subject to the terms of the 525cf1a30Sjl139090# Common Development and Distribution License (the "License"). 625cf1a30Sjl139090# You may not use this file except in compliance with the License. 725cf1a30Sjl139090# 825cf1a30Sjl139090# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 925cf1a30Sjl139090# or http://www.opensolaris.org/os/licensing. 1025cf1a30Sjl139090# See the License for the specific language governing permissions 1125cf1a30Sjl139090# and limitations under the License. 1225cf1a30Sjl139090# 1325cf1a30Sjl139090# When distributing Covered Code, include this CDDL HEADER in each 1425cf1a30Sjl139090# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1525cf1a30Sjl139090# If applicable, add the following below this CDDL HEADER, with the 1625cf1a30Sjl139090# fields enclosed by brackets "[]" replaced with your own identifying 1725cf1a30Sjl139090# information: Portions Copyright [yyyy] [name of copyright owner] 1825cf1a30Sjl139090# 1925cf1a30Sjl139090# CDDL HEADER END 2025cf1a30Sjl139090# 2125cf1a30Sjl139090# 2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2325cf1a30Sjl139090# Use is subject to license terms. 2425cf1a30Sjl139090# 2525cf1a30Sjl139090# This makefile drives the production of the OPL specific 2625cf1a30Sjl139090# Olympus-C driver module. 2725cf1a30Sjl139090# 2825cf1a30Sjl139090# uts/sun4u/opl/olympus_c/Makefile 2925cf1a30Sjl139090# 3025cf1a30Sjl139090 3125cf1a30Sjl139090# 3225cf1a30Sjl139090# Path to the base of the uts directory tree (usually /usr/src/uts). 3325cf1a30Sjl139090# 3425cf1a30Sjl139090UTSBASE = ../../.. 3525cf1a30Sjl139090 3625cf1a30Sjl139090# 3725cf1a30Sjl139090# Define the module and object file sets. 3825cf1a30Sjl139090# 3925cf1a30Sjl139090MODULE = FJSV,SPARC64-VI 4025cf1a30Sjl139090OBJECTS = $(OLYMPUS_OBJS:%=$(OBJS_DIR)/%) 4125cf1a30Sjl139090LINTS = $(OLYMPUS_OBJS:%.o=$(LINTS_DIR)/%.ln) 4225cf1a30Sjl139090ROOTMODULE = $(ROOT_OPL_CPU_DIR)/$(MODULE) 43e98fafb9Sjl139090SOFTLINKS = FJSV,SPARC64-VII 44e98fafb9Sjl139090ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_OPL_CPU_DIR)/%) 4525cf1a30Sjl139090 4625cf1a30Sjl139090CPU_DIR = . 4725cf1a30Sjl139090HERE = ../olympus_c 4825cf1a30Sjl139090 4925cf1a30Sjl139090# 5025cf1a30Sjl139090# Include common rules. 5125cf1a30Sjl139090# 5225cf1a30Sjl139090include $(UTSBASE)/sun4u/opl/Makefile.opl 5325cf1a30Sjl139090 5425cf1a30Sjl139090# 5525cf1a30Sjl139090# Override defaults 5625cf1a30Sjl139090# 5725cf1a30Sjl139090CLEANFILES += $(CPULIB) $(SYM_MOD) 5825cf1a30Sjl139090 5925cf1a30Sjl139090# 6025cf1a30Sjl139090# Define targets 6125cf1a30Sjl139090# 6225cf1a30Sjl139090ALL_TARGET = $(SYM_MOD) 6325cf1a30Sjl139090LINT_TARGET = $(MODULE).lint 6425cf1a30Sjl139090INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) 6525cf1a30Sjl139090 6625cf1a30Sjl139090# 6725cf1a30Sjl139090# Overrides 6825cf1a30Sjl139090# 6925cf1a30Sjl139090ALL_BUILDS = $(ALL_BUILDSONLY64) 7025cf1a30Sjl139090DEF_BUILDS = $(DEF_BUILDSONLY64) 7125cf1a30Sjl139090CLEANLINTFILES += $(LINT32_FILES) 7225cf1a30Sjl139090 7325cf1a30Sjl139090# 7425cf1a30Sjl139090# lint pass one enforcement 7525cf1a30Sjl139090# 7625cf1a30Sjl139090OLYMPUS_C_DEFS += -DOLYMPUS_C 7725cf1a30Sjl139090CFLAGS += $(CCVERBOSE) $(OLYMPUS_C_DEFS) 78*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 7925cf1a30Sjl139090 8025cf1a30Sjl139090CPPFLAGS += -DCPU_MODULE -DOLYMPUS_C 8125cf1a30Sjl139090AS_CPPFLAGS += -DCPU_MODULE -DOLYMPUS_C 8225cf1a30Sjl139090 8325cf1a30Sjl139090# 8425cf1a30Sjl139090# Default build targets. 8525cf1a30Sjl139090# 8625cf1a30Sjl139090.KEEP_STATE: 8725cf1a30Sjl139090 8825cf1a30Sjl139090all: $(ALL_DEPS) 8925cf1a30Sjl139090 9025cf1a30Sjl139090def: $(DEF_DEPS) 9125cf1a30Sjl139090 9225cf1a30Sjl139090clean: $(CLEAN_DEPS) 9325cf1a30Sjl139090 9425cf1a30Sjl139090clobber: $(CLOBBER_DEPS) 9525cf1a30Sjl139090 9625cf1a30Sjl139090lint: $(LINT_DEPS) 9725cf1a30Sjl139090 9825cf1a30Sjl139090modlintlib: $(MODLINTLIB_DEPS) 9925cf1a30Sjl139090 10025cf1a30Sjl139090clean.lint: $(CLEAN_LINT_DEPS) 10125cf1a30Sjl139090 10225cf1a30Sjl139090install: $(INSTALL_DEPS) 10325cf1a30Sjl139090 10425cf1a30Sjl139090$(CPULIB): $(BINARY) 10525cf1a30Sjl139090 $(BUILD.SO) $(BINARY) 10625cf1a30Sjl139090 10725cf1a30Sjl139090$(SYM_MOD): $(UNIX_O) $(CPULIB) 10825cf1a30Sjl139090 @$(ECHO) "resolving symbols against unix.o" 10925cf1a30Sjl139090 @(cd $(UNIX_DIR); pwd; \ 11025cf1a30Sjl139090 CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck) 11125cf1a30Sjl139090 11225cf1a30Sjl139090$(ROOTSOFTLINKS): $(ROOTMODULE) 11324fe0b3bSjmcp $(RM) $@; $(SYMLINK) $(MODULE) $@ 11425cf1a30Sjl139090 11525cf1a30Sjl139090# Include common targets. 11625cf1a30Sjl139090# 11725cf1a30Sjl139090include $(UTSBASE)/sun4u/opl/Makefile.targ 118