Print this page
crt: Need a position-independent CRT for PIE
- Implement the greatest possible part of the crt1 in C
- Implement SPARC versions of the ASM sections of crt1
- Build crt1 position-independently, minor ASM updates to be position
independent
- Implement crt1 with the hook expected by modern GCC to support
profiling, make gcrt1 a symlink for source compatibility (older GCC
initializes profiling at firsnt use of _mcount if necessary, so
doesn't need the gcrt)
- Split the CRT out of developer/library/lint into a separate c-runtime package
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/awk_xpg4/Makefile
+++ new/usr/src/cmd/awk_xpg4/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, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # cmd/awk_xpg4/Makefile
27 27 #
28 28
29 29 # NOTE: this is nawk in usr/src/cmd/awk_xpg4 to reside as /usr/xpg4/bin/awk
30 30
31 31 PROG= awk
32 32 XPG4PROG= awk
33 33
34 34 OBJ1= awk0.o awk1.o awk2.o awk3.o awk4.o
35 35 OBJ2= awk.o
36 36 XPG4AWKOBJ= values-xpg4.o
37 37 OBJS= $(OBJ2) $(OBJ1) $(XPG4AWKOBJ)
38 38 SRCS= $(OBJ1:%.o=%.c)
39 39
40 40 include ../Makefile.cmd
41 41
42 42 CPPFLAGS += -D_FILE_OFFSET_BITS=64
43 43 CFLAGS += $(CCVERBOSE)
44 44 CERRWARN += -_gcc=-Wno-unused-label
45 45 CERRWARN += -_gcc=-Wno-parentheses
46 46 CERRWARN += -_gcc=-Wno-uninitialized
47 47 YFLAGS += -d
48 48 LDLIBS += -lm
49 49 CLEANFILES= awk.c y.tab.h
50 50
51 51 # for messaging catalog
52 52
53 53 POFILE= awk_xpg4.po
54 54 POFILES= $(OBJ1:%.o=%.po) $(OBJ2:%.o=%.po)
55 55
56 56 .KEEP_STATE:
57 57
58 58 .PARALLEL: $(OBJS)
59 59
60 60 all: $(XPG4)
61 61
62 62 $(XPG4): $(OBJS)
↓ open down ↓ |
62 lines elided |
↑ open up ↑ |
63 63 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
64 64 $(POST_PROCESS)
65 65
66 66 $(POFILE): $(POFILES)
67 67 $(RM) $@
68 68 cat $(POFILES) > $@
69 69 #
70 70
71 71 install: all $(ROOTXPG4PROG)
72 72
73 -values-xpg4.o: ../../lib/common/common/values-xpg4.c
74 - $(COMPILE.c) -o $@ ../../lib/common/common/values-xpg4.c
73 +values-xpg4.o: ../../lib/crt/common/values-xpg4.c
74 + $(COMPILE.c) -o $@ ../../lib/crt/common/values-xpg4.c
75 75
76 76 clean:
77 77 $(RM) $(OBJS) $(XPG4) $(CLEANFILES)
78 78
79 79 lint: lint_SRCS
80 80
81 81 awk.c + y.tab.h: awk.y
82 82
83 83 awk.o: awk.c y.tab.h
84 84
85 85 awk0.c: awk.c y.tab.h
86 86
87 87 awk1.c: awk.c y.tab.h
88 88
89 89 awk2.c: awk.c y.tab.h
90 90
91 91 awk3.c: awk.c y.tab.h
92 92
93 93 awk4.c: awk.c y.tab.h
94 94
95 95 include ../Makefile.targ
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX