Home | History | Annotate | Line # | Download | only in libbfd
Makefile revision 1.2
      1  1.2  christos #	$NetBSD: Makefile,v 1.2 2011/10/02 18:16:06 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/${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/${MACHINE_ARCH} -I${DIST}/include -I. \
     14  1.1  christos 		-I${DIST}/bfd ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*} \
     15  1.1  christos 		-DDEBUGDIR=\"${DESTDIR}/usr/libdata/debug\"
     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.1  christos 		elf32-ia64.c elf64-ia64.c
     23  1.1  christos CLEANFILES+=	elf32-target.h elf64-target.h targmatch.h \
     24  1.1  christos 		elf32-ia64.c elf64-ia64.c
     25  1.1  christos 
     26  1.1  christos .PATH: ${DIST}/bfd
     27  1.1  christos 
     28  1.1  christos .include <bsd.lib.mk>
     29  1.1  christos 
     30  1.1  christos ${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
     31  1.1  christos targets.o targets.pico: targmatch.h Makefile
     32  1.1  christos 
     33  1.1  christos targmatch.h: config.bfd targmatch.sed
     34  1.1  christos 	${_MKTARGET_CREATE}
     35  1.1  christos 	${TOOL_SED} -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
     36  1.1  christos 
     37  1.1  christos elf32-target.h: elfxx-target.h
     38  1.1  christos 	${_MKTARGET_CREATE}
     39  1.1  christos 	${TOOL_SED} -e s/NN/32/g < $> > $@
     40  1.1  christos 
     41  1.1  christos elf64-target.h: elfxx-target.h
     42  1.1  christos 	${_MKTARGET_CREATE}
     43  1.1  christos 	${TOOL_SED} -e s/NN/64/g < $> > $@
     44  1.1  christos 
     45  1.1  christos elf32-ia64.c: elfxx-ia64.c
     46  1.1  christos 	${_MKTARGET_CREATE}
     47  1.1  christos 	${TOOL_SED} -e s/NN/32/g < $> > $@
     48  1.1  christos 
     49  1.1  christos elf64-ia64.c: elfxx-ia64.c
     50  1.1  christos 	${_MKTARGET_CREATE}
     51  1.1  christos 	${TOOL_SED} -e s/NN/64/g < $> > $@
     52  1.1  christos 
     53  1.2  christos peigen.c: peXXigen.c
     54  1.2  christos 	${_MKTARGET_CREATE}
     55  1.2  christos 	${TOOL_SED} -e s/XX/pe/g < $> > $@
     56  1.1  christos 
     57  1.1  christos pex64igen.c: peXXigen.c
     58  1.1  christos 	${_MKTARGET_CREATE}
     59  1.1  christos 	${TOOL_SED} -e s/XX/pex64/g < $> > $@
     60