Merge branch 'vendor/OPENSSL'
[dragonfly.git] / gnu / lib / gcc47 / libgomp / Makefile
1 CFLAGS+=        -I${.CURDIR}
2 CFLAGS+=        -I${.OBJDIR}
3 .include "../Makefile.inc"
4 .include "Makefile.${TARGET_ARCH}"
5
6 .PATH: ${GCCDIR}/libgomp
7 .PATH: ${GCCDIR}/libgomp/config/bsd
8 .PATH: ${GCCDIR}/libgomp/config/posix
9
10 CFLAGS+=        -DHAVE_CONFIG_H
11 CFLAGS+=        -I${GCCDIR}/libgomp
12 CFLAGS+=        -I${GCCDIR}/libgomp/config/posix
13 CFLAGS+=        -I${GCCDIR}/libgcc
14 LDFLAGS+=       -Wl,--version-script=${GCCDIR}/libgomp/libgomp.map
15
16 LIB=            gomp
17 SHLIB_MAJOR=    1
18
19 LDADD=          -pthread
20 DPADD=          ${LIBPTHREAD}
21
22 # From libgomp Makefile
23 libgomp_la_SOURCES = alloc.c barrier.c critical.c env.c error.c iter.c \
24         iter_ull.c loop.c loop_ull.c ordered.c parallel.c sections.c single.c \
25         task.c team.c work.c lock.c mutex.c proc.c sem.c bar.c ptrlock.c \
26         time.c fortran.c affinity.c
27
28 SRCS=   ${libgomp_la_SOURCES}
29
30 # generated
31 SRCS+=  libgomp_f.h
32
33 libgomp_f.h: ${GCCDIR}/libgomp/libgomp_f.h.in
34         sed -e 's/@OMP_LOCK_25_ALIGN@/${OMP_LOCK_25_ALIGN}/g' \
35             -e 's/@OMP_LOCK_25_KIND@/${OMP_LOCK_25_KIND}/g' \
36             -e 's/@OMP_LOCK_25_SIZE@/${OMP_LOCK_25_SIZE}/g' \
37             -e 's/@OMP_LOCK_ALIGN@/${OMP_LOCK_ALIGN}/g' \
38             -e 's/@OMP_LOCK_KIND@/${OMP_LOCK_KIND}/g' \
39             -e 's/@OMP_LOCK_SIZE@/${OMP_LOCK_SIZE}/g' \
40             -e 's/@OMP_NEST_LOCK_25_ALIGN@/${OMP_NEST_LOCK_25_ALIGN}/g' \
41             -e 's/@OMP_NEST_LOCK_25_KIND@/${OMP_NEST_LOCK_25_KIND}/g' \
42             -e 's/@OMP_NEST_LOCK_25_SIZE@/${OMP_NEST_LOCK_25_SIZE}/g' \
43             -e 's/@OMP_NEST_LOCK_ALIGN@/${OMP_NEST_LOCK_ALIGN}/g' \
44             -e 's/@OMP_NEST_LOCK_KIND@/${OMP_NEST_LOCK_KIND}/g' \
45             -e 's/@OMP_NEST_LOCK_SIZE@/${OMP_NEST_LOCK_SIZE}/g' \
46             < ${.ALLSRC} > ${.TARGET}
47
48 omp.h: ${GCCDIR}/libgomp/omp.h.in
49         sed -e 's/@OMP_LOCK_SIZE@/${OMP_LOCK_SIZE}/g' \
50             -e 's/@OMP_LOCK_ALIGN@/${OMP_LOCK_ALIGN}/g' \
51             -e 's/@OMP_NEST_LOCK_SIZE@/${OMP_NEST_LOCK_SIZE}/g' \
52             -e 's/@OMP_NEST_LOCK_ALIGN@/${OMP_NEST_LOCK_ALIGN}/g' \
53             < ${.ALLSRC} > ${.TARGET}
54
55 INCSGROUPS=     hd_libdata hd_lib
56 hd_libdataDIR=  /usr/libdata/gcc${GCCSHORTVER}
57 hd_libDIR=      /usr/lib/gcc${GCCSHORTVER}
58
59 hd_libdata=     omp.h
60 hd_lib=         libgomp.spec
61
62 CLEANFILES+=    libgomp_f.h omp.h
63
64 .include <bsd.lib.mk>