aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:52:54 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:52:54 +0200
commit1eb2f48c275a7e5f572b86c615dffb64bdfab1e8 (patch)
treea0efeb2638733473c84f21e493668b87e5a84ecb /Makefile
parentAdd limit.c: get the highest rate possible (diff)
downloadyes-silly-1eb2f48c275a7e5f572b86c615dffb64bdfab1e8.tar.gz
yes-silly-1eb2f48c275a7e5f572b86c615dffb64bdfab1e8.tar.bz2
yes-silly-1eb2f48c275a7e5f572b86c615dffb64bdfab1e8.tar.xz
Add makefile and gitignore + update copyright year + m style fix + fix warnings + fix limit which had stopped working
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
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