Print this page
7612 SGSPROTO lacks structure
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/link_audit/Makefile.com
+++ new/usr/src/cmd/sgs/link_audit/Makefile.com
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 #
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
21 21
22 22 #
23 23 # Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25
26 26 include ../../../../lib/Makefile.lib
27 27 include ../../Makefile.com
28 28
29 29 NO_ASM_WARN= -erroff=E_ASM_DISABLES_OPTIMIZATION
30 30
31 -SGSPROTO= ../../proto/$(MACH)
32 -
33 31 TRUSSLIB= truss.so.1
34 32 TRUSSSRC= truss.c
35 33
36 34 SYMBINDREP= symbindrep.so.1
37 35 SYMBINDREPSRC= symbindrep.c
38 36
39 37 PERFLIB= perfcnt.so.1
40 38 PERFSRC= perfcnt.c hash.c
41 39
42 40 WHOLIB= who.so.1
43 41 WHOSRC= who.c
44 42
45 43 BINDLIB= bindings.so.1
46 44 BINDSRC= bindings.c
47 45
48 46 ONSCRIPTS= perfcnt symbindrep
49 47 ONPROGS= dumpbind
50 48 ONLIBS= $(SYMBINDREP) $(PERFLIB) $(BINDLIB)
51 49
52 50 USRSCRIPTS= sotruss whocalls
53 51 CCSLIBS= $(TRUSSLIB) $(WHOLIB)
54 52
55 53 PICDIR= pics
56 54 OBJDIR= objs
57 55
58 56 TRUSSPICS= $(TRUSSSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
59 57 PERFPICS= $(PERFSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
60 58 WHOPICS= $(WHOSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
61 59 SYMBINDREPPICS= $(SYMBINDREPSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
62 60 BINDPICS= $(BINDSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
63 61
64 62 $(WHOPICS):= SEMANTICCHK=
65 63
66 64 LDLIBS += $(CONVLIBDIR) $(CONV_LIB)
67 65
68 66 $(TRUSSLIB):= PICS = $(TRUSSPICS)
69 67 $(PERFLIB):= PICS = $(PERFPICS)
70 68 $(WHOLIB):= PICS = $(WHOPICS)
71 69 $(SYMBINDREP):= PICS = $(SYMBINDREPPICS)
72 70 $(BINDLIB):= PICS = $(BINDPICS)
73 71
74 72 $(TRUSSLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
75 73 $(PERFLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
76 74 $(WHOLIB):= LDLIBS += $(ELFLIBDIR) -lelf $(ZRECORD) -lmapmalloc $(DLLIB) -lc
77 75 $(SYMBINDREP):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
78 76 $(BINDLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
79 77
80 78 $(TRUSSLIB):= SONAME = $(TRUSSLIB)
81 79 $(PERFLIB):= SONAME = $(PERFLIB)
82 80 $(WHOLIB):= SONAME = $(WHOLIB)
83 81 $(SYMBINDREP):= SONAME = $(SYMBINDREP)
84 82 $(BINDLIB):= SONAME = $(BINDLIB)
85 83
86 84 $(TRUSSLIB):= MAPFILES = ../common/mapfile-vers-truss
87 85 $(PERFLIB):= MAPFILES = ../common/mapfile-vers-perfcnt
88 86 $(WHOLIB):= MAPFILES = ../common/mapfile-vers-who
89 87 $(SYMBINDREP):= MAPFILES = ../common/mapfile-vers-symbindrep
90 88 $(BINDLIB):= MAPFILES = ../common/mapfile-vers-bindings
91 89
92 90 $(ROOTCCSLIB) := DIRMODE = 755
93 91
94 92 CPPFLAGS += -D_REENTRANT
95 93 LDFLAGS += $(CC_USE_PROTO)
96 94 DYNFLAGS += $(VERSREF)
97 95
98 96 LINTFLAGS += -uaxs $(LDLIBS)
99 97 LINTFLAGS64 += -uaxs $(LDLIBS)
100 98
101 99 CLEANFILES += $(LINTOUT) $(OBJDIR)/* $(PICDIR)/*
102 100 CLOBBERFILES += $(ONSCRIPTS) $(ONPROGS) $(ONLIBS) $(CCSLIBS) $(USRSCRIPTS)
103 101
104 102 ROOTONLDLIB= $(ROOT)/opt/SUNWonld/lib
105 103 ROOTONLDLIBS= $(ONLIBS:%=$(ROOTONLDLIB)/%)
106 104 ROOTONLDLIB64= $(ROOTONLDLIB)/$(MACH64)
107 105 ROOTONLDLIBS64= $(ONLIBS:%=$(ROOTONLDLIB64)/%)
108 106
109 107 ROOTONLDBIN= $(ROOT)/opt/SUNWonld/bin
110 108 ROOTONLDBINPROG= $(ONSCRIPTS:%=$(ROOTONLDBIN)/%) \
111 109 $(ONPROGS:%=$(ROOTONLDBIN)/%)
112 110
113 111 ROOTCCSLIB= $(ROOT)/usr/lib/link_audit
114 112 ROOTCCSLIB64= $(ROOT)/usr/lib/link_audit/$(MACH64)
115 113 ROOTCCSLIBS= $(CCSLIBS:%=$(ROOTCCSLIB)/%)
116 114 ROOTCCSLIBS64= $(CCSLIBS:%=$(ROOTCCSLIB64)/%)
117 115
118 116 ROOTUSRBIN= $(ROOT)/usr/bin
119 117 ROOTUSRBINS= $(USRSCRIPTS:%=$(ROOTUSRBIN)/%)
120 118
121 119 FILEMODE= 0755
122 120
123 121 .PARALLEL: $(LIBS) $(PROGS) $(SCRIPTS) $(TRUSSPICS) $(PERFPICS) \
124 122 $(WHOPICS) $(SYMBINDREPPICS) $(BINDPICS)
↓ open down ↓ |
82 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX