summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-08-08 18:25:28 +0200
committertomsmeding <tom.smeding@gmail.com>2017-08-08 18:25:28 +0200
commit4f34eb13d06cdfa7b526f7e0aced9955808ee0d3 (patch)
tree91707211e007ad3f2cfbadd0d7b3292a3e0cad88 /Makefile
parent0bb9d719c86db457439ee8e012eb141c76eed307 (diff)
Add faster interpreter, and some stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index fa4031c..0081677 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,17 @@
CC = gcc
-CFLAGS = -Wall -Wextra -O2 -std=c11 -fwrapv
+CFLAGS = -Wall -Wextra -O2 -std=c11 -fwrapv -D_POSIX_C_SOURCE
-BIN = bfinter
+TARGETS = bfinter bfinter2
.PHONY: all clean remake
-all: $(BIN)
+all: $(TARGETS)
clean:
- rm -f $(BIN)
+ rm -f $(TARGETS)
remake: clean all
-$(BIN): $(wildcard *.c *.h)
- $(CC) $(CFLAGS) $(filter %.c,$^) -o $@
+$(TARGETS): %: %.c
+ $(CC) $(CFLAGS) $^ -o $@