blob: 804ead55b6ab149159740599f3fd5c172c54a6ed (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# 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 $<
.PHONY: run_poly_mul
|