125cf1a30Sjl#
225cf1a30Sjl# CDDL HEADER START
325cf1a30Sjl#
425cf1a30Sjl# The contents of this file are subject to the terms of the
525cf1a30Sjl# Common Development and Distribution License (the "License").
625cf1a30Sjl# You may not use this file except in compliance with the License.
725cf1a30Sjl#
825cf1a30Sjl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
925cf1a30Sjl# or http://www.opensolaris.org/os/licensing.
1025cf1a30Sjl# See the License for the specific language governing permissions
1125cf1a30Sjl# and limitations under the License.
1225cf1a30Sjl#
1325cf1a30Sjl# When distributing Covered Code, include this CDDL HEADER in each
1425cf1a30Sjl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1525cf1a30Sjl# If applicable, add the following below this CDDL HEADER, with the
1625cf1a30Sjl# fields enclosed by brackets "[]" replaced with your own identifying
1725cf1a30Sjl# information: Portions Copyright [yyyy] [name of copyright owner]
1825cf1a30Sjl#
1925cf1a30Sjl# CDDL HEADER END
2025cf1a30Sjl#
2125cf1a30Sjl#
2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2325cf1a30Sjl# Use is subject to license terms.
2425cf1a30Sjl#
2525cf1a30Sjl#	This makefile drives the production of the OPL specific
2625cf1a30Sjl#	Olympus-C driver module.
2725cf1a30Sjl#
2825cf1a30Sjl# uts/sun4u/opl/olympus_c/Makefile
2925cf1a30Sjl#
3025cf1a30Sjl
3125cf1a30Sjl#
3225cf1a30Sjl#	Path to the base of the uts directory tree (usually /usr/src/uts).
3325cf1a30Sjl#
3425cf1a30SjlUTSBASE	= ../../..
3525cf1a30Sjl
3625cf1a30Sjl#
3725cf1a30Sjl#	Define the module and object file sets.
3825cf1a30Sjl#
3925cf1a30SjlMODULE		= FJSV,SPARC64-VI
4025cf1a30SjlOBJECTS		= $(OLYMPUS_OBJS:%=$(OBJS_DIR)/%)
4125cf1a30SjlROOTMODULE	= $(ROOT_OPL_CPU_DIR)/$(MODULE)
42e98fafb9SjlSOFTLINKS	= FJSV,SPARC64-VII
43e98fafb9SjlROOTSOFTLINKS	= $(SOFTLINKS:%=$(ROOT_OPL_CPU_DIR)/%)
4425cf1a30Sjl
4525cf1a30SjlCPU_DIR		= .
4625cf1a30SjlHERE		= ../olympus_c
4725cf1a30Sjl
4825cf1a30Sjl#
4925cf1a30Sjl#	Include common rules.
5025cf1a30Sjl#
5125cf1a30Sjlinclude $(UTSBASE)/sun4u/opl/Makefile.opl
5225cf1a30Sjl
5325cf1a30Sjl#
5425cf1a30Sjl#	Override defaults
5525cf1a30Sjl#
5625cf1a30SjlCLEANFILES	+= $(CPULIB) $(SYM_MOD)
5725cf1a30Sjl
5825cf1a30Sjl#
5925cf1a30Sjl#	Define targets
6025cf1a30Sjl#
6125cf1a30SjlALL_TARGET	= $(SYM_MOD)
6225cf1a30SjlINSTALL_TARGET	= def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
6325cf1a30Sjl
6425cf1a30Sjl#
6525cf1a30Sjl#	Overrides
6625cf1a30Sjl#
6725cf1a30SjlALL_BUILDS	= $(ALL_BUILDSONLY64)
6825cf1a30SjlDEF_BUILDS	= $(DEF_BUILDSONLY64)
6925cf1a30Sjl
7025cf1a30SjlOLYMPUS_C_DEFS	+= -DOLYMPUS_C
7125cf1a30SjlCFLAGS += $(CCVERBOSE) $(OLYMPUS_C_DEFS)
72*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
7325cf1a30Sjl
7425cf1a30SjlCPPFLAGS += -DCPU_MODULE -DOLYMPUS_C
7525cf1a30SjlAS_CPPFLAGS += -DCPU_MODULE -DOLYMPUS_C
7625cf1a30Sjl
7725cf1a30Sjl#
7825cf1a30Sjl#	Default build targets.
7925cf1a30Sjl#
8025cf1a30Sjl.KEEP_STATE:
8125cf1a30Sjl
8225cf1a30Sjlall:		$(ALL_DEPS)
8325cf1a30Sjl
8425cf1a30Sjldef:		$(DEF_DEPS)
8525cf1a30Sjl
8625cf1a30Sjlclean:		$(CLEAN_DEPS)
8725cf1a30Sjl
8825cf1a30Sjlclobber:	$(CLOBBER_DEPS)
8925cf1a30Sjl
9025cf1a30Sjlinstall:	$(INSTALL_DEPS)
9125cf1a30Sjl
92ab65fd2aSRichard Lowe$(CPULIB):	$(OBJECTS)
93ab65fd2aSRichard Lowe	$(BUILD.SO) $(OBJECTS)
9425cf1a30Sjl
9525cf1a30Sjl$(SYM_MOD):	$(UNIX_O) $(CPULIB)
9625cf1a30Sjl	@$(ECHO) "resolving symbols against unix.o"
9725cf1a30Sjl	@(cd $(UNIX_DIR); pwd; \
9825cf1a30Sjl	CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
9925cf1a30Sjl
10025cf1a30Sjl$(ROOTSOFTLINKS): $(ROOTMODULE)
10124fe0b3bSjmcp	$(RM) $@; $(SYMLINK) $(MODULE) $@
10225cf1a30Sjl
10325cf1a30Sjl#	Include common targets.
10425cf1a30Sjl#
10525cf1a30Sjlinclude $(UTSBASE)/sun4u/opl/Makefile.targ
106