From ba10d9b4d716a76c9a51feb8ed4934aacb5156ed Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:54:18 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0c02b55..0611b95 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # without any warranty. -# The package path prefix, if you want to install to another root, set DESTDIR to that root +# The package path prefix. If you want to install to another root, set DESTDIR to that root PREFIX = /usr # The command path excluding prefix BIN = /bin @@ -30,6 +30,10 @@ SHEBANG = /usr/bin/env python3 # The name of the command as it should be installed COMMAND = blueshift # The name of the package as it should be installed + +# The C compiler to use +CC = c99 + PKGNAME = blueshift # Executable bindings for display server access @@ -56,11 +60,10 @@ WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissi # -Wpadded (useless for this project), -Wc++-compat (bad practice) #not used because of libxcb's API: -Waggregate-return, -Wtraditional-conversion (also useless) # The C standard for C code compilation -STD = c99 LIBS_iccprofile = xcb LD_iccprofile = LIBS = $(foreach B,$(EXECS),$(LIBS_$(B))) -FLAGS = $$($(PKGCONFIG) --cflags $(LIBS)) -std=$(STD) $(WARN) $(OPTIMISE) \ +FLAGS = $$($(PKGCONFIG) --cflags $(LIBS)) $(WARN) $(OPTIMISE) \ $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) # Resource files @@ -184,7 +187,7 @@ bin/blueshift.fish: src/completion .PHONY: install install: install-base install-info install-examples install-shell -.PHONY: install +.PHONY: install-all install-all: install-base install-doc install-shell # Install base rules @@ -302,5 +305,4 @@ uninstall: .PHONY: clean clean: - -rm -r bin obj blueshift.{info,pdf,ps,dvi} *.su src/*.su - + -rm -r bin obj blueshift.info blueshift.pdf blueshift.ps blueshift.dvi *.su src/*.su -- cgit v1.2.3-70-g09d2