Home | History | Annotate | Line # | Download | only in libbfd
Makefile revision 1.10
      1  1.10       mrg #	$NetBSD: Makefile,v 1.10 2021/05/06 06:52:18 mrg 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.9       rin 		elf32-ia64.c elf64-ia64.c elf64-aarch64.c elf32-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.10       mrg COPTS+=         -Wno-overflow
     34   1.3  christos 
     35   1.1  christos ${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
     36   1.1  christos targets.o targets.pico: targmatch.h Makefile
     37   1.1  christos 
     38   1.1  christos targmatch.h: config.bfd targmatch.sed
     39   1.1  christos 	${_MKTARGET_CREATE}
     40   1.1  christos 	${TOOL_SED} -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
     41   1.1  christos 
     42   1.1  christos elf32-target.h: elfxx-target.h
     43   1.1  christos 	${_MKTARGET_CREATE}
     44   1.1  christos 	${TOOL_SED} -e s/NN/32/g < $> > $@
     45   1.1  christos 
     46   1.1  christos elf64-target.h: elfxx-target.h
     47   1.1  christos 	${_MKTARGET_CREATE}
     48   1.1  christos 	${TOOL_SED} -e s/NN/64/g < $> > $@
     49   1.1  christos 
     50   1.1  christos elf32-ia64.c: elfxx-ia64.c
     51   1.1  christos 	${_MKTARGET_CREATE}
     52   1.1  christos 	${TOOL_SED} -e s/NN/32/g < $> > $@
     53   1.1  christos 
     54   1.1  christos elf64-ia64.c: elfxx-ia64.c
     55   1.1  christos 	${_MKTARGET_CREATE}
     56   1.1  christos 	${TOOL_SED} -e s/NN/64/g < $> > $@
     57   1.1  christos 
     58   1.9       rin elf32-aarch64.c: elfnn-aarch64.c
     59   1.9       rin 	${_MKTARGET_CREATE}
     60   1.9       rin 	${TOOL_SED} -e s/NN/32/g < $> > $@
     61   1.9       rin 
     62   1.7  christos elf64-aarch64.c: elfnn-aarch64.c
     63   1.7  christos 	${_MKTARGET_CREATE}
     64   1.7  christos 	${TOOL_SED} -e s/NN/64/g < $> > $@
     65   1.7  christos 
     66   1.1  christos peigen.c: peXXigen.c
     67   1.1  christos 	${_MKTARGET_CREATE}
     68   1.1  christos 	${TOOL_SED} -e s/XX/pe/g < $> > $@
     69   1.1  christos 
     70   1.1  christos pex64igen.c: peXXigen.c
     71   1.1  christos 	${_MKTARGET_CREATE}
     72   1.1  christos 	${TOOL_SED} -e s/XX/pex64/g < $> > $@
     73