1CFLAGS+= -I${.CURDIR} 2CFLAGS+= -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 10CFLAGS+= -DHAVE_CONFIG_H 11CFLAGS+= -I${GCCDIR}/libgomp 12CFLAGS+= -I${GCCDIR}/libgomp/config/posix 13CFLAGS+= -I${GCCDIR}/libgcc 14LDFLAGS+= -Wl,--version-script=${GCCDIR}/libgomp/libgomp.map 15 16LIB= gomp 17SHLIB_MAJOR= 1 18 19LDADD= -pthread 20DPADD= ${LIBPTHREAD} 21 22# From libgomp Makefile 23libgomp_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 28SRCS= ${libgomp_la_SOURCES} 29 30# generated 31SRCS+= libgomp_f.h 32 33libgomp_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 48omp.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 55INCSGROUPS= hd_libdata hd_lib 56hd_libdataDIR= /usr/libdata/gcc${GCCSHORTVER} 57hd_libDIR= /usr/lib/gcc${GCCSHORTVER} 58 59hd_libdata= omp.h 60hd_lib= libgomp.spec 61 62CLEANFILES+= libgomp_f.h omp.h 63 64.include <bsd.lib.mk> 65