1 # $NetBSD: Makefile,v 1.1 2011/09/20 02:28:03 mrg Exp $ 2 3 # build GCC's libgomp, so that -fopenmp works. 4 5 .include <bsd.own.mk> 6 DIST= ${NETBSDSRCDIR}/external/gpl3/gcc/dist 7 8 LIB= gomp 9 SRCS= \ 10 alloc.c \ 11 barrier.c \ 12 critical.c \ 13 env.c \ 14 error.c \ 15 iter.c \ 16 iter_ull.c \ 17 loop.c \ 18 loop_ull.c \ 19 ordered.c \ 20 parallel.c \ 21 sections.c \ 22 single.c \ 23 task.c \ 24 team.c \ 25 work.c \ 26 lock.c \ 27 mutex.c \ 28 proc.c \ 29 sem.c \ 30 bar.c \ 31 ptrlock.c \ 32 time.c \ 33 fortran.c \ 34 affinity.c 35 36 CPPFLAGS+= \ 37 -DHAVE_CONFIG_H \ 38 -I${DIST}/libgomp \ 39 -I${DIST}/libgomp/config/posix \ 40 -I${DIST}/libgcc \ 41 -I${.CURDIR}/arch/${MACHINE_ARCH} 42 CFLAGS+=-pthread 43 44 # This is where GCC looks for it. 45 FILES= libgomp.spec 46 FILESDIR= ${LIBDIR} 47 48 # libgomp.so.1.0 is in GCC 4.5. 49 SHLIB_MAJOR= 1 50 SHLIB_MINOR= 0 51 52 LDFLAGS+= -Wl,--version-script,${DIST}/libgomp/libgomp.map 53 54 .PATH: ${DIST}/libgomp ${DIST}/libgomp/config/posix 55 56 .include <bsd.lib.mk> 57