Home | History | Annotate | Line # | Download | only in libgdb
      1  1.17  christos #	$NetBSD: Makefile,v 1.17 2026/03/13 22:09:40 christos Exp $
      2   1.9  christos 
      3   1.9  christos NOCTF=
      4   1.9  christos HOSTPROG_CXX=   1
      5   1.1  christos 
      6   1.1  christos .include <bsd.own.mk>
      7   1.1  christos 
      8   1.1  christos .include "../Makefile.inc"
      9   1.1  christos 
     10   1.1  christos LIBISPRIVATE=	yes
     11   1.1  christos LIB=		gdb
     12   1.1  christos GDBARCHDIR=	${.CURDIR}/arch/${GDB_MACHINE_ARCH}
     13   1.1  christos 
     14   1.1  christos .include "${GDBARCHDIR}/defs.mk"
     15  1.15  christos .include "${NETBSDSRCDIR}/external/lgpl3/gmp/Makefile.arch"
     16   1.1  christos 
     17  1.15  christos 
     18  1.15  christos SRCS=		${G_LIBGDB_OBS:.o=.c}
     19  1.15  christos SRCS+=		dwarf2-frame.c netbsd-nat-low.c target-low.c
     20   1.1  christos GCPPFLAGS=	${G_INTERNAL_CFLAGS}
     21   1.1  christos CPPFLAGS+=	-I${.CURDIR} \
     22   1.1  christos 		-I${GDBARCHDIR} \
     23  1.16  christos 		-I${MPFRDIR}/dist/src \
     24  1.14  christos 		-I${DIST} \
     25   1.1  christos 		-I${DIST}/gdb \
     26  1.14  christos 		-I${DIST}/gdbsupport \
     27   1.1  christos 		-I${DIST}/gdb/config \
     28  1.14  christos 		-I${DIST}/gnulib/import \
     29   1.1  christos 		-I${DIST}/include/opcode \
     30  1.14  christos 		-I${DIST}/readline \
     31   1.1  christos 		-I${DIST}/libdecnumber \
     32  1.15  christos 		-I${DIST}/libbacktrace \
     33  1.14  christos 		-I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH} \
     34  1.14  christos 		-I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib/import \
     35  1.15  christos 		-I${.CURDIR}/../libbacktrace/arch/${GDB_MACHINE_ARCH} \
     36  1.14  christos 		-I${.CURDIR}/../libgdbsupport/arch/${GDB_MACHINE_ARCH} \
     37   1.1  christos 		-I${.CURDIR}/../libbfd/arch/${GDB_MACHINE_ARCH} \
     38   1.1  christos 		-I${.CURDIR}/../libdecnumber/arch/${GDB_MACHINE_ARCH} \
     39   1.1  christos 		-I${DIST}/bfd \
     40   1.1  christos 		-I${DIST}/include \
     41  1.15  christos 		-I${GMPDIR}/arch/${GMP_MACHINE_ARCH} \
     42  1.16  christos 		-include ${DIST}/gdb/defs.h \
     43   1.7  christos 		-Dsighandler_t=sig_t \
     44   1.1  christos 		-DTARGET_SYSTEM_ROOT=\"\" \
     45   1.1  christos 		-DTARGET_SYSTEM_ROOT_RELOCATABLE=0 \
     46   1.1  christos 		-DBINDIR=\"${BINDIR}\" \
     47  1.15  christos 		${GCPPFLAGS:M-D*} -D__STDC_ISO_10646__
     48   1.1  christos 
     49   1.1  christos CWARNFLAGS.clang+=	-Wno-switch
     50   1.1  christos 
     51   1.1  christos .include "../../Makefile.inc"
     52   1.1  christos .include <bsd.lib.mk>
     53   1.1  christos 
     54   1.9  christos # Force c++
     55   1.9  christos CWARNFLAGS.clang+=	-Wno-deprecated
     56   1.9  christos HOST_CC:=		${HOST_CXX}
     57  1.14  christos HOST_CFLAGS+=		${HOST_CXXFLAGS}
     58   1.9  christos CC:=			${CXX}
     59  1.14  christos CFLAGS:=		${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector
     60   1.9  christos 
     61   1.7  christos .PATH: ${DIST}/gdb ${DIST}/gdb/arch ${DIST}/gdb/mi ${DIST}/gdb/cli  \
     62   1.7  christos     ${DIST}/gdb/tui ${DIST}/gdb/python ${DIST}/gdb/common ${DIST}/gdb/target \
     63   1.9  christos     ${DIST}/gdb/nat ${DIST}/gdb/guile ${DIST}/gdb/compile ${DIST}/gdb/doc \
     64  1.14  christos     ${DIST}/gdb/dwarf2 ${DIST}/gdb/unittests \
     65   1.9  christos     ${GDBARCHDIR}
     66   1.1  christos 
     67   1.1  christos #
     68   1.1  christos 
     69   1.1  christos ada-exp.c: ada-lex.c
     70   1.1  christos 
     71   1.2       mrg # These are generated by implicit rules and are not easy to generate
     72   1.2       mrg CLEANDIRFILES+= \
     73   1.2       mrg 	ada-exp.c ada-lex.c \
     74   1.2       mrg 	c-exp.c \
     75   1.6  christos 	d-exp.c \
     76   1.2       mrg 	cp-name-parser.c \
     77   1.2       mrg 	f-exp.c \
     78   1.2       mrg 	go-exp.c \
     79   1.2       mrg 	jv-exp.c \
     80   1.2       mrg 	m2-exp.c \
     81   1.9  christos 	p-exp.c \
     82   1.9  christos 	rust-exp.c
     83  1.10  christos 
     84  1.10  christos # corelow.c
     85  1.10  christos CWARNFLAGS.gcc+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=alloca-larger-than= :}
     86