diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:38:50 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:38:50 +0200 |
commit | e6a5c821e62b037afb3e5f1fa86a418ccbec2fd2 (patch) | |
tree | b901f7fe2ba4de289f4001c6d8554049f2c516d2 /Makefile | |
parent | Add license (diff) | |
download | pipes-are-slow-e6a5c821e62b037afb3e5f1fa86a418ccbec2fd2.tar.gz pipes-are-slow-e6a5c821e62b037afb3e5f1fa86a418ccbec2fd2.tar.bz2 pipes-are-slow-e6a5c821e62b037afb3e5f1fa86a418ccbec2fd2.tar.xz |
Misc improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d1ce94a --- /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 + + +all: bench + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + +.o: + $(CC) -o $@ $< $(LDFLAGS) + +clean: + -rm -f -- bench *.o *.su + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all clean |