30 lines
637 B
Makefile
30 lines
637 B
Makefile
# $NetBSD: Makefile.inc,v 1.3 2018/07/17 18:56:58 joerg Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
DIST= ${NETBSDSRCDIR}/external/bsd/elftosb/dist
|
|
|
|
.PATH: ${DIST}/common
|
|
|
|
LIBELFTOSBOBJDIR!= cd ${DIST}/../lib && ${PRINTOBJDIR}
|
|
|
|
.ifndef HOSTPROG
|
|
DPADD+= ${LIBELFTOSBOBJDIR}/libelftosb.a
|
|
LDADD+= -L${LIBELFTOSBOBJDIR} -lelftosb
|
|
.endif
|
|
|
|
CPPFLAGS+= -I${DIST}/common
|
|
CPPFLAGS+= -I${DIST}/elftosb2
|
|
CPPFLAGS+= -DLinux
|
|
CXXFLAGS+= -std=gnu++03
|
|
|
|
CWARNFLAGS+= -Wno-multichar
|
|
CWARNFLAGS.clang+= -Wno-switch -Wno-error=delete-non-virtual-dtor \
|
|
-Wno-bitwise-op-parentheses -Wno-parentheses \
|
|
-Wno-tautological-compare
|
|
|
|
LIBISCXX= yes
|
|
|
|
BINDIR= /usr/sbin
|
|
|