Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/librtld_db/demo/Makefile.targ
+++ new/usr/src/cmd/sgs/librtld_db/demo/Makefile.targ
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
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 # Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
22 22 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
23 23 #
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
24 24
25 25 $(OBJDIR)/%.o: %.c
26 26 $(COMPILE.c) $< -o $@
27 27 $(POST_PROCESS_O)
28 28
29 29 $(OBJDIR)/%.o: ../common/%.c
30 30 $(COMPILE.c) $< -o $@
31 31 $(POST_PROCESS_O)
32 32
33 33 # DEMO DELETE START
34 -$(ROOTONLDBIN)/%: %
34 +
35 +$(ROOTONLDBIN):
36 + $(INS.dir)
37 +
38 +$(ROOTONLDBIN)/$(MACH64):
39 + $(INS.dir)
40 +
41 +$(ROOTONLDBIN)/%: % $(ROOTONLDBIN)
35 42 $(INS.file)
36 43
37 -$(ROOTONLDBIN)/$(MACH64)/%: %
44 +$(ROOTONLDBIN)/$(MACH64)/%: % $(ROOTONLDBIN)/$(MACH64)
38 45 $(INS.file)
39 46 # DEMO DELETE END
40 47
41 48 $(OBJDIR)/main.o: gram.h
42 49
43 50 gram.c + gram.h: ../common/gram.y
44 51 $(YACC) -d ../common/gram.y
45 52 $(MV) y.tab.c gram.c
46 53 $(MV) y.tab.h gram.h
47 54
48 55 lex.c: ../common/lex.l
49 56 $(LEX) ../common/lex.l
50 57 $(MV) lex.yy.c lex.c
51 58
52 59 $(PROG): $(OBJS)
53 60 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
54 61 # DEMO DELETE START
55 62 $(POST_PROCESS)
56 63 # DEMO DELETE END
57 64
58 65
59 66 simp: ../tests/simp.c libsub.so.1
60 67 $(LINK.c) $(LDFLAG) -o $@ ../tests/simp.c -R. ./libsub.so.1
61 68
62 69 libsub.so.1: ../tests/sub.c
63 70 $(LINK.c) $(LDFLAG) -o $@ -G -fpic -hlibsub.so.1 ../tests/sub.c
64 71
65 72 #
66 73 # RDB sample runs & tests
67 74 #
68 75 test-maps: simp FRC
69 76 ./rdb -f ../tests/loadmaps ./simp
70 77
71 78 test-breaks: simp FRC
72 79 ./rdb -f ../tests/breaks ./simp
73 80
74 81 test-steps: simp FRC
75 82 ./rdb -f ../tests/steps ./simp
76 83
77 84 test-plt_skip: simp FRC
78 85 ./rdb -f ../tests/plt_skip ./simp
79 86
80 87 test-sparc-regs: simp FRC
81 88 ./rdb -f ../tests/test-sparc-regs simp
82 89
83 90 test-object-padding: simp FRC
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
84 91 ./rdb -f ../tests/object_padding_maps simp
85 92
86 93 $(OBJDIR):
87 94 -@mkdir -p $(OBJDIR)
88 95
89 96 clean: FRC
90 97 $(RM) $(OBJS) $(CLEANFILES)
91 98
92 99 clobber: clean FRC
93 100 $(RM) $(PROG)
101 +
102 +# DEMO DELETE START
103 +catalog check chkmsg:
104 +# DEMO DELETE END
94 105
95 106 FRC:
96 107
97 108 # DEMO DELETE START
98 109
99 110 include $(SRC)/cmd/sgs/Makefile.targ
100 111 # DEMO DELETE END
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX