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 19THRLIB= ${.OBJDIR}/../../../../lib/libpthread/libpthread.so 20LDADD+= ${THRLIB} 21DPADD+= ${THRLIB} 22 23# From libgomp Makefile 24libgomp_la_SOURCES = alloc.c barrier.c critical.c env.c error.c iter.c \ 25 iter_ull.c loop.c loop_ull.c ordered.c parallel.c sections.c single.c \ 26 task.c team.c work.c lock.c mutex.c proc.c sem.c bar.c ptrlock.c \ 27 time.c fortran.c affinity.c 28 29SRCS= ${libgomp_la_SOURCES} 30 31# generated 32SRCS+= libgomp_f.h 33 34libgomp_f.h: ${GCCDIR}/libgomp/libgomp_f.h.in 35 sed -e 's/@OMP_LOCK_25_ALIGN@/${OMP_LOCK_25_ALIGN}/g' \ 36 -e 's/@OMP_LOCK_25_KIND@/${OMP_LOCK_25_KIND}/g' \ 37 -e 's/@OMP_LOCK_25_SIZE@/${OMP_LOCK_25_SIZE}/g' \ 38 -e 's/@OMP_LOCK_ALIGN@/${OMP_LOCK_ALIGN}/g' \ 39 -e 's/@OMP_LOCK_KIND@/${OMP_LOCK_KIND}/g' \ 40 -e 's/@OMP_LOCK_SIZE@/${OMP_LOCK_SIZE}/g' \ 41 -e 's/@OMP_NEST_LOCK_25_ALIGN@/${OMP_NEST_LOCK_25_ALIGN}/g' \ 42 -e 's/@OMP_NEST_LOCK_25_KIND@/${OMP_NEST_LOCK_25_KIND}/g' \ 43 -e 's/@OMP_NEST_LOCK_25_SIZE@/${OMP_NEST_LOCK_25_SIZE}/g' \ 44 -e 's/@OMP_NEST_LOCK_ALIGN@/${OMP_NEST_LOCK_ALIGN}/g' \ 45 -e 's/@OMP_NEST_LOCK_KIND@/${OMP_NEST_LOCK_KIND}/g' \ 46 -e 's/@OMP_NEST_LOCK_SIZE@/${OMP_NEST_LOCK_SIZE}/g' \ 47 < ${.ALLSRC} > ${.TARGET} 48 49omp.h: ${GCCDIR}/libgomp/omp.h.in 50 sed -e 's/@OMP_LOCK_SIZE@/${OMP_LOCK_SIZE}/g' \ 51 -e 's/@OMP_LOCK_ALIGN@/${OMP_LOCK_ALIGN}/g' \ 52 -e 's/@OMP_NEST_LOCK_SIZE@/${OMP_NEST_LOCK_SIZE}/g' \ 53 -e 's/@OMP_NEST_LOCK_ALIGN@/${OMP_NEST_LOCK_ALIGN}/g' \ 54 < ${.ALLSRC} > ${.TARGET} 55 56INCSGROUPS= hd_libdata hd_lib 57hd_libdataDIR= /usr/libdata/gcc${GCCSHORTVER} 58hd_libDIR= /usr/lib/gcc${GCCSHORTVER} 59 60hd_libdata= omp.h 61hd_lib= libgomp.spec 62 63CLEANFILES+= libgomp_f.h omp.h 64 65.include <bsd.lib.mk> 66