Print this page
5468 Missing dependencies in lib/Makefile
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/link_audit/common/Makefile.demo
+++ new/usr/src/cmd/sgs/link_audit/common/Makefile.demo
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
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
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 -
22 21 #
23 22 # Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
23 +# Copyright 2015 RackTop Systems.
24 24 #
25 25
26 26 MACH:sh= uname -p
27 27
28 28 sparc_XARCH=
29 29 sparc64_XARCH= -m64
30 30 i386_XARCH=
31 31 i38664_XARCH= -m64
32 32 C_PICFLAGS= -Kpic
33 33 C_PICFLAGS64= -Kpic
34 34
35 35 PROGS= dumpbind
36 36 LIBS= truss.so.1 symbindrep.so.1 perfcnt.so.1 who.so.1 bindings.so.1
37 37 KSHSRC= sotruss.ksh symbindrep.ksh perfcnt.ksh whocalls.ksh
38 38 SCRIPTS= $(KSHSRC:%.ksh=%)
39 39
40 40 DIRS= obj32 obj64 lib32 lib64
41 41
42 42 sparc_LIBS32= $(LIBS:%=lib32/%)
43 43 sparc_LIBS64= $(LIBS:%=lib64/%)
44 44 i386_LIBS32= $(LIBS:%=lib32/%)
45 45 i386_LIBS64= $(LIBS:%=lib64/%)
46 46
47 47 LIBS64= $($(MACH)_LIBS64)
48 48 LIBS32= $($(MACH)_LIBS32)
49 49
50 50 ALLIBS= $(LIBS32) $(LIBS64)
51 51
52 52 $(LIBS32):= CFLAGS += $($(MACH)_XARCH) $(C_PICFLAGS)
53 53 $(LIBS32):= LDLIBS += -lmapmalloc -ldl -lc
54 54 $(LIBS64):= CFLAGS += $($(MACH)64_XARCH) $(C_PICFLAGS64)
55 55 $(LIBS64):= LDLIBS += -lmapmalloc -ldl -lc
56 56
57 57 CPPFLAGS += -Isrc -D__EXTENSIONS__
58 58 LDFLAGS = $(ZDEFS) $(ZTEXT) $(ZIGNORE)
59 59
60 60
61 61 .KEEP_STATE:
62 62
63 63 all: $(DIRS) .WAIT $(ALLIBS) $(SCRIPTS) $(PROGS)
64 64
65 65 %: src/%.ksh
66 66 $(RM) $@
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
67 67 cat $< | sed -e s,/opt/SUNWonld/lib/,`pwd`/lib, | \
68 68 sed -e s,/usr/lib/link_audit/,`pwd`/lib, > $@
69 69 chmod a+x $@
70 70
71 71 obj32/%.o \
72 72 obj64/%.o: src/%.c
73 73 $(COMPILE.c) $< -o $@
74 74
75 75 dumpbind: \
76 76 obj32/dumpbind.o
77 - $(LINK.c) obj32/dumpbind.o -o $@
77 + $(LINK.c) obj32/dumpbind.o -o $@ $(LDLIBS)
78 78
79 79 lib32/bindings.so.1: \
80 80 obj32/bindings.o obj32/env.o
81 81 $(LINK.c) -G obj32/bindings.o obj32/env.o -o $@ $(LDLIBS)
82 82
83 83 lib64/bindings.so.1: \
84 84 obj64/bindings.o obj64/env.o
85 85 $(LINK.c) -G obj64/bindings.o obj64/env.o -o $@ $(LDLIBS)
86 86
87 87 lib32/perfcnt.so.1: \
88 88 obj32/perfcnt.o obj32/hash.o obj32/env.o
89 89 $(LINK.c) -G obj32/perfcnt.o obj32/hash.o obj32/env.o -o $@ $(LDLIBS)
90 90
91 91 lib64/perfcnt.so.1: \
92 92 obj64/perfcnt.o obj64/hash.o obj64/env.o
93 93 $(LINK.c) -G obj64/perfcnt.o obj64/hash.o obj64/env.o -o $@ $(LDLIBS)
94 94
95 95 lib32/symbindrep.so.1: \
96 96 obj32/symbindrep.o obj32/env.o
97 97 $(LINK.c) -G obj32/symbindrep.o obj32/env.o -o $@ $(LDLIBS)
98 98
99 99 lib64/symbindrep.so.1: \
100 100 obj64/symbindrep.o obj64/env.o
101 101 $(LINK.c) -G obj64/symbindrep.o obj64/env.o -o $@ $(LDLIBS)
102 102
103 103 lib32/truss.so.1: \
104 104 obj32/truss.o obj32/env.o
105 105 $(LINK.c) -G obj32/truss.o obj32/env.o -o $@ $(LDLIBS)
106 106
107 107 lib64/truss.so.1: \
108 108 obj64/truss.o obj64/env.o
109 109 $(LINK.c) -G obj64/truss.o obj64/env.o -o $@ $(LDLIBS)
110 110
111 111 lib32/who.so.1: \
112 112 obj32/who.o obj32/env.o
113 113 $(LINK.c) -G obj32/who.o obj32/env.o -o $@ -lelf $(LDLIBS)
114 114
115 115 lib64/who.so.1: \
116 116 obj64/who.o obj64/env.o
117 117 $(LINK.c) -G obj64/who.o obj64/env.o -o $@ -lelf $(LDLIBS)
118 118
119 119 obj32 \
120 120 obj64 \
121 121 lib32 \
122 122 lib64:
123 123 @mkdir $@ | cat
124 124
125 125 clean \
126 126 clobber:FRC
127 127 $(RM) -r $(DIRS) $(SCRIPTS) $(PROGS) core .make.state
128 128
129 129 FRC:
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX