Sanitize Makefile. - irc - Unnamed repository; edit this file 'description' to name the repository.
(HTM) git clone git://vernunftzentrum.de/irc.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit dc7c7582abd1fac3cdbb6068999bc8126bb3848b
(DIR) parent 21abe4f408d582c26ba69a115fec14f778d97563
(HTM) Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 27 Apr 2016 11:27:46 -0400
Sanitize Makefile.
Diffstat:
Makefile | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
(DIR) diff --git 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