convert makefile to be more portable

This commit is contained in:
KawaiiAmber
2022-05-25 16:04:19 -06:00
committed by Leonardo Hernández Hernández
parent a5a0674f6a
commit 7b42232ad1
2 changed files with 63 additions and 54 deletions

View File

@@ -1,12 +1,13 @@
_VERSION = 0.3.1
VERSION = $(shell ./generate-version.sh $(_VERSION))
VERSION = `./generate-version.sh $(_VERSION)`
# paths
PREFIX = /usr/local
MANDIR = $(PREFIX)/share/man
# Default compile flags (overridable by environment)
CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement
# Compile flags that can be used
#CFLAGS = -pedantic -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement
XWAYLAND =
# Uncomment to build XWayland support
#CFLAGS += -DXWAYLAND
#XWAYLAND = -DXWAYLAND