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 all MonteCarlo system 26 # dependent modules for the sun4u architecture. 27 # 28 29 # 30 # Path to the base of the uts directory tree (usually /usr/src/uts). 31 # 32 UTSBASE = ../.. 33 34 # 35 # Include common rules. 36 # 37 include $(UTSBASE)/sun4u/montecarlo/Makefile.montecarlo 38 39 def := TARGET= def 40 all := TARGET= all 41 install := TARGET= install 42 install_h := TARGET= install_h 43 clean := TARGET= clean 44 clobber := TARGET= clobber 45 lint := TARGET= lint 46 #lintlib := TARGET= lintlib 47 modlintlib := TARGET= modlintlib 48 modlist := TARGET= modlist 49 modlist := NO_STATE= -K $$MODSTATE$$$$ 50 clean.lint := TARGET= clean.lint 51 check := TARGET= check 52 53 # 54 # Default build targets. 55 # 56 .KEEP_STATE: 57 58 def all clean.lint clean clobber modlist: $(MONTECARLO_KMODS) 59 60 modlintlib: $(MONTECARLO_KMODS) 61 62 install: $(ROOT_MONTECARLO_DIR) \ 63 $(USR_MONTECARLO_DIR) \ 64 $(USR_MONTECARLO_INC_DIR) \ 65 $(USR_MONTECARLO_SBIN_DIR) \ 66 $(USR_MONTECARLO_LIB_DIR) \ 67 .WAIT $(MONTECARLO_KMODS) \ 68 se.conf ttymux.conf 69 70 se.conf: $(ROOT_MONTECARLO_DRV_DIR_32) 71 -@$(RM) $(ROOT_MONTECARLO_DRV_DIR_32)/$@ 72 $(CP) $(UTSBASE)/sun4u/montecarlo/io/$@ \ 73 $(ROOT_MONTECARLO_DRV_DIR_32)/$@ 74 $(CHMOD) $(CFILEMODE) $(ROOT_MONTECARLO_DRV_DIR_32)/$@ 75 76 ttymux.conf: $(ROOT_MONTECARLO_DRV_DIR_32) 77 -@$(RM) $(ROOT_MONTECARLO_DRV_DIR_32)/$@ 78 $(CP) $(UTSBASE)/sun4u/montecarlo/io/$@ \ 79 $(ROOT_MONTECARLO_DRV_DIR_32)/$@ 80 $(CHMOD) $(CFILEMODE) $(ROOT_MONTECARLO_DRV_DIR_32)/$@ 81 82 install_h check: FRC 83 @cd sys; pwd; $(MAKE) $(TARGET) 84 85 lint: modlintlib 86 87 # 88 # The 'lint.platmod' target lints the montecarlo platform module against 89 # the sun4u kernel. This ends up doing all the kernel cross-checks, 90 # so it takes a couple of minutes. 91 # Due to the low ROI, it's not run by default, but it's a good 92 # idea to run this if you change os/montecarlo.c. 93 # 94 LINT_LIBS = $(LINT_LIB) \ 95 -L$(MONTECARLO_LINT_LIB_DIR) \ 96 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ 97 $(CLOSED_LINT_KMODS:%=-l%) \ 98 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) 99 100 lint.platmod: modlintlib 101 @-$(ECHO) "\nMonteCarlo Platform-dependent module: global crosschecks:" 102 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 103 104 $(MONTECARLO_KMODS): FRC 105 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 106 107 # 108 # Include common targets. 109 # 110 include $(UTSBASE)/sun4u/montecarlo/Makefile.targ