1 # $NetBSD: Makefile.inc,v 1.16 2025/11/16 08:55:17 mrg Exp $ 2 3 USE_LIBEDIT=no 4 USE_TUI=yes 5 BINDIR=/usr/bin 6 WARNS?= 0 7 CPPFLAGS+= -D_KERNTYPES 8 GMPDIR= ${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp 9 MPFRDIR= ${NETBSDSRCDIR}/external/lgpl3/mpfr 10 11 .include "Makefile.gdb_arch" 12 13 CWARNFLAGS.clang+= -Wno-unused-value -Wno-conversion \ 14 -Wno-switch-enum -Wno-parentheses -Wno-comment \ 15 -Wno-format-security \ 16 -Wno-tautological-compare -Wno-format-extra-args \ 17 -Wno-string-plus-int 18 19 COPTS+= -fcommon 20 21 DIST:= ${.PARSEDIR}/dist 22 23 # Reduce debugging for these extremely large objects. 24 .if ${MKDEBUG:Uno} != "no" 25 CXXFLAGS+= -g1 26 .endif 27 28 # Enable tas.b usage for __atomic_test_and_set(). 29 .include <bsd.own.mk> 30 31 .if ${MACHINE_CPU} == "sh3" 32 CFLAGS+= -mtas 33 .endif 34