Improve CFLAGS definition for clang. Use more tabs.

This commit is contained in:
joerg 2017-12-13 21:52:55 +00:00
parent 388e0209fe
commit e378b48f30
3 changed files with 15 additions and 21 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2017/12/08 14:19:47 rin Exp $
# $NetBSD: Makefile,v 1.15 2017/12/13 21:52:55 joerg Exp $
NOCTF=
.include <bsd.own.mk>
@ -89,12 +89,10 @@ DPADD+= ${LIBEXPAT} ${LIBLZMA} ${LIBZ} ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM
.include <bsd.prog.mk>
# Force c++
HOST_CC:= ${HOST_CXX}
CC:= ${CXX}
CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
.if ${ACTIVE_CC} == "clang"
CFLAGS+= -Wno-deprecated
.endif
CWARNFLAGS.clang+= -Wno-deprecated
HOST_CC:= ${HOST_CXX}
CC:= ${CXX}
CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
.PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${GDB_MACHINE_ARCH}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2017/12/08 14:19:47 rin Exp $
# $NetBSD: Makefile,v 1.12 2017/12/13 21:52:55 joerg Exp $
NOCTF=
.include "../Makefile.inc"
@ -26,12 +26,10 @@ NOMAN= # defined
.include <bsd.prog.mk>
# Force c++
HOST_CC:= ${HOST_CXX}
CC:= ${CXX}
CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
.if ${ACTIVE_CC} == "clang"
CFLAGS+= -Wno-deprecated
.endif
CWARNFLAGS.clang+= -Wno-deprecated
HOST_CC:= ${HOST_CXX}
CC:= ${CXX}
CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
LIBOPCODESDIR!= cd ${.CURDIR}/../../lib/libopcodes && ${PRINTOBJDIR}
LIBBFDDIR!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2017/12/08 14:19:47 rin Exp $
# $NetBSD: Makefile,v 1.19 2017/12/13 21:52:55 joerg Exp $
NOCTF=
HOSTPROG_CXX= 1
@ -55,12 +55,10 @@ CWARNFLAGS.clang+= -Wno-switch
.include <bsd.lib.mk>
# Force c++
HOST_CC:= ${HOST_CXX}
CC:= ${CXX}
CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
.if ${ACTIVE_CC} == "clang"
CFLAGS+= -Wno-deprecated
.endif
CWARNFLAGS.clang+= -Wno-deprecated
HOST_CC:= ${HOST_CXX}
CC:= ${CXX}
CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
.PATH: ${DIST}/gdb ${DIST}/gdb/arch ${DIST}/gdb/mi ${DIST}/gdb/cli \
${DIST}/gdb/tui ${DIST}/gdb/python ${DIST}/gdb/common ${DIST}/gdb/target \