f39bffc62c
Aligns the build with the FreeBSD traditional approach to not build in contrib/, and to track inter-dependencies between libraries. With help from: bdrewery Reviewed by: bdrewery, hselasky Sponsored by: Mellanox Technologies MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D15648
13 lines
304 B
Makefile
13 lines
304 B
Makefile
# $FreeBSD$
|
|
|
|
_spath= ${SRCTOP}/contrib/ofed/infiniband-diags
|
|
.PATH: ${_spath}/src ${_spath}/man
|
|
|
|
BINDIR?= /usr/bin
|
|
SRCS+= ibdiag_common.c ibdiag_sa.c
|
|
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
|
|
CFLAGS+= -DHAVE_CONFIG_H=1
|
|
CFLAGS+= -I${_spath} -I${_spath}/src
|
|
LIBADD+= osmcomp ibmad ibumad
|
|
|