blob: 16e216c32f99605956131522f55cbfe786aaed7a (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# $NetBSD: Makefile,v 1.13 2014/06/04 19:07:22 tron Exp $
# build GCC's libgomp, so that -fopenmp works.
# XXX
NOLINT= # defined
.include <bsd.own.mk>
.if !defined(NO_LIBGOMP) # {
DIST= ${GCCDIST}
LIB= gomp
SRCS= \
alloc.c \
barrier.c \
critical.c \
env.c \
error.c \
iter.c \
iter_ull.c \
loop.c \
loop_ull.c \
ordered.c \
parallel.c \
sections.c \
single.c \
task.c \
team.c \
work.c \
lock.c \
mutex.c \
proc.c \
sem.c \
bar.c \
ptrlock.c \
time.c \
fortran.c \
affinity.c
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${ARCHDIR}
CFLAGS+=-pthread
CWARNFLAGS.clang+= -Wno-conversion
# libgomp is 1.0 is in GCC 4.5, and 1.1 in 4.8 since it added more symbols
SHLIB_MAJOR= 1
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
INCSDIR= /usr/include/gcc-4.8
.endif
.else # } else {
libinstall::
.endif # }
.include <bsd.lib.mk>
COPTS+= -Wno-stack-protector
.PATH: ${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix
|