Home | History | Annotate | Line # | Download | only in libgomp
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 2011/09/21 02:12:00 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 GOMP_MACHINE_ARCH?=	${MACHINE_ARCH}
     37 
     38 CPPFLAGS+= \
     39 	-DHAVE_CONFIG_H \
     40 	-I${DIST}/libgomp \
     41 	-I${DIST}/libgomp/config/posix \
     42 	-I${DIST}/libgcc \
     43 	-I${.CURDIR}/arch/${GOMP_MACHINE_ARCH}
     44 CFLAGS+=-pthread
     45 
     46 # This is where GCC looks for it.
     47 FILES=		libgomp.spec
     48 FILESDIR=	${LIBDIR}
     49 
     50 # libgomp.so.1.0 is in GCC 4.5.
     51 SHLIB_MAJOR=	1
     52 SHLIB_MINOR=	0
     53 
     54 LDFLAGS+=	-Wl,--version-script,${DIST}/libgomp/libgomp.map
     55 
     56 .PATH:	${DIST}/libgomp ${DIST}/libgomp/config/posix
     57 
     58 .include <bsd.lib.mk>
     59