Home | History | Annotate | Line # | Download | only in libgomp
Makefile revision 1.7
      1  1.7  nonaka #	$NetBSD: Makefile,v 1.7 2012/02/23 11:05:02 nonaka 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.4     mrg 
     10  1.4     mrg .if !defined(NO_LIBGOMP)	# {
     11  1.4     mrg 
     12  1.1     mrg DIST=	${NETBSDSRCDIR}/external/gpl3/gcc/dist
     13  1.1     mrg 
     14  1.1     mrg LIB=	gomp
     15  1.1     mrg SRCS= \
     16  1.1     mrg 	alloc.c \
     17  1.1     mrg 	barrier.c \
     18  1.1     mrg 	critical.c \
     19  1.1     mrg 	env.c \
     20  1.1     mrg 	error.c \
     21  1.1     mrg 	iter.c \
     22  1.1     mrg 	iter_ull.c \
     23  1.1     mrg 	loop.c \
     24  1.1     mrg 	loop_ull.c \
     25  1.1     mrg 	ordered.c \
     26  1.1     mrg 	parallel.c \
     27  1.1     mrg 	sections.c \
     28  1.1     mrg 	single.c \
     29  1.1     mrg 	task.c \
     30  1.1     mrg 	team.c \
     31  1.1     mrg 	work.c \
     32  1.1     mrg 	lock.c \
     33  1.1     mrg 	mutex.c \
     34  1.1     mrg 	proc.c \
     35  1.1     mrg 	sem.c \
     36  1.1     mrg 	bar.c \
     37  1.1     mrg 	ptrlock.c \
     38  1.1     mrg 	time.c \
     39  1.1     mrg 	fortran.c \
     40  1.1     mrg 	affinity.c
     41  1.1     mrg 
     42  1.2     mrg GOMP_MACHINE_ARCH?=	${MACHINE_ARCH}
     43  1.3     mrg ARCHDIR=		${.CURDIR}/arch/${GOMP_MACHINE_ARCH}
     44  1.2     mrg 
     45  1.1     mrg CPPFLAGS+= \
     46  1.1     mrg 	-DHAVE_CONFIG_H \
     47  1.1     mrg 	-I${DIST}/libgomp \
     48  1.1     mrg 	-I${DIST}/libgomp/config/posix \
     49  1.1     mrg 	-I${DIST}/libgcc \
     50  1.3     mrg 	-I${ARCHDIR}
     51  1.1     mrg CFLAGS+=-pthread
     52  1.1     mrg 
     53  1.6   joerg CWARNFLAGS.clang+=	-Wno-conversion
     54  1.6   joerg 
     55  1.1     mrg # libgomp.so.1.0 is in GCC 4.5.
     56  1.1     mrg SHLIB_MAJOR=	1
     57  1.1     mrg SHLIB_MINOR=	0
     58  1.1     mrg 
     59  1.1     mrg LDFLAGS+=	-Wl,--version-script,${DIST}/libgomp/libgomp.map
     60  1.1     mrg 
     61  1.3     mrg .PATH:	${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix
     62  1.1     mrg 
     63  1.3     mrg .if ${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH}
     64  1.3     mrg # This is where GCC looks for it.
     65  1.3     mrg FILES=		libgomp.spec
     66  1.3     mrg FILESDIR=	${LIBDIR}
     67  1.4     mrg 
     68  1.4     mrg INCS=		omp.h
     69  1.4     mrg INCSDIR=	/usr/include/gcc-4.5
     70  1.3     mrg .endif
     71  1.3     mrg 
     72  1.7  nonaka .else			# } else {
     73  1.7  nonaka libinstall::
     74  1.4     mrg .endif			# }
     75  1.4     mrg 
     76  1.4     mrg .include <bsd.lib.mk>
     77  1.5    tron 
     78  1.5    tron COPTS+=	-Wno-stack-protector
     79