cmark

My personal build of CMark ✏️

Commit
518eaeca38dfc6f840907f6bcc1ce28826801888
Parent
3307a5ac1d2819ecbde0763aef3102828e13ae44
Author
John MacFarlane <jgm@berkeley.edu>
Date

Makefile: Use ?= so variables can be set on command line.

Diffstat

1 file changed, 5 insertions, 5 deletions

Status File Name N° Changes Insertions Deletions
Modified Makefile 10 5 5
diff --git a/Makefile b/Makefile
@@ -1,9 +1,9 @@
-CFLAGS=-g -O3 -Wall -Wextra -std=c99 -Isrc $(OPTFLAGS)
-LDFLAGS=-g -O3 -Wall -Werror
-SRCDIR=src
-DATADIR=data
+CFLAGS?=-g -O3 -Wall -Wextra -std=c99 -Isrc $(OPTFLAGS)
+LDFLAGS?=-g -O3 -Wall -Werror
+SRCDIR?=src
+DATADIR?=data
 
-PROG=./stmd
+PROG?=./stmd
 
 .PHONY: all oldtests test spec benchjs testjs
 all: $(SRCDIR)/case_fold_switch.c $(PROG)