Print this page
6648 illumos build should be explicit about C standards
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86xpv/genassym/Makefile
+++ new/usr/src/uts/i86xpv/genassym/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# ident "%Z%%M% %I% %E% SMI"
27 26 #
28 27 # This makefile drives the production of assym.h through
29 28 # compile time intialized data.
30 29 #
31 30 # i86xpv implementation architecture dependent
32 31 #
33 32
34 33 #
35 34 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 35 #
37 36 UTSBASE = ../..
38 37
39 38 ASSYM_H = $(DSF_DIR)/$(OBJS_DIR)/assym.h
40 39 KDI_ASSYM_H = $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
41 40 GENASSYM = $(DSF_DIR)/$(OBJS_DIR)/genassym
42 41
43 42 #
44 43 # Include common rules.
45 44 #
46 45 include $(UTSBASE)/i86xpv/Makefile.i86xpv
47 46
48 47 #
49 48 # Define targets
50 49 #
51 50 ALL_TARGET = $(ASSYM_H) $(KDI_ASSYM_H)
52 51
53 52 #
54 53 # This is DSF_DIR. Use a short path.
55 54 #
56 55 DSF_DIR = .
57 56
58 57
59 58 #
60 59 # Overrides
61 60 #
62 61 CLEANFILES = $(GENASSYM) Nothing_to_remove
63 62 CLOBBERFILES = $(ASSYM_H) $(KDI_ASSYM_H) $(CLEANFILES) Nothing_to_remove
64 63
65 64 #
66 65 # Default build targets.
67 66 #
68 67 .KEEP_STATE:
69 68
70 69 def: $(DEF_DEPS)
71 70
72 71 all: $(ALL_DEPS)
73 72
74 73 clean: $(CLEAN_DEPS)
75 74
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
76 75 clobber: $(CLOBBER_DEPS)
77 76
78 77 clean.lint:
79 78
80 79 install: def
81 80
82 81 #
83 82 # Create assym.h
84 83 #
85 84 $(GENASSYM): $(GENASSYM_SRC)
86 - $(NATIVECC) $(ALWAYS_DEFS) $(GENASSYM_DEFS) $(NATIVE_INC_PATH) \
87 - -o $@ $(GENASSYM_SRC)
85 + $(NATIVECC) $(NATIVE_CFLAGS) $(ALWAYS_DEFS) $(GENASSYM_DEFS) \
86 + $(NATIVE_INC_PATH) -o $@ $(GENASSYM_SRC)
88 87
89 88 $(ASSYM_H): $(OFFSETS_SRC) $(PLATFORM_OFFSETS_SRC) $(GENASSYM)
90 89 $(OFFSETS_CREATE) <$(OFFSETS_SRC) >$@
91 90 $(OFFSETS_CREATE) <$(PLATFORM_OFFSETS_SRC) >>$@
92 91 $(GENASSYM) >>$@
93 92
94 93 $(KDI_ASSYM_H): $(KDI_OFFSETS_SRC) $(GENASSYM)
95 94 $(OFFSETS_CREATE) <$(KDI_OFFSETS_SRC) >$@
96 95 $(GENASSYM) >>$@
97 96
98 97 #
99 98 # Include common targets.
100 99 #
101 100 include $(UTSBASE)/i86xpv/Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX