45 BINDSRC= bindings.c
46
47 ONSCRIPTS= perfcnt symbindrep
48 ONPROGS= dumpbind
49 ONLIBS= $(SYMBINDREP) $(PERFLIB) $(BINDLIB)
50
51 USRSCRIPTS= sotruss whocalls
52 CCSLIBS= $(TRUSSLIB) $(WHOLIB)
53
54 PICDIR= pics
55 OBJDIR= objs
56
57 TRUSSPICS= $(TRUSSSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
58 PERFPICS= $(PERFSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
59 WHOPICS= $(WHOSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
60 SYMBINDREPPICS= $(SYMBINDREPSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
61 BINDPICS= $(BINDSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
62
63 $(WHOPICS):= SEMANTICCHK=
64
65 LDLIBS += $(CONVLIBDIR) $(CONV_LIB)
66
67 $(TRUSSLIB):= PICS = $(TRUSSPICS)
68 $(PERFLIB):= PICS = $(PERFPICS)
69 $(WHOLIB):= PICS = $(WHOPICS)
70 $(SYMBINDREP):= PICS = $(SYMBINDREPPICS)
71 $(BINDLIB):= PICS = $(BINDPICS)
72
73 $(TRUSSLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
74 $(PERFLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
75 $(WHOLIB):= LDLIBS += $(ELFLIBDIR) -lelf $(ZRECORD) -lmapmalloc $(DLLIB) -lc
76 $(SYMBINDREP):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
77 $(BINDLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
78
79 $(TRUSSLIB):= SONAME = $(TRUSSLIB)
80 $(PERFLIB):= SONAME = $(PERFLIB)
81 $(WHOLIB):= SONAME = $(WHOLIB)
82 $(SYMBINDREP):= SONAME = $(SYMBINDREP)
83 $(BINDLIB):= SONAME = $(BINDLIB)
84
85 $(TRUSSLIB):= MAPFILES = ../common/mapfile-vers-truss
86 $(PERFLIB):= MAPFILES = ../common/mapfile-vers-perfcnt
87 $(WHOLIB):= MAPFILES = ../common/mapfile-vers-who
88 $(SYMBINDREP):= MAPFILES = ../common/mapfile-vers-symbindrep
89 $(BINDLIB):= MAPFILES = ../common/mapfile-vers-bindings
90
91 $(ROOTCCSLIB) := DIRMODE = 755
92
93 CPPFLAGS += -D_REENTRANT
94 LDFLAGS += $(CC_USE_PROTO)
95 DYNFLAGS += $(VERSREF)
96
97 CLEANFILES += $(OBJDIR)/* $(PICDIR)/*
98 CLOBBERFILES += $(ONSCRIPTS) $(ONPROGS) $(ONLIBS) $(CCSLIBS) $(USRSCRIPTS)
99
100 ROOTONLDLIB= $(ROOT)/opt/SUNWonld/lib
101 ROOTONLDLIBS= $(ONLIBS:%=$(ROOTONLDLIB)/%)
102 ROOTONLDLIB64= $(ROOTONLDLIB)/$(MACH64)
103 ROOTONLDLIBS64= $(ONLIBS:%=$(ROOTONLDLIB64)/%)
104
105 ROOTONLDBIN= $(ROOT)/opt/SUNWonld/bin
106 ROOTONLDBINPROG= $(ONSCRIPTS:%=$(ROOTONLDBIN)/%) \
107 $(ONPROGS:%=$(ROOTONLDBIN)/%)
108
109 ROOTCCSLIB= $(ROOT)/usr/lib/link_audit
110 ROOTCCSLIB64= $(ROOT)/usr/lib/link_audit/$(MACH64)
111 ROOTCCSLIBS= $(CCSLIBS:%=$(ROOTCCSLIB)/%)
112 ROOTCCSLIBS64= $(CCSLIBS:%=$(ROOTCCSLIB64)/%)
113
114 ROOTUSRBIN= $(ROOT)/usr/bin
|
45 BINDSRC= bindings.c
46
47 ONSCRIPTS= perfcnt symbindrep
48 ONPROGS= dumpbind
49 ONLIBS= $(SYMBINDREP) $(PERFLIB) $(BINDLIB)
50
51 USRSCRIPTS= sotruss whocalls
52 CCSLIBS= $(TRUSSLIB) $(WHOLIB)
53
54 PICDIR= pics
55 OBJDIR= objs
56
57 TRUSSPICS= $(TRUSSSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
58 PERFPICS= $(PERFSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
59 WHOPICS= $(WHOSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
60 SYMBINDREPPICS= $(SYMBINDREPSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
61 BINDPICS= $(BINDSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
62
63 $(WHOPICS):= SEMANTICCHK=
64
65 LDLIBS += $(CONVLIBDIR) -lconv
66
67 $(TRUSSLIB):= PICS = $(TRUSSPICS)
68 $(PERFLIB):= PICS = $(PERFPICS)
69 $(WHOLIB):= PICS = $(WHOPICS)
70 $(SYMBINDREP):= PICS = $(SYMBINDREPPICS)
71 $(BINDLIB):= PICS = $(BINDPICS)
72
73 $(TRUSSLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
74 $(PERFLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
75 $(WHOLIB):= LDLIBS += $(ELFLIBDIR) -lelf $(ZRECORD) -lmapmalloc $(DLLIB) -lc
76 $(SYMBINDREP):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
77 $(BINDLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
78
79 $(TRUSSLIB):= SONAME = $(TRUSSLIB)
80 $(PERFLIB):= SONAME = $(PERFLIB)
81 $(WHOLIB):= SONAME = $(WHOLIB)
82 $(SYMBINDREP):= SONAME = $(SYMBINDREP)
83 $(BINDLIB):= SONAME = $(BINDLIB)
84
85 $(TRUSSLIB):= MAPFILES = ../common/mapfile-vers-truss
86 $(PERFLIB):= MAPFILES = ../common/mapfile-vers-perfcnt
87 $(WHOLIB):= MAPFILES = ../common/mapfile-vers-who
88 $(SYMBINDREP):= MAPFILES = ../common/mapfile-vers-symbindrep
89 $(BINDLIB):= MAPFILES = ../common/mapfile-vers-bindings
90
91 $(ROOTCCSLIB) := DIRMODE = 755
92
93 CPPFLAGS += -D_REENTRANT
94 DYNFLAGS += $(VERSREF)
95
96 CLEANFILES += $(OBJDIR)/* $(PICDIR)/*
97 CLOBBERFILES += $(ONSCRIPTS) $(ONPROGS) $(ONLIBS) $(CCSLIBS) $(USRSCRIPTS)
98
99 ROOTONLDLIB= $(ROOT)/opt/SUNWonld/lib
100 ROOTONLDLIBS= $(ONLIBS:%=$(ROOTONLDLIB)/%)
101 ROOTONLDLIB64= $(ROOTONLDLIB)/$(MACH64)
102 ROOTONLDLIBS64= $(ONLIBS:%=$(ROOTONLDLIB64)/%)
103
104 ROOTONLDBIN= $(ROOT)/opt/SUNWonld/bin
105 ROOTONLDBINPROG= $(ONSCRIPTS:%=$(ROOTONLDBIN)/%) \
106 $(ONPROGS:%=$(ROOTONLDBIN)/%)
107
108 ROOTCCSLIB= $(ROOT)/usr/lib/link_audit
109 ROOTCCSLIB64= $(ROOT)/usr/lib/link_audit/$(MACH64)
110 ROOTCCSLIBS= $(CCSLIBS:%=$(ROOTCCSLIB)/%)
111 ROOTCCSLIBS64= $(CCSLIBS:%=$(ROOTCCSLIB64)/%)
112
113 ROOTUSRBIN= $(ROOT)/usr/bin
|