aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEliteTK <tomasz.kramkowski@gmail.com>2014-10-08 20:45:38 +0100
committerEliteTK <tomasz.kramkowski@gmail.com>2014-10-08 20:45:38 +0100
commitc35c0b9ec3ce6f599fbdd385e5382e582f19320e (patch)
treeeaf599e6d2b7c54a32e442ea3a59e263ff32fab4
parent24de13e1f225587af7d9ba8df8252a733c7c4817 (diff)
downloadc-stuff-c35c0b9ec3ce6f599fbdd385e5382e582f19320e.tar.gz
c-stuff-c35c0b9ec3ce6f599fbdd385e5382e582f19320e.tar.xz
c-stuff-c35c0b9ec3ce6f599fbdd385e5382e582f19320e.zip
Added clean target. Fixed CFLAGS.
-rw-r--r--makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/makefile b/makefile
index 92437e6..88e79fa 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-CFLAGS = -O2 -std=gnu11
+CFLAGS = -Wall -Werror -Wpedantic -O2 -std=gnu11
PREFIX = /usr
BINDIR = /bin
@@ -22,3 +22,6 @@ install : $(DESTDIR)$(PREFIX)$(BINDIR)/$(target)
uninstall :
rm "$(DESTDIR)$(PREFIX)$(BINDIR)/$(target)"
+
+clean :
+ find . -mindepth 1 -maxdepth 1 -executable -type f -delete