29 lines
613 B
Makefile
29 lines
613 B
Makefile
# $NetBSD: Makefile.inc,v 1.2 2013/11/29 23:02:49 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
|
|
|
|
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
|
|
|