1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Sebastian Ramacher <sebastian@ramacher.at>
Date: Sun, 1 May 2022 20:41:23 +0200
Subject: Honor CC, PKG-CONFIG, *FLAGS
---
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 89ff73d..9e869bd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
#! /usr/bin/make -f
# Copyright (C) 2019-2022 Rémi Denis-Courmont. See COPYING.
-CC = cc
+CC ?= cc
INSTALL = install
-PKG_CONFIG = pkg-config
-CFLAGS = -g -O2 -Wall -Wextra
-LDFLAGS =
+PKG_CONFIG ?= pkg-config
+CFLAGS ?= -g -O2 -Wall -Wextra
+LDFLAGS ?=
LIBS =
override CC += -std=gnu11 -pthread
|