4266 remove Makefile*.shared nonsense in uts
[illumos-gate.git] / usr / src / uts / sun4u / mpxu / Makefile.mpxu
blobd57afbc9888a1584c7832c37bbb4cab5b666145d
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
26 #       Global definitions for sun4u implementation specific modules.
30 #       Define the name of this implementation.
34 #       Define directories.
36 ROOT_MPXU_DIR   = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V240
37 ROOT_MPXU_MOD_DIR       = $(ROOT_MPXU_DIR)/kernel
39 ROOT_MPXU_DRV_DIR_32    = $(ROOT_MPXU_MOD_DIR)/drv
40 ROOT_MPXU_DRV_DIR_64    = $(ROOT_MPXU_MOD_DIR)/drv/$(SUBDIR64)
41 ROOT_MPXU_DRV_DIR       = $(ROOT_MPXU_DRV_DIR_$(CLASS))
43 ROOT_MPXU_MISC_DIR_32   = $(ROOT_MPXU_MOD_DIR)/misc
44 ROOT_MPXU_MISC_DIR_64   = $(ROOT_MPXU_MOD_DIR)/misc/$(SUBDIR64)
45 ROOT_MPXU_MISC_DIR      = $(ROOT_MPXU_MISC_DIR_$(CLASS))
47 ROOT_MPXU_CRYPTO_DIR_32 = $(ROOT_MPXU_MOD_DIR)/crypto
48 ROOT_MPXU_CRYPTO_DIR_64 = $(ROOT_MPXU_MOD_DIR)/crypto/$(SUBDIR64)
49 ROOT_MPXU_CRYPTO_DIR    = $(ROOT_MPXU_CRYPTO_DIR_$(CLASS))
51 USR_MPXU_DIR            = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V240
52 USR_MPXU_INC_DIR        = $(USR_MPXU_DIR)/include
53 USR_MPXU_ISYS_DIR       = $(USR_MPXU_INC_DIR)/sys
54 USR_MPXU_SBIN_DIR       = $(USR_MPXU_DIR)/sbin
55 USR_MPXU_SBIN_PRTDIAG   = $(USR_MPXU_SBIN_DIR)/prtdiag
56 USR_MPXU_SBIN_FRUADM    = $(USR_MPXU_SBIN_DIR)/fruadm
57 USR_MPXU_LIB_DIR        = $(USR_MPXU_DIR)/lib
59 MPXU_LINT_LIB_DIR       = $(UTSBASE)/$(PLATFORM)/mpxu/lint-libs/$(OBJS_DIR)
62 # Links to UltraSparc III crypto modules
64 MPXU_CRYPTO_LINKS       = aes
67 #       Include the makefiles which define build rule templates, the
68 #       collection of files per module, and a few specific flags. Note
69 #       that order is significant, just as with an include path. The
70 #       first build rule template which matches the files name will be
71 #       used. By including these in order from most machine dependent
72 #       to most machine independent, we allow a machine dependent file
73 #       to be used in preference over a machine independent version
74 #       (Such as a machine specific optimization, which preserves the
75 #       interfaces.)
78 include $(UTSBASE)/sun4u/mpxu/Makefile.files
80 #       Include common rules.
83 include $(UTSBASE)/sun4u/Makefile.sun4u
86 #       Define modules (must come after Makefile.sun4u).
88 MPXU_KMODS      = tsalarm
90 MODSTUBS_DIR    = $(UNIX_DIR)
91 LINTS_DIR       = $(OBJS_DIR)
92 LINT_LIB_DIR    = $(UTSBASE)/$(PLATFORM)/mpxu/lint-libs/$(OBJS_DIR)
95 #       Define the actual specific platforms
97 MACHINE_DEFS    = -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP
100 #       Define platform specific values
102 #MACHINE_DEFS   += -DNCPU=554
103 #MACHINE_DEFS   += -DMAX_UPA=1024
104 #MACHINE_DEFS   += -DIGN_SIZE=10
105 # Max IOSRAM TOC major version number supported
106 #MACHINE_DEFS   += -DMAX_IOSRAM_TOC_VER=0x1
108 #       Define for inline pre-processing since
109 #       cpp not smart about v9 yet.
111 CPP_DEFS_32   =
112 CPP_DEFS_64   = -D__sparcv9
113 CPP_DEFS      = $(CPP_DEFS_$(CLASS))
116 # For now, disable these lint checks; maintainers should endeavor
117 # to investigate and remove these for maximum lint coverage.
118 # Please do not carry these forward to new Makefiles.
120 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
121 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
122 LINTTAGS        += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
123 LINTTAGS        += -erroff=E_STATIC_UNUSED
124 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
125 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV