From 1eb2f48c275a7e5f572b86c615dffb64bdfab1e8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 18:52:54 +0200 Subject: Add makefile and gitignore + update copyright year + m style fix + fix warnings + fix limit which had stopped working MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1841767 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +.POSIX: + +CC = cc + +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE +CFLAGS = -std=c99 -Wall -O2 +LDFLAGS = -s + +BIN = yes limit measure + + +all: $(BIN) + +.o: + $(CC) -o $@ $< $(LDFLAGS) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + +clean: + rm -f -- *.o *.su $(BIN) + +.SUFFIXES: +.SUFFIXES: .c .o -- cgit v1.2.3-70-g09d2