summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
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