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