]> the.earth.li Git - mqtt-arp.git/commitdiff
Allow CC/CFLAGS/LDFLAGS to be overriden in Makefile
authorJonathan McDowell <noodles@earth.li>
Wed, 9 Feb 2022 18:33:35 +0000 (18:33 +0000)
committerJonathan McDowell <noodles@earth.li>
Wed, 9 Feb 2022 18:33:35 +0000 (18:33 +0000)
Helpful when building a package.

Makefile

index 75af65d85a12a6155b541436e5c14b4fd7dcc668..9e688b607a03ccf88b96d358d79a7d691ddd7f7c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-CC = gcc
-CFLAGS = -Wall
-LDFLAGS =
+CC ?= gcc
+CFLAGS ?= -Wall
+LDFLAGS ?=
 
 all: mqtt-arp