build infrastructure for isl.
This commit is contained in:
parent
9a3e0ce89e
commit
dde872423e
|
@ -0,0 +1,18 @@
|
|||
# $NetBSD: Makefile,v 1.1 2024/02/23 05:33:03 mrg Exp $
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
||||
# We don't install isl, just provide it for GCC.
|
||||
LIBISPRIVATE?= yes
|
||||
|
||||
.if ${LIBISPRIVATE} != "yes"
|
||||
|
||||
INCS= gitversion.h isl_config.h
|
||||
INCSDIR= /usr/include
|
||||
|
||||
.include <bsd.inc.mk>
|
||||
.endif
|
||||
|
||||
SUBDIR= isl
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1 @@
|
|||
#define GIT_HEAD_ID "isl-0.26"
|
|
@ -0,0 +1,21 @@
|
|||
# $NetBSD: Makefile,v 1.1 2024/02/23 05:33:04 mrg Exp $
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
||||
# We don't install isl, just provide it for GCC.
|
||||
LIBISPRIVATE?= yes
|
||||
|
||||
.if ${LIBISPRIVATE} != "yes"
|
||||
|
||||
# Install libisl. Only really used for mknative-gcc.
|
||||
|
||||
INCS= stdint.h
|
||||
INCSDIR= /usr/include/isl
|
||||
|
||||
.BEGIN:
|
||||
-@mkdir -p ${DESTDIR}${INCSDIR}
|
||||
|
||||
.endif
|
||||
|
||||
NOPROG=
|
||||
.include <bsd.prog.mk>
|
|
@ -0,0 +1,9 @@
|
|||
#ifndef _ISL_INCLUDE_ISL_STDINT_H
|
||||
#define _ISL_INCLUDE_ISL_STDINT_H 1
|
||||
#ifndef _GENERATED_STDINT_H
|
||||
#define _GENERATED_STDINT_H "isl 0.26"
|
||||
/* generated using gnu compiler gcc (nb2 20230710) 10.5.0 */
|
||||
#define _STDINT_HAVE_STDINT_H 1
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#endif
|
|
@ -0,0 +1,145 @@
|
|||
/* isl_config.h. Generated from isl_config.h.in by configure. */
|
||||
/* isl_config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* most gcc compilers know a function __attribute__((__warn_unused_result__))
|
||||
*/
|
||||
#define GCC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
|
||||
|
||||
/* define if the compiler supports basic C++11 syntax */
|
||||
#define HAVE_CXX11 1
|
||||
|
||||
/* define if the compiler supports basic C++17 syntax */
|
||||
#define HAVE_CXX17 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `ffs', and to 0 if you don't. */
|
||||
#define HAVE_DECL_FFS 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `mp_get_memory_functions', and
|
||||
to 0 if you don't. */
|
||||
#define HAVE_DECL_MP_GET_MEMORY_FUNCTIONS 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `snprintf', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_SNPRINTF 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `strcasecmp', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_STRCASECMP 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `strncasecmp', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_STRNCASECMP 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `_BitScanForward', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL__BITSCANFORWARD 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL__SNPRINTF 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `_stricmp', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL__STRICMP 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `_strnicmp', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL__STRNICMP 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `__builtin_ffs', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL___BUILTIN_FFS 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the `gmp' library (-lgmp). */
|
||||
#define HAVE_LIBGMP 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdio.h> header file. */
|
||||
#define HAVE_STDIO_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* define if your compiler has __attribute__ */
|
||||
#define HAVE___ATTRIBUTE__ 1
|
||||
|
||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||
#define LT_OBJDIR ".libs/"
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "isl"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "isl-development@googlegroups.com"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "isl"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "isl 0.26"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "isl"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "0.26"
|
||||
|
||||
/* The size of `char', as computed by sizeof. */
|
||||
/* #undef SIZEOF_CHAR */
|
||||
|
||||
/* The size of `int', as computed by sizeof. */
|
||||
/* #undef SIZEOF_INT */
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
/* #undef SIZEOF_LONG */
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
/* #undef SIZEOF_SHORT */
|
||||
|
||||
/* The size of `void*', as computed by sizeof. */
|
||||
/* #undef SIZEOF_VOIDP */
|
||||
|
||||
/* Define to 1 if all of the C90 standard headers exist (not just the ones
|
||||
required in a freestanding environment). This macro is provided for
|
||||
backward compatibility; new code need not use it. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* use gmp to implement isl_int */
|
||||
#define USE_GMP_FOR_MP /**/
|
||||
|
||||
/* use imath to implement isl_int */
|
||||
/* #undef USE_IMATH_FOR_MP */
|
||||
|
||||
/* Use small integer optimization */
|
||||
/* #undef USE_SMALL_INT_OPT */
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "0.26"
|
||||
|
||||
#include <isl_config_post.h>
|
|
@ -0,0 +1,176 @@
|
|||
# $NetBSD: Makefile,v 1.1 2024/02/23 05:33:04 mrg Exp $
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
||||
DIST= ${.CURDIR}/../../dist
|
||||
|
||||
# We don't install isl, just provide it for GCC.
|
||||
LIBISPRIVATE?= yes
|
||||
|
||||
.if ${LIBISPRIVATE} != "yes"
|
||||
INCS= aff.h \
|
||||
aff_type.h \
|
||||
arg.h \
|
||||
ast.h \
|
||||
ast_build.h \
|
||||
ast_type.h \
|
||||
constraint.h \
|
||||
cpp.h \
|
||||
ctx.h \
|
||||
fixed_box.h \
|
||||
flow.h \
|
||||
hash.h \
|
||||
hmap.h \
|
||||
hmap_templ.c \
|
||||
id.h \
|
||||
id_to_ast_expr.h \
|
||||
id_to_id.h \
|
||||
id_to_pw_aff.h \
|
||||
id_type.h \
|
||||
ilp.h \
|
||||
list.h \
|
||||
local_space.h \
|
||||
lp.h \
|
||||
map.h \
|
||||
map_to_basic_set.h \
|
||||
map_type.h \
|
||||
mat.h \
|
||||
maybe.h \
|
||||
maybe_ast_expr.h \
|
||||
maybe_basic_set.h \
|
||||
maybe_id.h \
|
||||
maybe_pw_aff.h \
|
||||
maybe_templ.h \
|
||||
multi.h \
|
||||
obj.h \
|
||||
options.h \
|
||||
point.h \
|
||||
polynomial.h \
|
||||
polynomial_type.h \
|
||||
printer.h \
|
||||
printer_type.h \
|
||||
schedule.h \
|
||||
schedule_node.h \
|
||||
schedule_type.h \
|
||||
set.h \
|
||||
set_type.h \
|
||||
space.h \
|
||||
space_type.h \
|
||||
stream.h \
|
||||
stride_info.h \
|
||||
typed_cpp.h \
|
||||
union_map.h \
|
||||
union_map_type.h \
|
||||
union_set.h \
|
||||
union_set_type.h \
|
||||
val.h \
|
||||
val_gmp.h \
|
||||
val_type.h \
|
||||
vec.h \
|
||||
version.h \
|
||||
vertices.h
|
||||
INCSDIR= /usr/include/isl
|
||||
.PATH: ${DIST}/include/isl
|
||||
|
||||
SUBDIR= ../../include
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
.endif
|
||||
|
||||
LIB= isl
|
||||
|
||||
LIBDPLIBS+= gmp ${.CURDIR}/../../../../lgpl3/gmp/lib/libgmp
|
||||
|
||||
SRCS= \
|
||||
isl_gmp.c \
|
||||
isl_val_gmp.c \
|
||||
isl_aff.c \
|
||||
isl_aff_map.c \
|
||||
isl_affine_hull.c \
|
||||
isl_arg.c \
|
||||
isl_ast.c \
|
||||
isl_ast_build.c \
|
||||
isl_ast_build_expr.c \
|
||||
isl_ast_codegen.c \
|
||||
isl_ast_graft.c \
|
||||
basis_reduction_tab.c \
|
||||
isl_bernstein.c \
|
||||
isl_blk.c \
|
||||
isl_bound.c \
|
||||
isl_box.c \
|
||||
isl_coalesce.c \
|
||||
isl_constraint.c \
|
||||
isl_convex_hull.c \
|
||||
isl_ctx.c \
|
||||
isl_deprecated.c \
|
||||
isl_dim_map.c \
|
||||
isl_equalities.c \
|
||||
isl_factorization.c \
|
||||
isl_farkas.c \
|
||||
isl_ffs.c \
|
||||
isl_flow.c \
|
||||
isl_fold.c \
|
||||
isl_hash.c \
|
||||
isl_id_to_ast_expr.c \
|
||||
isl_id_to_id.c \
|
||||
isl_id_to_pw_aff.c \
|
||||
isl_ilp.c \
|
||||
isl_input.c \
|
||||
isl_local.c \
|
||||
isl_local_space.c \
|
||||
isl_lp.c \
|
||||
isl_map.c \
|
||||
isl_map_list.c \
|
||||
isl_map_simplify.c \
|
||||
isl_map_subtract.c \
|
||||
isl_map_to_basic_set.c \
|
||||
isl_mat.c \
|
||||
isl_morph.c \
|
||||
isl_id.c \
|
||||
isl_obj.c \
|
||||
isl_options.c \
|
||||
isl_output.c \
|
||||
isl_point.c \
|
||||
isl_polynomial.c \
|
||||
isl_printer.c \
|
||||
print.c \
|
||||
isl_range.c \
|
||||
isl_reordering.c \
|
||||
isl_sample.c \
|
||||
isl_scan.c \
|
||||
isl_schedule.c \
|
||||
isl_schedule_band.c \
|
||||
isl_schedule_node.c \
|
||||
isl_schedule_read.c \
|
||||
isl_schedule_tree.c \
|
||||
isl_schedule_constraints.c \
|
||||
isl_scheduler.c \
|
||||
isl_scheduler_clustering.c \
|
||||
isl_scheduler_scc.c \
|
||||
isl_set_list.c \
|
||||
isl_sort.c \
|
||||
isl_space.c \
|
||||
isl_stream.c \
|
||||
isl_seq.c \
|
||||
isl_set_to_ast_graft_list.c \
|
||||
isl_stride.c \
|
||||
isl_tab.c \
|
||||
isl_tab_pip.c \
|
||||
isl_tarjan.c \
|
||||
isl_transitive_closure.c \
|
||||
isl_union_map.c \
|
||||
isl_val.c \
|
||||
isl_vec.c \
|
||||
isl_version.c \
|
||||
isl_vertices.c
|
||||
|
||||
CPPFLAGS+= -I${.CURDIR} -I${DIST} -I${DIST}/include -I${.CURDIR}/../../include
|
||||
|
||||
# Find <gmp.h>
|
||||
GMPDIR=${NETBSDSRCDIR}/external/lgpl3/gmp
|
||||
.include "${GMPDIR}/Makefile.arch"
|
||||
CPPFLAGS+= -I${GMPDIR}/lib/libgmp/arch/${GMP_MACHINE_ARCH}
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
.PATH: ${DIST}
|
Loading…
Reference in New Issue