xref: /minix/external/gpl3/gcc/lib/libgomp/Makefile (revision 0a6a1f1d)
1*0a6a1f1dSLionel Sambuc#	$NetBSD: Makefile,v 1.13 2014/06/04 19:07:22 tron Exp $
218a5822eSThomas Veerman
318a5822eSThomas Veerman# build GCC's libgomp, so that -fopenmp works.
418a5822eSThomas Veerman
518a5822eSThomas Veerman# XXX
618a5822eSThomas VeermanNOLINT=	# defined
718a5822eSThomas Veerman
818a5822eSThomas Veerman.include <bsd.own.mk>
918a5822eSThomas Veerman
1018a5822eSThomas Veerman.if !defined(NO_LIBGOMP)	# {
1118a5822eSThomas Veerman
12*0a6a1f1dSLionel SambucDIST=	${GCCDIST}
1318a5822eSThomas Veerman
1418a5822eSThomas VeermanLIB=	gomp
1518a5822eSThomas VeermanSRCS= \
1618a5822eSThomas Veerman	alloc.c \
1718a5822eSThomas Veerman	barrier.c \
1818a5822eSThomas Veerman	critical.c \
1918a5822eSThomas Veerman	env.c \
2018a5822eSThomas Veerman	error.c \
2118a5822eSThomas Veerman	iter.c \
2218a5822eSThomas Veerman	iter_ull.c \
2318a5822eSThomas Veerman	loop.c \
2418a5822eSThomas Veerman	loop_ull.c \
2518a5822eSThomas Veerman	ordered.c \
2618a5822eSThomas Veerman	parallel.c \
2718a5822eSThomas Veerman	sections.c \
2818a5822eSThomas Veerman	single.c \
2918a5822eSThomas Veerman	task.c \
3018a5822eSThomas Veerman	team.c \
3118a5822eSThomas Veerman	work.c \
3218a5822eSThomas Veerman	lock.c \
3318a5822eSThomas Veerman	mutex.c \
3418a5822eSThomas Veerman	proc.c \
3518a5822eSThomas Veerman	sem.c \
3618a5822eSThomas Veerman	bar.c \
3718a5822eSThomas Veerman	ptrlock.c \
3818a5822eSThomas Veerman	time.c \
3918a5822eSThomas Veerman	fortran.c \
4018a5822eSThomas Veerman	affinity.c
4118a5822eSThomas Veerman
4284d9c625SLionel SambucGOMP_MACHINE_ARCH?=	${MACHINE_ARCH:S/earmv5/earm/}
4318a5822eSThomas VeermanARCHDIR=		${.CURDIR}/arch/${GOMP_MACHINE_ARCH}
4418a5822eSThomas Veerman
4518a5822eSThomas VeermanCPPFLAGS+= \
4618a5822eSThomas Veerman	-DHAVE_CONFIG_H \
4718a5822eSThomas Veerman	-I${DIST}/libgomp \
4818a5822eSThomas Veerman	-I${DIST}/libgomp/config/posix \
4918a5822eSThomas Veerman	-I${DIST}/libgcc \
5018a5822eSThomas Veerman	-I${ARCHDIR}
5118a5822eSThomas VeermanCFLAGS+=-pthread
5218a5822eSThomas Veerman
5318a5822eSThomas VeermanCWARNFLAGS.clang+=	-Wno-conversion
5418a5822eSThomas Veerman
55*0a6a1f1dSLionel Sambuc# libgomp is 1.0 is in GCC 4.5, and 1.1 in 4.8 since it added more symbols
5618a5822eSThomas VeermanSHLIB_MAJOR=	1
57*0a6a1f1dSLionel SambucSHLIB_MINOR=	1
5818a5822eSThomas Veerman
5918a5822eSThomas VeermanLDFLAGS+=	-Wl,--version-script,${DIST}/libgomp/libgomp.map
6018a5822eSThomas Veerman
6184d9c625SLionel Sambuc.if ${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH:S/earmv5/earm/}
6218a5822eSThomas Veerman# This is where GCC looks for it.
6318a5822eSThomas VeermanFILES=		libgomp.spec
6418a5822eSThomas VeermanFILESDIR=	${LIBDIR}
6518a5822eSThomas Veerman
6618a5822eSThomas VeermanINCS=		omp.h
67*0a6a1f1dSLionel SambucINCSDIR=	/usr/include/gcc-4.8
6818a5822eSThomas Veerman.endif
6918a5822eSThomas Veerman
7018a5822eSThomas Veerman.else			# } else {
7118a5822eSThomas Veermanlibinstall::
7218a5822eSThomas Veerman.endif			# }
7318a5822eSThomas Veerman
7418a5822eSThomas Veerman.include <bsd.lib.mk>
7518a5822eSThomas Veerman
7618a5822eSThomas VeermanCOPTS+=	-Wno-stack-protector
77*0a6a1f1dSLionel Sambuc
78*0a6a1f1dSLionel Sambuc.PATH:	${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix
79