From 59657ee05d6a0bdf4299f96d44015b2b76ca044c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 24 Apr 2014 07:25:19 +0200 Subject: m make MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 17 +++++++++-------- 1 file 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} -- cgit v1.2.3-70-g09d2