Makefile revision 1.1.1.1
1# $NetBSD: Makefile,v 1.1.1.1 2023/03/21 16:37:31 christos Exp $ 2 3NOCTF= 4#HOSTPROG_CXX= 1 5 6.include <bsd.own.mk> 7 8.include "../Makefile.inc" 9 10LIBISPRIVATE= yes 11LIB= gnulib 12GDBARCHDIR= ${.CURDIR}/arch/${GDB_MACHINE_ARCH} 13 14.include "${GDBARCHDIR}/defs.mk" 15 16SRCS= ${G_OBJS:.o=.c} ${G_OBJECTS:.o=.c} 17GCPPFLAGS= ${G_INTERNAL_CFLAGS} 18CPPFLAGS+= -I${.CURDIR} \ 19 -I${GDBARCHDIR}/gnulib \ 20 -I${GDBARCHDIR}/gnulib/import \ 21 -I${DIST} \ 22 -I${DIST}/gnulib \ 23 -I${DIST}/gnulib/import \ 24 -I${DIST}/bfd \ 25 -I${DIST}/include \ 26 -Dsighandler_t=sig_t \ 27 -DTARGET_SYSTEM_ROOT=\"\" \ 28 -DTARGET_SYSTEM_ROOT_RELOCATABLE=0 \ 29 -DBINDIR=\"${BINDIR}\" \ 30 ${GCPPFLAGS:M-D*} 31 32CWARNFLAGS.clang+= -Wno-switch 33 34.include "../../Makefile.inc" 35.include <bsd.lib.mk> 36 37# Force c++ 38#CWARNFLAGS.clang+= -Wno-deprecated 39#HOST_CC:= ${HOST_CXX} 40#CC:= ${CXX} 41#CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector 42CFLAGS:= ${CFLAGS} -std=gnu11 -Wno-error=stack-protector 43 44.PATH: ${DIST}/gnulib/import ${DIST}/gnulib/import/glthread \ 45 ${DIST}/gnulib/import/malloc ${GDBARCHDIR} 46