ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/gnu/lib/libgomp/Makefile
Revision: 10904
Committed: Thu Jun 14 13:25:15 2018 UTC (5 years, 10 months ago) by laffer1
File size: 1759 byte(s)
Log Message:
update config

File Contents

# Content
1 # $MidnightBSD$
2 # $FreeBSD: stable/10/gnu/lib/libgomp/Makefile 283010 2015-05-16 15:44:13Z pfg $
3
4 GCCDIR= ${.CURDIR}/../../../contrib/gcc
5 GCCLIB= ${.CURDIR}/../../../contrib/gcclibs
6 SRCDIR= ${GCCLIB}/libgomp
7
8 .PATH: ${SRCDIR} ${SRCDIR}/config/posix
9
10 LIB= gomp
11 SHLIB_MAJOR= 1
12
13 SRCS= alloc.c barrier.c critical.c env.c \
14 error.c iter.c loop.c ordered.c parallel.c sections.c \
15 single.c team.c work.c lock.c mutex.c proc.c sem.c \
16 bar.c time.c fortran.c affinity.c
17 SRCS+= gstdint.h libgomp_f.h omp.h omp_lib.h
18
19 INCS+= omp.h
20
21 CFLAGS+= -DHAVE_CONFIG_H
22 CFLAGS+= -I${.CURDIR} -I. -I${SRCDIR} -I${SRCDIR}/config/posix
23
24 VERSION_MAP= ${SRCDIR}/libgomp.map
25
26 # Target-specific OpenMP configuration
27 .if ${MACHINE_CPUARCH} == arm || ${MACHINE_CPUARCH} == i386 || \
28 ${MACHINE_ARCH} == powerpc || \
29 (${MACHINE_CPUARCH} == mips && ${MACHINE_ARCH:Mmips64*} == "")
30 OMP_LOCK_ALIGN = 4
31 OMP_LOCK_KIND= 4
32 OMP_LOCK_SIZE= 4
33 OMP_NEST_LOCK_ALIGN= 4
34 OMP_NEST_LOCK_KIND= 8
35 OMP_NEST_LOCK_SIZE= 8
36 .else
37 OMP_LOCK_ALIGN = 8
38 OMP_LOCK_KIND= 8
39 OMP_LOCK_SIZE= 8
40 OMP_NEST_LOCK_ALIGN= 8
41 OMP_NEST_LOCK_KIND= 8
42 OMP_NEST_LOCK_SIZE= 16
43 .endif
44
45 gstdint.h:
46 echo '#include <sys/types.h>' > ${.TARGET}
47 echo '#include <stdint.h>' >> ${.TARGET}
48 CLEANFILES+= gstdint.h
49
50 .for HFILE in libgomp_f.h omp.h omp_lib.h
51 ${HFILE}: ${SRCDIR}/${HFILE}.in ${.CURDIR}/Makefile
52 sed -e 's/@OMP_LOCK_ALIGN@/${OMP_LOCK_ALIGN}/g' \
53 -e 's/@OMP_LOCK_KIND@/${OMP_LOCK_KIND}/g' \
54 -e 's/@OMP_LOCK_SIZE@/${OMP_LOCK_SIZE}/g' \
55 -e 's/@OMP_NEST_LOCK_ALIGN@/${OMP_NEST_LOCK_ALIGN}/g' \
56 -e 's/@OMP_NEST_LOCK_KIND@/${OMP_NEST_LOCK_KIND}/g' \
57 -e 's/@OMP_NEST_LOCK_SIZE@/${OMP_NEST_LOCK_SIZE}/g' \
58 < ${SRCDIR}/${HFILE}.in > ${.TARGET}
59 CLEANFILES+= ${HFILE}
60 .endfor
61
62 .include <bsd.lib.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H