1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# This makefile drives the production of the OPL specific 26# Olympus-C driver module. 27# 28# uts/sun4u/opl/olympus_c/Makefile 29# 30 31# 32# Path to the base of the uts directory tree (usually /usr/src/uts). 33# 34UTSBASE = ../../.. 35 36# 37# Define the module and object file sets. 38# 39MODULE = FJSV,SPARC64-VI 40OBJECTS = $(OLYMPUS_OBJS:%=$(OBJS_DIR)/%) 41ROOTMODULE = $(ROOT_OPL_CPU_DIR)/$(MODULE) 42SOFTLINKS = FJSV,SPARC64-VII 43ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_OPL_CPU_DIR)/%) 44 45CPU_DIR = . 46HERE = ../olympus_c 47 48# 49# Include common rules. 50# 51include $(UTSBASE)/sun4u/opl/Makefile.opl 52 53# 54# Override defaults 55# 56CLEANFILES += $(CPULIB) $(SYM_MOD) 57 58# 59# Define targets 60# 61ALL_TARGET = $(SYM_MOD) 62INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) 63 64# 65# Overrides 66# 67ALL_BUILDS = $(ALL_BUILDSONLY64) 68DEF_BUILDS = $(DEF_BUILDSONLY64) 69 70OLYMPUS_C_DEFS += -DOLYMPUS_C 71CFLAGS += $(CCVERBOSE) $(OLYMPUS_C_DEFS) 72CERRWARN += $(CNOWARN_UNINIT) 73 74CPPFLAGS += -DCPU_MODULE -DOLYMPUS_C 75AS_CPPFLAGS += -DCPU_MODULE -DOLYMPUS_C 76 77# 78# Default build targets. 79# 80.KEEP_STATE: 81 82all: $(ALL_DEPS) 83 84def: $(DEF_DEPS) 85 86clean: $(CLEAN_DEPS) 87 88clobber: $(CLOBBER_DEPS) 89 90install: $(INSTALL_DEPS) 91 92$(CPULIB): $(OBJECTS) 93 $(BUILD.SO) $(OBJECTS) 94 95$(SYM_MOD): $(UNIX_O) $(CPULIB) 96 @$(ECHO) "resolving symbols against unix.o" 97 @(cd $(UNIX_DIR); pwd; \ 98 CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck) 99 100$(ROOTSOFTLINKS): $(ROOTMODULE) 101 $(RM) $@; $(SYMLINK) $(MODULE) $@ 102 103# Include common targets. 104# 105include $(UTSBASE)/sun4u/opl/Makefile.targ 106