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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 23 # Copyright 2018 Gary mills 24 # 25 # This makefile drives the production of the sun4u snowbird platform 26 # module. 27 # 28 # sun4u snowbird implementation architecture dependent 29 # 30 31 # 32 # Path to the base of the uts directory tree (usually /usr/src/uts). 33 # 34 UTSBASE = ../.. 35 36 include $(UTSBASE)/sun4u/snowbird/Makefile.snowbird 37 38 # 39 # 40 # 41 42 def := TARGET= def 43 all := TARGET= all 44 install := TARGET= install 45 install_h := TARGET= install_h 46 clean := TARGET= clean 47 clobber := TARGET= clobber 48 lint := TARGET= lint 49 lintlib := TARGET= lintlib 50 modlintlib := TARGET= modlintlib 51 modlist := TARGET= modlist 52 modlist := NO_STATE= -K $$MODSTATE$$$$ 53 clean.lint := TARGET= clean.lint 54 check := TARGET= check 55 56 IMPLEMENTED_PLATFORM = SUNW,Netra-CP2300 57 58 # 59 # Default build targets. 60 # 61 .KEEP_STATE: 62 63 .PARALLEL: $(SNOWBIRD_KMODS) 64 65 def all clean clobber clean.lint modlist: $(SNOWBIRD_KMODS) 66 67 install: $(ROOT_SNOWBIRD_DIR) $(USR_SNOWBIRD_DIR) \ 68 $(USR_SNOWBIRD_INC_DIR) \ 69 $(USR_SNOWBIRD_SBIN_DIR) \ 70 $(USR_SNOWBIRD_SBIN_PRTDIAG) \ 71 $(USR_SNOWBIRD_SBIN_FRUADM) \ 72 $(USR_SNOWBIRD_LIB_DIR) \ 73 .WAIT $(SNOWBIRD_KMODS) \ 74 ttymux_dacf ttymux.conf 75 76 modlintlib: $(SNOWBIRD_KMODS) 77 78 $(SNOWBIRD_KMODS): FRC 79 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 80 81 ttymux_dacf: $(ROOT_SNOWBIRD_DACF_DIR_64) 82 -@$(RM) $(ROOT_SNOWBIRD_DACF_DIR_64)/$@ 83 $(SYMLINK) $(ROOT_SNOWBIRD_DACF_LINK_64)/$@ \ 84 $(ROOT_SNOWBIRD_DACF_DIR_64)/$@ 85 86 87 ttymux.conf: $(ROOT_SNOWBIRD_DRV_DIR_32) 88 -@$(RM) $(ROOT_SNOWBIRD_DRV_DIR_32)/$@ 89 $(SYMLINK) $(ROOT_SNOWBIRD_DRV_LINK_32)/$@ \ 90 $(ROOT_SNOWBIRD_DRV_DIR_32)/$@ 91 92 install_h check: FRC 93 @cd sys; pwd; $(MAKE) $(TARGET) 94 95 lint: modlintlib 96 97 LINT_LIBS = $(LINT_LIB) \ 98 -L$(SNOWBIRD_LINT_LIB_DIR) \ 99 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ 100 $(CLOSED_LINT_KMODS:%=-l%) \ 101 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) 102 103 lint.platmod: modlintlib 104 @-$(ECHO) "\nSnowbird Platform-dependent module: global crosschecks:" 105 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 106 107 # 108 # Include common targets. 109 # 110 include $(UTSBASE)/sun4u/snowbird/Makefile.targ