c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen# CDDL HEADER START
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# The contents of this file are subject to the terms of the
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# Common Development and Distribution License (the "License").
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# You may not use this file except in compliance with the License.
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# or http://www.opensolaris.org/os/licensing.
2ed2459dbd183bb371da4a0aecb2d2b74ae7c815Timo Sirainen# See the License for the specific language governing permissions
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# and limitations under the License.
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ac4e6609cbdca594db1b1c02afb1e372ab22e060Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
ac4e6609cbdca594db1b1c02afb1e372ab22e060Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ac4e6609cbdca594db1b1c02afb1e372ab22e060Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
ac4e6609cbdca594db1b1c02afb1e372ab22e060Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
ac4e6609cbdca594db1b1c02afb1e372ab22e060Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
ac4e6609cbdca594db1b1c02afb1e372ab22e060Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# CDDL HEADER END
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# Use is subject to license terms.
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#pragma ident "%Z%%M% %I% %E% SMI"
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# This makefile drives the production of the sun4u starcat platform
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# module.
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# sun4u starcat implementation architecture dependent
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
2ed2459dbd183bb371da4a0aecb2d2b74ae7c815Timo Sirainen
2ed2459dbd183bb371da4a0aecb2d2b74ae7c815Timo Sirainen#
4321f6c969e7b8f6b243ff5bb6b8d297921676f6Timo Sirainen# Path to the base of the uts directory tree (usually /usr/src/uts).
910fa4e4204a73d3d24c03f3059dd24e727ca057Timo Sirainen#
4321f6c969e7b8f6b243ff5bb6b8d297921676f6Timo SirainenUTSBASE = ../..
4321f6c969e7b8f6b243ff5bb6b8d297921676f6Timo Sirainen
910fa4e4204a73d3d24c03f3059dd24e727ca057Timo Sirainen#
4321f6c969e7b8f6b243ff5bb6b8d297921676f6Timo Sirainen# Include common rules.
4321f6c969e7b8f6b243ff5bb6b8d297921676f6Timo Sirainen#
4321f6c969e7b8f6b243ff5bb6b8d297921676f6Timo Siraineninclude $(UTSBASE)/sun4u/starcat/Makefile.starcat
306b3f41b05da642d87e7ca7a1496efce9f5902fTimo Sirainen
306b3f41b05da642d87e7ca7a1496efce9f5902fTimo Sirainendef := TARGET= def
306b3f41b05da642d87e7ca7a1496efce9f5902fTimo Sirainenall := TARGET= all
56b134799a457fd55830355f4c8d746d6bb5206fTimo Siraineninstall := TARGET= install
56b134799a457fd55830355f4c8d746d6bb5206fTimo Siraineninstall_h := TARGET= install_h
56b134799a457fd55830355f4c8d746d6bb5206fTimo Sirainenclean := TARGET= clean
a69dfb7f6f1a804a0c91fd5e506b78dd499cccd4Timo Sirainenclobber := TARGET= clobber
2898ad0028a9b0c30df96dd6b68930fd4dc57527Timo Sirainenlint := TARGET= lint
2898ad0028a9b0c30df96dd6b68930fd4dc57527Timo Sirainenlintlib := TARGET= lintlib
a0cd302bcb827678f9c9c2ca1d0a3f0d3c0b3563Timo Sirainenmodlintlib := TARGET= modlintlib
a0cd302bcb827678f9c9c2ca1d0a3f0d3c0b3563Timo Sirainenmodlist := TARGET= modlist
a0cd302bcb827678f9c9c2ca1d0a3f0d3c0b3563Timo Sirainenmodlist := NO_STATE= -K $$MODSTATE$$$$
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainenclean.lint := TARGET= clean.lint
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainencheck := TARGET= check
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen# Default build targets.
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen#
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen.KEEP_STATE:
7b85f7d35b2192bdff734d7d2891630bc30b2518Timo Sirainen
9e9f0cf3cc3ce546e8a433990c92dd9be6665df6Timo Sirainendef all clean clobber clean.lint: genassym unix .WAIT \
7b85f7d35b2192bdff734d7d2891630bc30b2518Timo Sirainen $(STARCAT_CPU_KMODS) $(STARCAT_KMODS)
7b85f7d35b2192bdff734d7d2891630bc30b2518Timo Sirainen
7b85f7d35b2192bdff734d7d2891630bc30b2518Timo Sirainenmodlist: unix \
9e9f0cf3cc3ce546e8a433990c92dd9be6665df6Timo Sirainen $(STARCAT_CPU_KMODS) $(STARCAT_KMODS)
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainen
lintlib: unix
modlintlib: $(STARCAT_KMODS)
IMPLEMENTED_PLATFORM = SUNW,Sun-Fire-15000
install: $(ROOT_STARCAT_DIR) $(USR_STARCAT_DIR) \
$(USR_STARCAT_INC_DIR) \
$(USR_STARCAT_SBIN_DIR) \
$(USR_STARCAT_LIB_DIR) \
$(STARCAT_CRYPTO_LINKS) \
genassym unix .WAIT $(STARCAT_CPU_KMODS) \
$(STARCAT_KMODS)
genassym unix $(STARCAT_KMODS) $(STARCAT_CPU_KMODS): FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
$(STARCAT_CRYPTO_LINKS): $(ROOT_STARCAT_CRYPTO_DIR_64)
-$(RM) $(ROOT_STARCAT_CRYPTO_DIR_64)/$@;
$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_STARCAT_CRYPTO_DIR_64)/$@
install_h check: FRC
@cd sys; pwd; $(MAKE) $(TARGET)
lint: modlintlib
#
# The 'lint.platmod' target lints the starcat platform module against
# the sun4u kernel. This ends up doing all the kernel cross-checks,
# so it takes a couple of minutes.
# Due to the low ROI, it's not run by default, but it's a good
# idea to run this if you change os/starcat.c.
#
LINT_LIBS = $(LINT_LIB) \
-L$(STARCAT_LINT_LIB_DIR) \
-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
$(CLOSED_LINT_KMODS:%=-l%) \
-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
lint.platmod: modlintlib
@-$(ECHO) "\nStarcat Platform-dependent module: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/starcat/Makefile.targ