0
|
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 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 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 |
#
|
|
23 |
#ident "@(#)Makefile.uts 1.14 97/10/08 SMI"
|
|
24 |
#
|
|
25 |
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
|
|
26 |
# Use is subject to license terms.
|
|
27 |
#
|
|
28 |
# jos/uts/Makefile.uts
|
|
29 |
#
|
|
30 |
#
|
|
31 |
# This Makefiles contains the common targets and definitions for
|
|
32 |
# all kernels. It is to be included in the Makefiles for specific
|
|
33 |
# implementation architectures and processor architecture dependent
|
|
34 |
# modules: i.e.: all driving kernel Makefiles.
|
|
35 |
#
|
|
36 |
# Include global definitions:
|
|
37 |
#
|
|
38 |
include $(SRC)/Makefile.master
|
|
39 |
# START supplement lines for Makefile.master
|
|
40 |
#
|
|
41 |
# Define compilation macros.
|
|
42 |
#
|
|
43 |
COMPILE.c= $(CC) $(CFLAGS) $(CPPFLAGS) -c
|
|
44 |
COMPILE64.c= $(CC) $(CFLAGS64) $(CPPFLAGS) -c
|
|
45 |
LINT.c= $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(ALWAYS_LINT_DEFS)
|
|
46 |
LINT64.c= $(LINT) $(LINTFLAGS64) $(CPPFLAGS) $(ALWAYS_LINT_DEFS)
|
|
47 |
INS.file= $(RM) $@; $(INS) $(@D) $<
|
|
48 |
INS.dir= $(INSDIR) $@
|
|
49 |
# END supplement lines for Makefile.master
|
|
50 |
|
|
51 |
#
|
|
52 |
#include $(SRC)/jos/Makefile.master.os
|
|
53 |
|
|
54 |
#
|
|
55 |
# Build rules for linting the kernel.
|
|
56 |
#
|
|
57 |
LHEAD = ( $(ECHO) "\n$@";
|
|
58 |
|
|
59 |
LGREP = grep -v "pointer cast may result in improper alignment"
|
|
60 |
|
|
61 |
LGREP.2 = grep -v '_init ' | \
|
|
62 |
grep -v '_fini ' | \
|
|
63 |
grep -v '_info ' | \
|
|
64 |
grep -v '_depends_on '
|
|
65 |
|
|
66 |
LTAIL = ) 2>&1 | $(LGREP)
|
|
67 |
|
|
68 |
LINT.c = $(LINT) -cu $(LINTFLAGS) $(LINT_DEFS) $(CPPFLAGS)
|
|
69 |
LINT64.c = $(LINT) -cu $(LINTFLAGS64) $(LINT_DEFS) $(CPPFLAGS)
|
|
70 |
|
|
71 |
LINT.s = $(LINT.c)
|
|
72 |
LINT64.s = $(LINT64.c)
|
|
73 |
|
|
74 |
#
|
|
75 |
# Build the compile/assemble lines:
|
|
76 |
#
|
|
77 |
ALWAYS_DEFS = -D_KERNEL -D_SYSCALL32
|
|
78 |
AS_DEFS = -D_ASM -D__STDC__=0
|
|
79 |
#
|
|
80 |
# CPPFLAGS is deliberatly set with a "=" and not a "+=". For the kernel
|
|
81 |
# the header include path should not look for header files outside of
|
|
82 |
# the kernel code. This "=" removes the search path built in
|
|
83 |
# Makefile.master inside CPPFLAGS.
|
|
84 |
#
|
|
85 |
CPPFLAGS += $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(INCLUDE_PATH)
|
|
86 |
ASFLAGS += -P
|
|
87 |
AS_CPPFLAGS += $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(AS_DEFS) \
|
|
88 |
-I. $(AS_INC_PATH)
|
|
89 |
LINTFLAGS = $(CCMODE) -nsxmuF -I$(SRC)/src/lib/iconv/ja
|
|
90 |
LINTFLAGS64 = $(CCMODE) -nsxmuF -I$(SRC)/src/lib/iconv/ja
|
|
91 |
CFLAGS += $(INLINES)
|
|
92 |
# for UCS-2 <-> EUC/JIS tables
|
|
93 |
CFLAGS += -I$(SRC)/src/lib/iconv/ja
|
|
94 |
CFLAGS64 += -I$(SRC)/src/lib/iconv/ja
|
|
95 |
|
|
96 |
#
|
|
97 |
# Default cleanup definition
|
|
98 |
#
|
|
99 |
CLEANLINTFILES = $(MOD_LINT_LIB)
|
|
100 |
|
|
101 |
#
|
|
102 |
# Installation constants:
|
|
103 |
#
|
|
104 |
FILEMODE = 755
|
|
105 |
DIRMODE = 755
|
|
106 |
OWNER = root
|
|
107 |
GROUP = sys
|
|
108 |
|
|
109 |
#
|
|
110 |
# Installation directories
|
|
111 |
#
|
|
112 |
ROOT_MOD_DIR = $(FILEROOT)/kernel
|
|
113 |
ROOT_STRMOD_DIR = $(ROOT_MOD_DIR)/strmod
|
|
114 |
|
|
115 |
USR_MOD_DIR = $(FILEROOT)/usr/kernel
|
|
116 |
USR_STRMOD_DIR = $(USR_MOD_DIR)/strmod
|
|
117 |
|
|
118 |
#
|
|
119 |
# Collection of all relevant, delivered kernel modules.
|
|
120 |
#
|
|
121 |
KMODS = $(JFP_KMODS)
|
|
122 |
|
|
123 |
LINT_KMODS = $(JFP_KMODS)
|