1 # $NetBSD: Makefile,v 1.1 2009/12/19 05:52:01 thorpej Exp $
9 elf_end.c elf_errmsg.c elf_errno.c \
11 elf_fill.c elf_flag.c \
12 elf_getarhdr.c elf_getarsym.c elf_getbase.c \
18 elf_rand.c elf_rawfile.c \
20 elf_shnum.c elf_shstrndx.c elf_scn.c elf_strptr.c \
31 gelf_rel.c gelf_rela.c \
32 gelf_shdr.c gelf_sym.c gelf_syminfo.c gelf_symshndx.c \
35 libelf_align.c libelf_allocate.c libelf_ar.c \
38 libelf_ehdr.c libelf_extended.c \
47 LIBELF_GENSRCS
= libelf_fsize.c libelf_msize.c libelf_convert.c
49 CLEANFILES
+= ${LIBELF_GENSRCS}
50 CPPFLAGS
+= -I
${.CURDIR
}
55 elf_end
.3 elf_errmsg
.3 \
56 elf_fill
.3 elf_flagdata
.3 \
57 elf_getarhdr
.3 elf_getarsym
.3 elf_getbase
.3 \
58 elf_getdata
.3 elf_getident
.3 elf_getscn
.3 \
59 elf_getphnum
.3 elf_getshnum
.3 elf_getshstrndx
.3 \
64 elf_rawfile
.3 elf_rand
.3 \
71 gelf_getcap
.3 gelf_getclass
.3 gelf_getdyn
.3 \
72 gelf_getehdr
.3 gelf_getmove
.3 gelf_getphdr
.3 \
73 gelf_getrel
.3 gelf_getrela
.3 gelf_getshdr
.3 \
74 gelf_getsym
.3 gelf_getsyminfo
.3 gelf_getsymshndx
.3 \
75 gelf_newehdr
.3 gelf_newphdr
.3 \
79 MLINKS
+= elf_errmsg
.3 elf_errno
.3
81 MLINKS
+= elf_flagdata
.3 elf_flagehdr
.3
82 MLINKS
+= elf_flagdata
.3 elf_flagelf
.3
83 MLINKS
+= elf_flagdata
.3 elf_flagphdr
.3
84 MLINKS
+= elf_flagdata
.3 elf_flagscn
.3
85 MLINKS
+= elf_flagdata
.3 elf_flagshdr
.3
87 MLINKS
+= elf_getdata
.3 elf_newdata
.3
88 MLINKS
+= elf_getdata
.3 elf_rawdata
.3
90 MLINKS
+= elf_getscn
.3 elf_ndxscn
.3
91 MLINKS
+= elf_getscn
.3 elf_newscn
.3
92 MLINKS
+= elf_getscn
.3 elf_nextscn
.3
94 MLINKS
+= elf_getshstrndx
.3 elf_setshstrndx
.3
96 MLINKS
+= gelf_getcap
.3 gelf_update_cap
.3
98 MLINKS
+= gelf_getdyn
.3 gelf_update_dyn
.3
100 MLINKS
+= gelf_getmove
.3 gelf_update_move
.3
102 MLINKS
+= gelf_getrel
.3 gelf_update_rel
.3
104 MLINKS
+= gelf_getrela
.3 gelf_update_rela
.3
106 MLINKS
+= gelf_getsym
.3 gelf_update_sym
.3
108 MLINKS
+= gelf_getsyminfo
.3 gelf_update_syminfo
.3
110 MLINKS
+= gelf_getsymshndx
.3 gelf_update_symshndx
.3
112 MLINKS
+= gelf_update_ehdr
.3 gelf_update_phdr
.3
114 MLINKS
+= gelf_update_ehdr
.3 gelf_update_shdr
.3
116 MLINKS
+= gelf_xlatetof
.3 gelf_xlatetom
.3
119 MLINKS
+= gelf_checksum
.3 elf
${E}_checksum
.3
120 MLINKS
+= gelf_fsize
.3 elf
${E}_fsize
.3
121 MLINKS
+= gelf_getehdr
.3 elf
${E}_getehdr
.3
122 MLINKS
+= gelf_getphdr
.3 elf
${E}_getphdr
.3
123 MLINKS
+= gelf_getshdr
.3 elf
${E}_getshdr
.3
124 MLINKS
+= gelf_newehdr
.3 elf
${E}_newehdr
.3
125 MLINKS
+= gelf_newphdr
.3 elf
${E}_newphdr
.3
126 MLINKS
+= gelf_xlatetof
.3 elf
${E}_xlatetof
.3
127 MLINKS
+= gelf_xlatetof
.3 elf
${E}_xlatetom
.3
130 LIBELF_TEST_HOOKS?
= 1
131 .if defined
(LIBELF_TEST_HOOKS
) && (${LIBELF_TEST_HOOKS} > 0)
132 CPPFLAGS
+= -DLIBELF_TEST_HOOKS
135 libelf_convert.c
: elf_types.m4 libelf_convert.m4
136 libelf_fsize.c
: elf_types.m4 libelf_fsize.m4
137 libelf_msize.c
: elf_types.m4 libelf_msize.m4
139 .
include <bsd.lib.mk
>
141 # Keep the .SUFFIXES line after the include of bsd.lib.mk
144 ${TOOL_M4} -D SRCDIR
=${LIBELF_DIR} ${.IMPSRC
} > ${.TARGET
}