diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 $@ |