src/uts/Makefile.uts
author simford
Sun, 01 Jul 2007 00:43:24 +0800
changeset 0 542988ea726d
permissions -rw-r--r--
initial version of Nevada G11N repository
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     1
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     2
# CDDL HEADER START
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     3
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     7
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     8
# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    10
# See the License for the specific language governing permissions
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    11
# and limitations under the License.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    12
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    14
# file and include the License file at src/OPENSOLARIS.LICENSE.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    18
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    19
# CDDL HEADER END
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    20
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    21
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    22
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    23
#ident  "@(#)Makefile.uts 1.14     97/10/08 SMI"
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    24
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    25
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    26
# Use is subject to license terms.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    27
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    28
# jos/uts/Makefile.uts
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    29
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    30
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    31
#	This Makefiles contains the common targets and definitions for
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    32
#	all kernels. It is to be included in the Makefiles for specific
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    33
#	implementation architectures and processor architecture dependent
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    34
#	modules: i.e.: all driving kernel Makefiles.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    35
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    36
#	Include global definitions:
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    37
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    38
include		$(SRC)/Makefile.master
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    39
# START supplement lines for Makefile.master
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    40
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    41
# Define compilation macros.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    42
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    43
COMPILE.c=	$(CC) $(CFLAGS) $(CPPFLAGS) -c
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    44
COMPILE64.c=	$(CC) $(CFLAGS64) $(CPPFLAGS) -c
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    45
LINT.c=		$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(ALWAYS_LINT_DEFS)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    46
LINT64.c=	$(LINT) $(LINTFLAGS64) $(CPPFLAGS) $(ALWAYS_LINT_DEFS)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    47
INS.file=	$(RM) $@; $(INS) $(@D) $<
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    48
INS.dir=	$(INSDIR) $@
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    49
# END supplement lines for Makefile.master
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    50
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    51
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    52
#include		$(SRC)/jos/Makefile.master.os
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    53
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    54
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    55
#	Build rules for linting the kernel.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    56
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    57
LHEAD =	( $(ECHO) "\n$@";
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    58
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    59
LGREP =	grep -v "pointer cast may result in improper alignment" 
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    60
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    61
LGREP.2 =	grep -v '_init ' | \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    62
		grep -v '_fini ' | \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    63
		grep -v '_info ' | \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    64
		grep -v '_depends_on '
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    65
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    66
LTAIL =	) 2>&1 | $(LGREP)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    67
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    68
LINT.c =	$(LINT) -cu $(LINTFLAGS) $(LINT_DEFS) $(CPPFLAGS)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    69
LINT64.c =	$(LINT) -cu $(LINTFLAGS64) $(LINT_DEFS) $(CPPFLAGS)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    70
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    71
LINT.s =	$(LINT.c)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    72
LINT64.s =	$(LINT64.c)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    73
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    74
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    75
#	Build the compile/assemble lines:
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    76
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    77
ALWAYS_DEFS	 = -D_KERNEL -D_SYSCALL32
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    78
AS_DEFS		 = -D_ASM -D__STDC__=0
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    79
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    80
#   CPPFLAGS is deliberatly set with a "=" and not a "+=".  For the kernel
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    81
#   the header include path should not look for header files outside of
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    82
#   the kernel code.  This "=" removes the search path built in
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    83
#   Makefile.master inside CPPFLAGS.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    84
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    85
CPPFLAGS	+= $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(INCLUDE_PATH)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    86
ASFLAGS		+= -P
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    87
AS_CPPFLAGS	+= $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(AS_DEFS) \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    88
		   -I. $(AS_INC_PATH)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    89
LINTFLAGS	 = $(CCMODE) -nsxmuF -I$(SRC)/src/lib/iconv/ja
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    90
LINTFLAGS64	 = $(CCMODE) -nsxmuF -I$(SRC)/src/lib/iconv/ja
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    91
CFLAGS		+= $(INLINES)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    92
# for UCS-2 <-> EUC/JIS tables
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    93
CFLAGS		+= -I$(SRC)/src/lib/iconv/ja
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    94
CFLAGS64	+= -I$(SRC)/src/lib/iconv/ja
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    95
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    96
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    97
#	Default cleanup definition
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    98
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    99
CLEANLINTFILES	= $(MOD_LINT_LIB)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   100
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   101
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   102
#	Installation constants:
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   103
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   104
FILEMODE	 = 755
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   105
DIRMODE		 = 755
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   106
OWNER		 = root
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   107
GROUP		 = sys
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   108
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   109
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   110
#	Installation directories
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   111
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   112
ROOT_MOD_DIR	 = $(FILEROOT)/kernel
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   113
ROOT_STRMOD_DIR	 = $(ROOT_MOD_DIR)/strmod
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   114
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   115
USR_MOD_DIR	 = $(FILEROOT)/usr/kernel
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   116
USR_STRMOD_DIR	 = $(USR_MOD_DIR)/strmod
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   117
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   118
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   119
#	Collection of all relevant, delivered kernel modules.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   120
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   121
KMODS	= $(JFP_KMODS)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   122
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
   123
LINT_KMODS = $(JFP_KMODS)