3 .include "../Makefile.inc"
4 .include "Makefile.${TARGET_ARCH}"
6 .PATH: ${GCCDIR}/libgomp
7 .PATH: ${GCCDIR}/libgomp/config/bsd
8 .PATH: ${GCCDIR}/libgomp/config/posix
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
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
28 SRCS= ${libgomp_la_SOURCES}
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}
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}
55 INCSGROUPS= hd_libdata hd_lib
56 hd_libdataDIR= /usr/libdata/gcc${GCCSHORTVER}
57 hd_libDIR= /usr/lib/gcc${GCCSHORTVER}
62 CLEANFILES+= libgomp_f.h omp.h