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