diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-09-24 22:22:51 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-09-24 22:22:51 -0700 |
commit | 518eaeca38dfc6f840907f6bcc1ce28826801888 (patch) | |
tree | cb97b8968b0fb414a9ca24edbdcac42bb504a46a | |
parent | 3307a5ac1d2819ecbde0763aef3102828e13ae44 (diff) |
Makefile: Use ?= so variables can be set on command line.
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |