1# $NetBSD: Makefile,v 1.1 2024/02/23 05:33:04 mrg Exp $ 2 3.include <bsd.init.mk> 4 5DIST= ${.CURDIR}/../../dist 6 7# We don't install isl, just provide it for GCC. 8LIBISPRIVATE?= yes 9 10.if ${LIBISPRIVATE} != "yes" 11INCS= aff.h \ 12 aff_type.h \ 13 arg.h \ 14 ast.h \ 15 ast_build.h \ 16 ast_type.h \ 17 constraint.h \ 18 cpp.h \ 19 ctx.h \ 20 fixed_box.h \ 21 flow.h \ 22 hash.h \ 23 hmap.h \ 24 hmap_templ.c \ 25 id.h \ 26 id_to_ast_expr.h \ 27 id_to_id.h \ 28 id_to_pw_aff.h \ 29 id_type.h \ 30 ilp.h \ 31 list.h \ 32 local_space.h \ 33 lp.h \ 34 map.h \ 35 map_to_basic_set.h \ 36 map_type.h \ 37 mat.h \ 38 maybe.h \ 39 maybe_ast_expr.h \ 40 maybe_basic_set.h \ 41 maybe_id.h \ 42 maybe_pw_aff.h \ 43 maybe_templ.h \ 44 multi.h \ 45 obj.h \ 46 options.h \ 47 point.h \ 48 polynomial.h \ 49 polynomial_type.h \ 50 printer.h \ 51 printer_type.h \ 52 schedule.h \ 53 schedule_node.h \ 54 schedule_type.h \ 55 set.h \ 56 set_type.h \ 57 space.h \ 58 space_type.h \ 59 stream.h \ 60 stride_info.h \ 61 typed_cpp.h \ 62 union_map.h \ 63 union_map_type.h \ 64 union_set.h \ 65 union_set_type.h \ 66 val.h \ 67 val_gmp.h \ 68 val_type.h \ 69 vec.h \ 70 version.h \ 71 vertices.h 72INCSDIR= /usr/include/isl 73.PATH: ${DIST}/include/isl 74 75SUBDIR= ../../include 76.include <bsd.subdir.mk> 77 78.endif 79 80LIB= isl 81 82LIBDPLIBS+= gmp ${.CURDIR}/../../../../lgpl3/gmp/lib/libgmp 83 84SRCS= \ 85 isl_gmp.c \ 86 isl_val_gmp.c \ 87 isl_aff.c \ 88 isl_aff_map.c \ 89 isl_affine_hull.c \ 90 isl_arg.c \ 91 isl_ast.c \ 92 isl_ast_build.c \ 93 isl_ast_build_expr.c \ 94 isl_ast_codegen.c \ 95 isl_ast_graft.c \ 96 basis_reduction_tab.c \ 97 isl_bernstein.c \ 98 isl_blk.c \ 99 isl_bound.c \ 100 isl_box.c \ 101 isl_coalesce.c \ 102 isl_constraint.c \ 103 isl_convex_hull.c \ 104 isl_ctx.c \ 105 isl_deprecated.c \ 106 isl_dim_map.c \ 107 isl_equalities.c \ 108 isl_factorization.c \ 109 isl_farkas.c \ 110 isl_ffs.c \ 111 isl_flow.c \ 112 isl_fold.c \ 113 isl_hash.c \ 114 isl_id_to_ast_expr.c \ 115 isl_id_to_id.c \ 116 isl_id_to_pw_aff.c \ 117 isl_ilp.c \ 118 isl_input.c \ 119 isl_local.c \ 120 isl_local_space.c \ 121 isl_lp.c \ 122 isl_map.c \ 123 isl_map_list.c \ 124 isl_map_simplify.c \ 125 isl_map_subtract.c \ 126 isl_map_to_basic_set.c \ 127 isl_mat.c \ 128 isl_morph.c \ 129 isl_id.c \ 130 isl_obj.c \ 131 isl_options.c \ 132 isl_output.c \ 133 isl_point.c \ 134 isl_polynomial.c \ 135 isl_printer.c \ 136 print.c \ 137 isl_range.c \ 138 isl_reordering.c \ 139 isl_sample.c \ 140 isl_scan.c \ 141 isl_schedule.c \ 142 isl_schedule_band.c \ 143 isl_schedule_node.c \ 144 isl_schedule_read.c \ 145 isl_schedule_tree.c \ 146 isl_schedule_constraints.c \ 147 isl_scheduler.c \ 148 isl_scheduler_clustering.c \ 149 isl_scheduler_scc.c \ 150 isl_set_list.c \ 151 isl_sort.c \ 152 isl_space.c \ 153 isl_stream.c \ 154 isl_seq.c \ 155 isl_set_to_ast_graft_list.c \ 156 isl_stride.c \ 157 isl_tab.c \ 158 isl_tab_pip.c \ 159 isl_tarjan.c \ 160 isl_transitive_closure.c \ 161 isl_union_map.c \ 162 isl_val.c \ 163 isl_vec.c \ 164 isl_version.c \ 165 isl_vertices.c 166 167CPPFLAGS+= -I${.CURDIR} -I${DIST} -I${DIST}/include -I${.CURDIR}/../../include 168 169# Find <gmp.h> 170GMPDIR=${NETBSDSRCDIR}/external/lgpl3/gmp 171.include "${GMPDIR}/Makefile.arch" 172CPPFLAGS+= -I${GMPDIR}/lib/libgmp/arch/${GMP_MACHINE_ARCH} 173 174.include <bsd.lib.mk> 175 176.PATH: ${DIST} 177