103831d35Sstevel# 203831d35Sstevel# CDDL HEADER START 303831d35Sstevel# 403831d35Sstevel# The contents of this file are subject to the terms of the 503831d35Sstevel# Common Development and Distribution License (the "License"). 603831d35Sstevel# You may not use this file except in compliance with the License. 703831d35Sstevel# 803831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 903831d35Sstevel# or http://www.opensolaris.org/os/licensing. 1003831d35Sstevel# See the License for the specific language governing permissions 1103831d35Sstevel# and limitations under the License. 1203831d35Sstevel# 1303831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each 1403831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1503831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the 1603831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying 1703831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner] 1803831d35Sstevel# 1903831d35Sstevel# CDDL HEADER END 2003831d35Sstevel# 2103831d35Sstevel# 22*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2303831d35Sstevel# Use is subject to license terms. 2403831d35Sstevel# 2503831d35Sstevel# uts/sun4u/makaha/Makefile 2603831d35Sstevel# 2703831d35Sstevel# This makefile drives the production of all Makaha system 2803831d35Sstevel# dependent modules for the sun4u architecture. 2903831d35Sstevel# 3003831d35Sstevel 3103831d35Sstevel# 3203831d35Sstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 3303831d35Sstevel# 3403831d35SstevelUTSBASE = ../.. 3503831d35Sstevel 3603831d35Sstevel# 3703831d35Sstevel# Include common rules. 3803831d35Sstevel# 3903831d35Sstevelinclude $(UTSBASE)/sun4u/makaha/Makefile.makaha 4003831d35Sstevel 4103831d35Ssteveldef := TARGET= def 4203831d35Sstevelall := TARGET= all 4303831d35Sstevelinstall := TARGET= install 4403831d35Sstevelinstall_h := TARGET= install_h 4503831d35Sstevelclean := TARGET= clean 4603831d35Sstevelclobber := TARGET= clobber 4703831d35Sstevellint := TARGET= lint 4803831d35Sstevellintlib := TARGET= lintlib 4903831d35Sstevelmodlintlib := TARGET= modlintlib 5003831d35Sstevelmodlist := TARGET= modlist 5103831d35Sstevelmodlist := NO_STATE= -K $$MODSTATE$$$$ 5203831d35Sstevelclean.lint := TARGET= clean.lint 5303831d35Sstevelcheck := TARGET= check 5403831d35Sstevel 5503831d35Sstevel# 5603831d35Sstevel# Default build targets. 5703831d35Sstevel# 5803831d35Sstevel.KEEP_STATE: 5903831d35Sstevel 6003831d35Ssteveldef all clean.lint clean clobber modlist: $(MAKAHA_KMODS) 6103831d35Sstevel 6203831d35Sstevelmodlintlib: $(MAKAHA_KMODS) 6303831d35Sstevel 6403831d35Sstevelinstall: $(ROOT_MAKAHA_DIR) $(USR_MAKAHA_DIR) \ 6503831d35Sstevel $(USR_MAKAHA_INC_DIR) \ 6603831d35Sstevel $(USR_MAKAHA_SBIN_DIR) \ 6703831d35Sstevel $(USR_MAKAHA_LIB_DIR) \ 6803831d35Sstevel $(ROOT_SPUTNIK_DIR) $(USR_SPUTNIK_DIR) \ 6903831d35Sstevel $(USR_SPUTNIK_INC_DIR) \ 7003831d35Sstevel $(USR_SPUTNIK_SBIN_DIR) \ 7103831d35Sstevel $(USR_SPUTNIK_LIB_DIR) \ 7203831d35Sstevel .WAIT $(MAKAHA_KMODS) \ 7303831d35Sstevel scsb acebus pcf8574 \ 7403831d35Sstevel acebus.conf se.conf scsb.conf \ 7503831d35Sstevel ttymux_dacf ttymux.conf 7603831d35Sstevel 7703831d35Sstevelacebus.conf: $(ROOT_MAKAHA_DRV_DIR) 7803831d35Sstevel -@$(RM) $(ROOT_MAKAHA_DRV_DIR)/$@ 7903831d35Sstevel $(CP) $(UTSBASE)/sun4u/makaha/io/$@ \ 8003831d35Sstevel $(ROOT_MAKAHA_DRV_DIR)/$@ 8103831d35Sstevel $(CHMOD) $(CFILEMODE) $(ROOT_MAKAHA_DRV_DIR)/$@ 8203831d35Sstevel 8303831d35Sstevelpcf8574: $(ROOT_MAKAHA_DRV_DIR_64) 8403831d35Sstevel -@$(RM) $(ROOT_MAKAHA_DRV_DIR_64)/$@ 8503831d35Sstevel $(SYMLINK) $(ROOT_MAKAHA_DRV_LINK_64)/$@ \ 8603831d35Sstevel $(ROOT_MAKAHA_DRV_DIR_64)/$@ 8703831d35Sstevel 8803831d35Sstevelacebus: $(ROOT_MAKAHA_DRV_DIR_64) 8903831d35Sstevel -@$(RM) $(ROOT_MAKAHA_DRV_DIR_64)/$@ 9003831d35Sstevel $(SYMLINK) $(ROOT_MAKAHA_DRV_LINK_64)/$@ \ 9103831d35Sstevel $(ROOT_MAKAHA_DRV_DIR_64)/$@ 9203831d35Sstevel 9303831d35Sstevelscsb: $(ROOT_MAKAHA_DRV_DIR_64) 9403831d35Sstevel -@$(RM) $(ROOT_MAKAHA_DRV_DIR_64)/$@ 9503831d35Sstevel $(SYMLINK) $(ROOT_MAKAHA_DRV_LINK_64)/$@ \ 9603831d35Sstevel $(ROOT_MAKAHA_DRV_DIR_64)/$@ 9703831d35Sstevel 9803831d35Sstevelscsb.conf: $(ROOT_MAKAHA_DRV_DIR) 9903831d35Sstevel -@$(RM) $(ROOT_MAKAHA_DRV_DIR)/$@ 10003831d35Sstevel $(SYMLINK) $(ROOT_MAKAHA_DRV_LINK)/$@ \ 10103831d35Sstevel $(ROOT_MAKAHA_DRV_DIR)/$@ 10203831d35Sstevel 10303831d35Sstevelse.conf: $(ROOT_MAKAHA_DRV_DIR) 10403831d35Sstevel -@$(RM) $(ROOT_MAKAHA_DRV_DIR)/$@ 10503831d35Sstevel $(SYMLINK) $(ROOT_MAKAHA_DRV_LINK)/$@ \ 10603831d35Sstevel $(ROOT_MAKAHA_DRV_DIR)/$@ 10703831d35Sstevel 10803831d35Sstevelttymux_dacf: $(ROOT_MAKAHA_DACF_DIR_64) \ 10903831d35Sstevel $(ROOT_SPUTNIK_DACF_DIR_64) 11003831d35Sstevel -@$(RM) $(ROOT_MAKAHA_DACF_DIR_64)/$@ 11103831d35Sstevel -@$(RM) $(ROOT_SPUTNIK_DACF_DIR_64)/$@ 11203831d35Sstevel $(SYMLINK) $(ROOT_MAKAHA_DACF_LINK_64)/$@ \ 11303831d35Sstevel $(ROOT_MAKAHA_DACF_DIR_64)/$@ 11403831d35Sstevel $(SYMLINK) $(ROOT_SPUTNIK_DACF_LINK_64)/$@ \ 11503831d35Sstevel $(ROOT_SPUTNIK_DACF_DIR_64)/$@ 11603831d35Sstevel 11703831d35Sstevel 11803831d35Sstevelttymux.conf: $(ROOT_MAKAHA_DRV_DIR) \ 11903831d35Sstevel $(ROOT_SPUTNIK_DRV_DIR) 12003831d35Sstevel -@$(RM) $(ROOT_MAKAHA_DRV_DIR)/$@ 12103831d35Sstevel -@$(RM) $(ROOT_SPUTNIK_DRV_DIR)/$@ 12203831d35Sstevel $(SYMLINK) $(ROOT_MAKAHA_DRV_LINK)/$@ \ 12303831d35Sstevel $(ROOT_MAKAHA_DRV_DIR)/$@ 12403831d35Sstevel $(SYMLINK) $(ROOT_MAKAHA_DRV_LINK)/$@ \ 12503831d35Sstevel $(ROOT_SPUTNIK_DRV_DIR)/$@ 12603831d35Sstevel 12703831d35Sstevelinstall_h check: 12803831d35Sstevel 12903831d35Sstevellint: modlintlib 13003831d35Sstevel 13103831d35Sstevel# 13203831d35Sstevel# The 'lint.platmod' target lints the makaha platform module against 13303831d35Sstevel# the sun4u kernel. This ends up doing all the kernel cross-checks, 13403831d35Sstevel# so it takes a couple of minutes. 13503831d35Sstevel# Due to the low ROI, it's not run by default, but it's a good 13603831d35Sstevel# idea to run this if you change os/makaha.c. 13703831d35Sstevel# 13803831d35SstevelLINT_LIBS = $(LINT_LIB) \ 13903831d35Sstevel -L$(MAKAHA_LINT_LIB_DIR) \ 14003831d35Sstevel -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ 14103831d35Sstevel $(CLOSED_LINT_KMODS:%=-l%) \ 14203831d35Sstevel -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) 14303831d35Sstevel 14403831d35Sstevellint.platmod: modlintlib 14503831d35Sstevel @-$(ECHO) "\nMakaha Platform-dependent module: global crosschecks:" 14603831d35Sstevel @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 14703831d35Sstevel 14803831d35Sstevel$(MAKAHA_KMODS): FRC 14903831d35Sstevel @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 15003831d35Sstevel 15103831d35Sstevel# 15203831d35Sstevel# Include common targets. 15303831d35Sstevel# 15403831d35Sstevelinclude $(UTSBASE)/sun4u/makaha/Makefile.targ 155