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