Makefile revision 1.11
1# $NetBSD: Makefile,v 1.11 2019/09/26 08:03:36 mrg Exp $ 2 3# build GCC's libgomp, so that -fopenmp works. 4 5# XXX 6NOLINT= # defined 7 8.include <bsd.own.mk> 9 10.if !defined(NO_LIBGOMP) # { 11 12DIST= ${GCCDIST} 13 14 15LIB= gomp 16 17.include "${.CURDIR}/defs.mk" 18SRCS= ${G_libgomp_la_SOURCES} 19 20GOMP_MACHINE_ARCH?= ${MACHINE_ARCH:S/earmv5/earm/} 21ARCHDIR= ${.CURDIR}/arch/${GOMP_MACHINE_ARCH} 22 23CPPFLAGS+= \ 24 -DHAVE_CONFIG_H \ 25 -I${DIST}/libgomp \ 26 -I${DIST}/libgomp/config/posix \ 27 -I${DIST}/libgcc \ 28 -I${DIST}/include \ 29 -I${ARCHDIR} 30CFLAGS+=-pthread 31 32CWARNFLAGS.clang+= -Wno-conversion 33 34SHLIB_MAJOR= 2 35SHLIB_MINOR= 0 36 37LDFLAGS+= -Wl,--version-script,${DIST}/libgomp/libgomp.map 38 39.if ${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH:S/earmv5/earm/} 40# This is where GCC looks for it. 41FILES= libgomp.spec 42FILESDIR= ${LIBDIR} 43 44INCS= omp.h openacc.h 45INCSDIR= ${GCC_INCSDIR} 46.endif 47 48.else # } else { 49libinstall:: 50.endif # } 51 52.include <bsd.lib.mk> 53 54COPTS+= -Wno-stack-protector -Wno-missing-prototypes 55COPTS.oacc-mem.c+= -Wno-pointer-arith 56 57COPTS.lock.c+= -Wno-error=incompatible-pointer-types 58COPTS.target.c+= -Wno-error=pointer-arith 59 60.PATH: ${DIST}/libgomp/config/posix 61.PATH: ${ARCHDIR} ${DIST}/libgomp 62