From 56563700df68816e8329b99f66ede5459cbbb23a Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 5 Apr 2017 15:47:10 +0200 Subject: Initial --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..82fb62d --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC = gcc +CFLAGS = -Wall -Wextra -std=c11 -O2 -g -fwrapv -pthread +LDFLAGS = -lm -pthread + +.PHONY: all clean remake + +all: attract + +clean: + rm -f attract *.o + +remake: clean + $(MAKE) --no-print-directory all + + +attract: $(patsubst %.c,%.o,$(wildcard *.c)) + $(CC) $(LDFLAGS) -o $@ $^ + +%.o: %.c $(wildcard *.h) + $(CC) $(CFLAGS) -c -o $@ $< -- cgit v1.2.3-54-g00ecf