Now if those variables exist from the environment, they're automatically taken as default
.POSIX:
.SUFFIXES:
-CC=gcc -std=c99
-CFLAGS=-pedantic -Wall -Wextra -O3 -march=native
-DESTDIR=
-PREFIX=usr/local
-LIBDIR=$(PREFIX)/lib
-INCLUDEDIR=$(PREFIX)/include
-PKGCONFIGDIR=$(LIBDIR)/pkgconfig
-MANDIR=$(PREFIX)/share/man/man3
+CC?=gcc -std=c99
+CFLAGS?=-pedantic -Wall -Wextra -O3 -march=native
+DESTDIR?=
+PREFIX?=usr/local
+LIBDIR?=$(PREFIX)/lib
+INCLUDEDIR?=$(PREFIX)/include
+PKGCONFIGDIR?=$(LIBDIR)/pkgconfig
+MANDIR?=$(PREFIX)/share/man/man3
SONAME=libmonocypher.so.4
.PHONY: all library static-library dynamic-library \
# 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=c99
-CFLAGS = -pedantic -Wall -Wextra
+CC ?= gcc -std=c99
+CFLAGS ?= -pedantic -Wall -Wextra
.PHONY: all clean
# with this software. If not, see
# <https://creativecommons.org/publicdomain/zero/1.0/>
-CC=gcc -std=gnu99
-CFLAGS= -pedantic -Wall -Wextra -O3 -march=native
+CC?=gcc -std=gnu99
+CFLAGS?= -pedantic -Wall -Wextra -O3 -march=native
.PHONY: speed speed-sodium speed-hydrogen speed-tweetnacl speed-c25519 \
speed-donna \