diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2016-07-30 18:26:24 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2016-07-30 18:26:24 +0200 |
commit | 8b49e73d6089e4a9195ce01c3f4c95e85336397d (patch) | |
tree | 814dff997ccba703a5108e50520fdef52661d3a5 /Makefile | |
parent | 94fd6ce2902ebb8b933763bda8c3280914d6ae20 (diff) |
Second
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..55b2ef8 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CC = gcc +CFLAGS = -Wall -Wextra -std=c11 -O2 -fwrapv +BIN = main + +.PHONY: all clean remake + +all: $(BIN) + +clean: + rm -f $(BIN) *.o *.dSYM + +remake: clean all + + +$(BIN): $(wildcard *.c *.h) + $(CC) $(CFLAGS) -o $@ $(filter %.c,$^) |