Home | History | Annotate | Line # | Download | only in libbfd
Makefile revision 1.7
      1  1.7  christos #	$NetBSD: Makefile,v 1.7 2019/05/26 20:14:32 christos Exp $
      2  1.1  christos 
      3  1.1  christos .include <bsd.own.mk>
      4  1.1  christos .include "../Makefile.inc"
      5  1.1  christos 
      6  1.1  christos LIBISPRIVATE=	yes
      7  1.1  christos 
      8  1.1  christos LIB=		bfd
      9  1.1  christos 
     10  1.1  christos .include "${.CURDIR}/arch/${GDB_MACHINE_ARCH}/defs.mk"
     11  1.1  christos 
     12  1.1  christos GCPPFLAGS=	${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
     13  1.1  christos CPPFLAGS+=	-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} -I${DIST}/include -I. \
     14  1.1  christos 		-I${DIST}/bfd ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*} \
     15  1.3  christos 		-DDEBUGDIR=\"/usr/libdata/debug\" -DBINDIR=\"${BINDIR}\"
     16  1.1  christos 
     17  1.1  christos GSRCS=		${G_libbfd_la_OBJECTS:libbfd.lo=lib_bfd.lo} \
     18  1.1  christos 		${G_libbfd_la_DEPENDENCIES:M*.lo}
     19  1.1  christos SRCS=		${GSRCS:.lo=.c}
     20  1.1  christos 
     21  1.1  christos DPSRCS+=	elf32-target.h elf64-target.h targmatch.h \
     22  1.7  christos 		elf32-ia64.c elf64-ia64.c elf64-aarch64.c \
     23  1.7  christos 		peigen.c pex64igen.c
     24  1.1  christos CLEANFILES+=	elf32-target.h elf64-target.h targmatch.h \
     25  1.7  christos 		elf32-ia64.c elf64-ia64.c elf64-aarch64.c \
     26  1.7  christos 		peigen.c pex64igen.c
     27  1.1  christos 
     28  1.1  christos .PATH: ${DIST}/bfd
     29  1.1  christos 
     30  1.1  christos .include <bsd.lib.mk>
     31  1.1  christos 
     32  1.3  christos COPTS+=         -Wno-stack-protector
     33  1.3  christos 
     34  1.1  christos ${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
     35  1.1  christos targets.o targets.pico: targmatch.h Makefile
     36  1.1  christos 
     37  1.1  christos targmatch.h: config.bfd targmatch.sed
     38  1.1  christos 	${_MKTARGET_CREATE}
     39  1.1  christos 	${TOOL_SED} -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
     40  1.1  christos 
     41  1.1  christos elf32-target.h: elfxx-target.h
     42  1.1  christos 	${_MKTARGET_CREATE}
     43  1.1  christos 	${TOOL_SED} -e s/NN/32/g < $> > $@
     44  1.1  christos 
     45  1.1  christos elf64-target.h: elfxx-target.h
     46  1.1  christos 	${_MKTARGET_CREATE}
     47  1.1  christos 	${TOOL_SED} -e s/NN/64/g < $> > $@
     48  1.1  christos 
     49  1.1  christos elf32-ia64.c: elfxx-ia64.c
     50  1.1  christos 	${_MKTARGET_CREATE}
     51  1.1  christos 	${TOOL_SED} -e s/NN/32/g < $> > $@
     52  1.1  christos 
     53  1.1  christos elf64-ia64.c: elfxx-ia64.c
     54  1.1  christos 	${_MKTARGET_CREATE}
     55  1.1  christos 	${TOOL_SED} -e s/NN/64/g < $> > $@
     56  1.1  christos 
     57  1.7  christos elf64-aarch64.c: elfnn-aarch64.c
     58  1.7  christos 	${_MKTARGET_CREATE}
     59  1.7  christos 	${TOOL_SED} -e s/NN/64/g < $> > $@
     60  1.7  christos 
     61  1.1  christos peigen.c: peXXigen.c
     62  1.1  christos 	${_MKTARGET_CREATE}
     63  1.1  christos 	${TOOL_SED} -e s/XX/pe/g < $> > $@
     64  1.1  christos 
     65  1.1  christos pex64igen.c: peXXigen.c
     66  1.1  christos 	${_MKTARGET_CREATE}
     67  1.1  christos 	${TOOL_SED} -e s/XX/pex64/g < $> > $@
     68