aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarvin Borner2021-01-03 22:59:20 +0100
committerMarvin Borner2021-01-03 23:05:06 +0100
commitcf385656e7793773e62b496b6229c117c4347ee8 (patch)
tree580c97e69a5a2e935ef267bc19b42fabcfe1013e /Makefile
StrangeHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e212d1f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+CC = gcc
+COBJS = main.o
+CFLAGS = -Wall -Wextra -pedantic-errors -Wshadow -Wpointer-arith -Wwrite-strings -Wredundant-decls -Wnested-externs -Ofast -lcurl
+
+all: $(COBJS)
+ @$(CC) -o mailvin $< $(CFLAGS)
+
+run: all
+ @./mailvin
+
+%.o: %.c
+ @$(CC) -c -o $@ $< $(CFLAGS)
+
+clean:
+ @rm -f *.o