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