aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-24 07:25:19 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-24 07:25:19 +0200
commit59657ee05d6a0bdf4299f96d44015b2b76ca044c (patch)
tree1218db3b2760d4927b1f9fc8c5a578b46758eb85 /Makefile
parentupdate dist (diff)
downloadadjbacklight-59657ee05d6a0bdf4299f96d44015b2b76ca044c.tar.gz
adjbacklight-59657ee05d6a0bdf4299f96d44015b2b76ca044c.tar.bz2
adjbacklight-59657ee05d6a0bdf4299f96d44015b2b76ca044c.tar.xz
m make
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index ef448cf..a638854 100644
--- a/Makefile
+++ b/Makefile
@@ -7,12 +7,11 @@
#
# [GNU All Permissive License]
-OPTIMISATION = -O3
-# -Os optimise for small size
-# -O3 optimise for performance
-# -O6 optimise for performance, can potentially miscompile
-# -Og optimise for debugging
-# -g include debugging data (use together with -Og or alone)
+OPTIMISATION = -Ofast
+# -Os optimise for small size
+# -Ofast optimise for performance
+# -Og optimise for debugging
+# -g include debugging data (use together with -Og or alone)
PKGNAME = adjbacklight
COMMAND = adjbacklight
@@ -27,6 +26,8 @@ LICENSEDIR = $(DATADIR)/licenses
MANUAL = adjbacklight
MANUALDIR = info/
+WARN = -Wall -Wextra
+
# compile the package
.PHONY: all
@@ -37,7 +38,7 @@ code: bin/adjbacklight
bin/adjbacklight: src/adjbacklight.c
mkdir -p bin
- $(CC) $(OPTIMISATION) -Wall -Wextra -std=gnu90 -o "$@" "$<"
+ $(CC) $(OPTIMISATION) $(WARN) -std=gnu90 -o "$@" "$<"
.PHONY: info
info: $(MANUAL).info
@@ -88,5 +89,5 @@ uninstall:
# remove files created by `all`
.PHONY: clean
clean:
- -rm -r *.{class,t2d,aux,cp,cps,fn,ky,log,pg,pgs,toc,tp,vr,vrs,op,ops,bak,info,pdf,ps,dvi,gz,install} 2>/dev/null
+ -rm -r *.{class,t2d,aux,cp,cps,fn,ky,log,pg,pgs,toc,tp,vr,vrs,op,ops,bak,info,pdf,ps,dvi,gz,install}