$NetBSD: patch-makefile,v 1.2 2020/10/19 12:30:30 mef Exp $

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,14 @@
 # You should have received a copy of the CC0 Public Domain Dedication along
 # with this software.  If not, see
 # <https://creativecommons.org/publicdomain/zero/1.0/>
-CC=gcc -std=gnu99 # speed tests don't work with -std=cxx, they need the POSIX extensions
+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
+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
