blob: b78f6c0f2846c627ee2b6188e26a32adf21393ca (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# SPDX-License-Identifier: CC0-1.0
#
# Copyright (C) 2024 W. Kosior <koszko@koszko.org>
CC = gcc
CFLAGS = -std=c11 -Wall -Wextra -Werror
poly_mul: poly_mul.o
$(CC) -lflint -lgmp -o $@ $^
# For fans of old librebooted ThinkPads — the FLINT build in some distros (at
# least Guix) uses processor instructions not available in old Core 2 Duo
# processors… For mere testing it is enough tu run with QEMU emulation, tho.
run_poly_mul: poly_mul
guix shell qemu -- qemu-x86_64 -cpu max $<
|