head	1.2;
access;
symbols
	netbsd-11-0-RC4:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.4
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.1
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.2
	perseant-exfatfs-base:1.2
	netbsd-10-0-RELEASE:1.1
	netbsd-10-0-RC6:1.1
	netbsd-10-0-RC5:1.1
	netbsd-10-0-RC4:1.1
	netbsd-10-0-RC3:1.1
	netbsd-10-0-RC2:1.1
	netbsd-10-0-RC1:1.1
	netbsd-10:1.1.0.6
	netbsd-10-base:1.1
	cjep_sun2x-base1:1.1
	cjep_sun2x:1.1.0.4
	cjep_sun2x-base:1.1
	cjep_staticlib_x-base1:1.1
	cjep_staticlib_x:1.1.0.2
	cjep_staticlib_x-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2023.07.31.17.02.09;	author christos;	state Exp;
branches;
next	1.1;
commitid	oHnmKHouynNnCYyE;

1.1
date	2020.09.17.16.36.39;	author christos;	state Exp;
branches;
next	;
commitid	vwJfeVcWA2Uj9qoC;


desc
@@


1.2
log
@Merge gdb-13.2; last was 11.0.50. Builds but does not run.
@
text
@#	$NetBSD: Makefile,v 1.1 2020/09/17 16:36:39 christos Exp $

NOCTF=
#HOSTPROG_CXX=   1

.include <bsd.own.mk>

.include "../Makefile.inc"

LIBISPRIVATE=	yes
LIB=		gnulib
GDBARCHDIR=	${.CURDIR}/arch/${GDB_MACHINE_ARCH}

.include "${GDBARCHDIR}/defs.mk"

SRCS=		${G_OBJS:.o=.c} ${G_OBJECTS:S/libgnu_a-//:.o=.c}
SRCS+=		free.c memchr.c fcntl.c glob.c globfree.c scratch_buffer_grow.c
SRCS+=		getcwd.c canonicalize-lgpl.c openat.c readlink.c cloexec.c
SRCS+=		scratch_buffer_set_array_size.c scratch_buffer_dupfree.c
SRCS+=		scratch_buffer_grow_preserve.c strerror_r.c fdopendir.c
SRCS+=		rawmemchr.c strerror-override.c
GCPPFLAGS=	${G_INTERNAL_CFLAGS}
CPPFLAGS+=	-I${.CURDIR} \
		-I${GDBARCHDIR}/gnulib \
		-I${GDBARCHDIR}/gnulib/import \
		-I${DIST} \
		-I${DIST}/gnulib \
		-I${DIST}/gnulib/import \
		-I${DIST}/bfd \
		-I${DIST}/include \
		-Dsighandler_t=sig_t \
		-DTARGET_SYSTEM_ROOT=\"\" \
		-DTARGET_SYSTEM_ROOT_RELOCATABLE=0 \
		-DBINDIR=\"${BINDIR}\" \
		${GCPPFLAGS:M-D*}

CWARNFLAGS.clang+=	-Wno-switch

.include "../../Makefile.inc"
.include <bsd.lib.mk>

CFLAGS:=		${CFLAGS} -std=gnu11 -Wno-error=stack-protector

.PATH: ${DIST}/gnulib/import ${DIST}/gnulib/import/glthread \
    ${DIST}/gnulib/import/malloc ${GDBARCHDIR}
@


1.1
log
@Add new libraries, adjust old ones
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2020/09/17 02:17:52 christos Exp $
d16 6
a21 1
SRCS=		${G_OBJS:.o=.c} ${G_OBJECTS:.o=.c}
a41 5
# Force c++
#CWARNFLAGS.clang+=	-Wno-deprecated
#HOST_CC:=		${HOST_CXX}
#CC:=			${CXX}
#CFLAGS:=		${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
@

