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