Home | History | Annotate | Line # | Download | only in libgomp
Makefile revision 1.30
      1  1.30       mrg #	$NetBSD: Makefile,v 1.30 2026/10/19 22:59:50 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.25     joerg UNSUPPORTED_COMPILER.clang=	# defined
      9  1.25     joerg 
     10   1.1       mrg .include <bsd.own.mk>
     11   1.4       mrg 
     12   1.4       mrg .if !defined(NO_LIBGOMP)	# {
     13   1.4       mrg 
     14  1.12       mrg DIST=	${GCCDIST}
     15   1.1       mrg 
     16  1.23       mrg 
     17   1.1       mrg LIB=	gomp
     18  1.15       mrg 
     19  1.23       mrg .include "${.CURDIR}/defs.mk"
     20  1.23       mrg SRCS=	${G_libgomp_la_SOURCES}
     21   1.1       mrg 
     22   1.8      matt GOMP_MACHINE_ARCH?=	${MACHINE_ARCH:S/earmv5/earm/}
     23   1.3       mrg ARCHDIR=		${.CURDIR}/arch/${GOMP_MACHINE_ARCH}
     24   1.2       mrg 
     25   1.1       mrg CPPFLAGS+= \
     26   1.1       mrg 	-DHAVE_CONFIG_H \
     27   1.1       mrg 	-I${DIST}/libgomp \
     28   1.1       mrg 	-I${DIST}/libgomp/config/posix \
     29   1.1       mrg 	-I${DIST}/libgcc \
     30  1.15       mrg 	-I${DIST}/include \
     31   1.3       mrg 	-I${ARCHDIR}
     32   1.1       mrg CFLAGS+=-pthread
     33   1.1       mrg 
     34  1.22       mrg SHLIB_MAJOR=	2
     35  1.28       mrg SHLIB_MINOR=	3
     36   1.1       mrg 
     37   1.1       mrg LDFLAGS+=	-Wl,--version-script,${DIST}/libgomp/libgomp.map
     38   1.1       mrg 
     39  1.30       mrg # This is to avoid installing more than one copy of these files
     40  1.30       mrg # with src/compat subdirs.  For earmv5 and m68ksf, the translation
     41  1.30       mrg # here is necessary.
     42  1.30       mrg .if ${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH:S/earmv5/earm/:S/m68ksf/m68k/}
     43   1.3       mrg # This is where GCC looks for it.
     44   1.3       mrg FILES=		libgomp.spec
     45   1.3       mrg FILESDIR=	${LIBDIR}
     46   1.4       mrg 
     47  1.29       mrg INCS=		${G_nodist_libsubinclude_HEADERS}
     48  1.20       mrg INCSDIR=	${GCC_INCSDIR}
     49   1.3       mrg .endif
     50   1.3       mrg 
     51   1.7    nonaka .else			# } else {
     52   1.7    nonaka libinstall::
     53   1.4       mrg .endif			# }
     54   1.4       mrg 
     55   1.4       mrg .include <bsd.lib.mk>
     56   1.5      tron 
     57  1.16  christos COPTS+=	-Wno-stack-protector -Wno-missing-prototypes
     58  1.16  christos COPTS.oacc-mem.c+= -Wno-pointer-arith
     59  1.13      tron 
     60  1.22       mrg COPTS.lock.c+=		-Wno-error=incompatible-pointer-types
     61  1.22       mrg COPTS.target.c+=	-Wno-error=pointer-arith
     62  1.21       mrg 
     63  1.24       mrg .PATH: ${DIST}/libgomp/config/posix
     64  1.24       mrg .PATH: ${ARCHDIR} ${DIST}/libgomp
     65