$NetBSD: patch-makefile,v 1.3 2023/07/12 21:17:16 nia Exp $ This uses many C99 features in its code. Allow overriding CC, DESTDIR and PREFIX Use the more standard MANDIR (that we override) --- makefile.orig 2020-04-22 00:00:00.000000000 +0000 +++ makefile @@ -49,14 +49,13 @@ # You should have received a copy of the CC0 Public Domain Dedication along # with this software. If not, see # -CC=gcc -std=gnu99 # speed tests don't work with -std=cxx, they need the POSIX extensions -CFLAGS= -pedantic -Wall -Wextra -O3 -march=native -DESTDIR= -PREFIX=usr/local +CFLAGS+= -std=c99 -Wall -Wextra +DESTDIR?= +PREFIX?=usr/local LIBDIR=$(PREFIX)/lib INCLUDEDIR=$(PREFIX)/include PKGCONFIGDIR=$(LIBDIR)/pkgconfig -MANDIR=$(PREFIX)/share/man/man3 +MANDIR?=$(PREFIX)/share/man/man3 SONAME=libmonocypher.so.3 VERSION=3.1.1