etc/protocols - sync with NetBSD-8
[minix.git] / external / gpl3 / gcc / lib / libgomp / Makefile
blob16e216c32f99605956131522f55cbfe786aaed7a
1 # $NetBSD: Makefile,v 1.13 2014/06/04 19:07:22 tron Exp $
3 # build GCC's libgomp, so that -fopenmp works.
5 # XXX
6 NOLINT= # defined
8 .include <bsd.own.mk>
10 .if !defined(NO_LIBGOMP) # {
12 DIST= ${GCCDIST}
14 LIB= gomp
15 SRCS= \
16 alloc.c \
17 barrier.c \
18 critical.c \
19 env.c \
20 error.c \
21 iter.c \
22 iter_ull.c \
23 loop.c \
24 loop_ull.c \
25 ordered.c \
26 parallel.c \
27 sections.c \
28 single.c \
29 task.c \
30 team.c \
31 work.c \
32 lock.c \
33 mutex.c \
34 proc.c \
35 sem.c \
36 bar.c \
37 ptrlock.c \
38 time.c \
39 fortran.c \
40 affinity.c
42 GOMP_MACHINE_ARCH?= ${MACHINE_ARCH:S/earmv5/earm/}
43 ARCHDIR= ${.CURDIR}/arch/${GOMP_MACHINE_ARCH}
45 CPPFLAGS+= \
46 -DHAVE_CONFIG_H \
47 -I${DIST}/libgomp \
48 -I${DIST}/libgomp/config/posix \
49 -I${DIST}/libgcc \
50 -I${ARCHDIR}
51 CFLAGS+=-pthread
53 CWARNFLAGS.clang+= -Wno-conversion
55 # libgomp is 1.0 is in GCC 4.5, and 1.1 in 4.8 since it added more symbols
56 SHLIB_MAJOR= 1
57 SHLIB_MINOR= 1
59 LDFLAGS+= -Wl,--version-script,${DIST}/libgomp/libgomp.map
61 .if ${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH:S/earmv5/earm/}
62 # This is where GCC looks for it.
63 FILES= libgomp.spec
64 FILESDIR= ${LIBDIR}
66 INCS= omp.h
67 INCSDIR= /usr/include/gcc-4.8
68 .endif
70 .else # } else {
71 libinstall::
72 .endif # }
74 .include <bsd.lib.mk>
76 COPTS+= -Wno-stack-protector
78 .PATH: ${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix