summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2016-04-27 11:27:46 -0400
committerQuentin Carbonneaux2016-04-27 11:42:58 -0400
commitdc7c7582abd1fac3cdbb6068999bc8126bb3848b (patch)
tree6402d60f33be9760e57d8422e7fe4147448bec3e
parent21abe4f408d582c26ba69a115fec14f778d97563 (diff)
Sanitize Makefile.
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b91ce6c..308c060 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,11 @@
-build: clean
- cc irc.c -o irc -lncurses -Wall -std=c99 -Os
- strip irc
+BIN = irc
+
+CFLAGS = -std=c99 -Os -D_POSIX_C_SOURCE=201112
+LDFLAGS = -lncurses
+
+all: ${BIN}
clean:
- rm -f irc
+ rm -f ${BIN} *.o
+
+.PHONY: all clean