Home | History | Annotate | Line # | Download | only in libgnulib
Makefile revision 1.1.1.1.2.1
      1  1.1.1.1.2.1  perseant #	$NetBSD: Makefile,v 1.1.1.1.2.1 2025/08/02 05:49:03 perseant Exp $
      2          1.1  christos 
      3          1.1  christos NOCTF=
      4          1.1  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=		gnulib
     12          1.1  christos GDBARCHDIR=	${.CURDIR}/arch/${GDB_MACHINE_ARCH}
     13          1.1  christos 
     14          1.1  christos .include "${GDBARCHDIR}/defs.mk"
     15          1.1  christos 
     16  1.1.1.1.2.1  perseant SRCS=		${G_OBJS:.o=.c} ${G_OBJECTS:S/libgnu_a-//:.o=.c}
     17  1.1.1.1.2.1  perseant SRCS+=		free.c memchr.c fcntl.c glob.c globfree.c scratch_buffer_grow.c
     18  1.1.1.1.2.1  perseant SRCS+=		getcwd.c canonicalize-lgpl.c openat.c readlink.c cloexec.c
     19  1.1.1.1.2.1  perseant SRCS+=		scratch_buffer_set_array_size.c scratch_buffer_dupfree.c
     20  1.1.1.1.2.1  perseant SRCS+=		scratch_buffer_grow_preserve.c strerror_r.c fdopendir.c
     21  1.1.1.1.2.1  perseant SRCS+=		rawmemchr.c strerror-override.c
     22          1.1  christos GCPPFLAGS=	${G_INTERNAL_CFLAGS}
     23          1.1  christos CPPFLAGS+=	-I${.CURDIR} \
     24          1.1  christos 		-I${GDBARCHDIR}/gnulib \
     25          1.1  christos 		-I${GDBARCHDIR}/gnulib/import \
     26          1.1  christos 		-I${DIST} \
     27          1.1  christos 		-I${DIST}/gnulib \
     28          1.1  christos 		-I${DIST}/gnulib/import \
     29          1.1  christos 		-I${DIST}/bfd \
     30          1.1  christos 		-I${DIST}/include \
     31          1.1  christos 		-Dsighandler_t=sig_t \
     32          1.1  christos 		-DTARGET_SYSTEM_ROOT=\"\" \
     33          1.1  christos 		-DTARGET_SYSTEM_ROOT_RELOCATABLE=0 \
     34          1.1  christos 		-DBINDIR=\"${BINDIR}\" \
     35          1.1  christos 		${GCPPFLAGS:M-D*}
     36          1.1  christos 
     37          1.1  christos CWARNFLAGS.clang+=	-Wno-switch
     38          1.1  christos 
     39          1.1  christos .include "../../Makefile.inc"
     40          1.1  christos .include <bsd.lib.mk>
     41          1.1  christos 
     42          1.1  christos CFLAGS:=		${CFLAGS} -std=gnu11 -Wno-error=stack-protector
     43          1.1  christos 
     44          1.1  christos .PATH: ${DIST}/gnulib/import ${DIST}/gnulib/import/glthread \
     45          1.1  christos     ${DIST}/gnulib/import/malloc ${GDBARCHDIR}
     46