50 SYM_LIB= sym.so
51 SYM_OBJ= sym_msg.o sym32.o sym64.o
52
53 SYMINFO_LIB= syminfo.so
54 SYMINFO_OBJ= syminfo_msg.o syminfo32.o syminfo64.o
55
56 ELFEDITLIBS= $(CAP_LIB) $(DYN_LIB) $(EHDR_LIB) $(PHDR_LIB) \
57 $(SHDR_LIB) $(STR_LIB) $(SYM_LIB) $(SYMINFO_LIB)
58
59 PICDIR= pics
60
61 CAP_PICS= $(CAP_OBJ:%.o=$(PICDIR)/%.o)
62 DYN_PICS= $(DYN_OBJ:%.o=$(PICDIR)/%.o)
63 EHDR_PICS= $(EHDR_OBJ:%.o=$(PICDIR)/%.o)
64 PHDR_PICS= $(PHDR_OBJ:%.o=$(PICDIR)/%.o)
65 SHDR_PICS= $(SHDR_OBJ:%.o=$(PICDIR)/%.o)
66 STR_PICS= $(STR_OBJ:%.o=$(PICDIR)/%.o)
67 SYM_PICS= $(SYM_OBJ:%.o=$(PICDIR)/%.o)
68 SYMINFO_PICS= $(SYMINFO_OBJ:%.o=$(PICDIR)/%.o)
69
70 LDLIBS += $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) $(LDDBG_LIB) \
71 $(CONVLIBDIR) $(CONV_LIB) -lc
72
73 $(CAP_LIB):= PICS = $(CAP_PICS)
74 $(DYN_LIB):= PICS = $(DYN_PICS)
75 $(EHDR_LIB):= PICS = $(EHDR_PICS)
76 $(PHDR_LIB):= PICS = $(PHDR_PICS)
77 $(SHDR_LIB):= PICS = $(SHDR_PICS)
78 $(STR_LIB):= PICS = $(STR_PICS)
79 $(SYM_LIB):= PICS = $(SYM_PICS)
80 $(SYMINFO_LIB):= PICS = $(SYMINFO_PICS)
81
82 $(CAP_LIB):= SONAME = $(CAP_LIB)
83 $(DYN_LIB):= SONAME = $(DYN_LIB)
84 $(EHDR_LIB):= SONAME = $(EHDR_LIB)
85 $(PHDR_LIB):= SONAME = $(PHDR_LIB)
86 $(SHDR_LIB):= SONAME = $(SHDR_LIB)
87 $(STR_LIB):= SONAME = $(STR_LIB)
88 $(SYM_LIB):= SONAME = $(SYM_LIB)
89 $(SYMINFO_LIB):= SONAME = $(SYMINFO_LIB)
90
91 # All the modules use a shared mapfile
92 MAPFILES = ../common/mapfile-vers
93
94 CPPFLAGS += -I../../../include -I../../../include/$(MACH) \
95 -I../$(SRCBASE)/lib/libc/inc -D_REENTRANT
96 LLDFLAGS = '-R$$ORIGIN/../../../lib'
97 LLDFLAGS64 = '-R$$ORIGIN/../../../../lib/$(MACH64)'
98 LDFLAGS += $(CC_USE_PROTO) $(LLDFLAGS)
99 DYNFLAGS += $(VERSREF)
100
101 CERRWARN += -_gcc=-Wno-switch
102 CERRWARN += -_gcc=-Wno-uninitialized
103
104 BLTDEFS = $(ELFEDITLIBS:%.so=%_msg.h)
105 BLTDATA = $(ELFEDITLIBS:%.so=%_msg.c)
106 BLTFILES = $(BLTDEFS) $(BLTDATA)
107
108 CLEANFILES += $(BLTFILES) $(PICDIR)/*
109 CLOBBERFILES += $(ELFEDITLIBS)
110
111 ROOTELFEDITDIR= $(ROOT)/usr/lib/elfedit
112 ROOTELFEDITDIR64= $(ROOT)/usr/lib/elfedit/$(MACH64)
113 ROOTELFEDITLIBS= $(ROOTELFEDITDIR)/$(MTARG)$(CAP_LIB) \
114 $(ROOTELFEDITDIR)/$(MTARG)$(DYN_LIB) \
115 $(ROOTELFEDITDIR)/$(MTARG)$(EHDR_LIB) \
116 $(ROOTELFEDITDIR)/$(MTARG)$(PHDR_LIB) \
117 $(ROOTELFEDITDIR)/$(MTARG)$(SHDR_LIB) \
118 $(ROOTELFEDITDIR)/$(MTARG)$(STR_LIB) \
|
50 SYM_LIB= sym.so
51 SYM_OBJ= sym_msg.o sym32.o sym64.o
52
53 SYMINFO_LIB= syminfo.so
54 SYMINFO_OBJ= syminfo_msg.o syminfo32.o syminfo64.o
55
56 ELFEDITLIBS= $(CAP_LIB) $(DYN_LIB) $(EHDR_LIB) $(PHDR_LIB) \
57 $(SHDR_LIB) $(STR_LIB) $(SYM_LIB) $(SYMINFO_LIB)
58
59 PICDIR= pics
60
61 CAP_PICS= $(CAP_OBJ:%.o=$(PICDIR)/%.o)
62 DYN_PICS= $(DYN_OBJ:%.o=$(PICDIR)/%.o)
63 EHDR_PICS= $(EHDR_OBJ:%.o=$(PICDIR)/%.o)
64 PHDR_PICS= $(PHDR_OBJ:%.o=$(PICDIR)/%.o)
65 SHDR_PICS= $(SHDR_OBJ:%.o=$(PICDIR)/%.o)
66 STR_PICS= $(STR_OBJ:%.o=$(PICDIR)/%.o)
67 SYM_PICS= $(SYM_OBJ:%.o=$(PICDIR)/%.o)
68 SYMINFO_PICS= $(SYMINFO_OBJ:%.o=$(PICDIR)/%.o)
69
70 LDLIBS += $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) -llddbg \
71 $(CONVLIBDIR) -lconv -lc
72
73 $(CAP_LIB):= PICS = $(CAP_PICS)
74 $(DYN_LIB):= PICS = $(DYN_PICS)
75 $(EHDR_LIB):= PICS = $(EHDR_PICS)
76 $(PHDR_LIB):= PICS = $(PHDR_PICS)
77 $(SHDR_LIB):= PICS = $(SHDR_PICS)
78 $(STR_LIB):= PICS = $(STR_PICS)
79 $(SYM_LIB):= PICS = $(SYM_PICS)
80 $(SYMINFO_LIB):= PICS = $(SYMINFO_PICS)
81
82 $(CAP_LIB):= SONAME = $(CAP_LIB)
83 $(DYN_LIB):= SONAME = $(DYN_LIB)
84 $(EHDR_LIB):= SONAME = $(EHDR_LIB)
85 $(PHDR_LIB):= SONAME = $(PHDR_LIB)
86 $(SHDR_LIB):= SONAME = $(SHDR_LIB)
87 $(STR_LIB):= SONAME = $(STR_LIB)
88 $(SYM_LIB):= SONAME = $(SYM_LIB)
89 $(SYMINFO_LIB):= SONAME = $(SYMINFO_LIB)
90
91 # All the modules use a shared mapfile
92 MAPFILES = ../common/mapfile-vers
93
94 CPPFLAGS += -I../../../include -I../../../include/$(MACH) \
95 -I$(SRC)/lib/libc/inc -D_REENTRANT
96 LLDFLAGS = '-R$$ORIGIN/../../../lib'
97 LLDFLAGS64 = '-R$$ORIGIN/../../../../lib/$(MACH64)'
98 LDFLAGS += $(LLDFLAGS)
99 DYNFLAGS += $(VERSREF)
100
101 CERRWARN += -_gcc=-Wno-switch
102 CERRWARN += -_gcc=-Wno-uninitialized
103
104 BLTDEFS = $(ELFEDITLIBS:%.so=%_msg.h)
105 BLTDATA = $(ELFEDITLIBS:%.so=%_msg.c)
106 BLTFILES = $(BLTDEFS) $(BLTDATA)
107
108 CLEANFILES += $(BLTFILES) $(PICDIR)/*
109 CLOBBERFILES += $(ELFEDITLIBS)
110
111 ROOTELFEDITDIR= $(ROOT)/usr/lib/elfedit
112 ROOTELFEDITDIR64= $(ROOT)/usr/lib/elfedit/$(MACH64)
113 ROOTELFEDITLIBS= $(ROOTELFEDITDIR)/$(MTARG)$(CAP_LIB) \
114 $(ROOTELFEDITDIR)/$(MTARG)$(DYN_LIB) \
115 $(ROOTELFEDITDIR)/$(MTARG)$(EHDR_LIB) \
116 $(ROOTELFEDITDIR)/$(MTARG)$(PHDR_LIB) \
117 $(ROOTELFEDITDIR)/$(MTARG)$(SHDR_LIB) \
118 $(ROOTELFEDITDIR)/$(MTARG)$(STR_LIB) \
|