summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 $@