requires us to also know what the previous return signal is, so if XD is given a return code, it passes it through when finishing execution.
39 lines
680 B
Makefile
39 lines
680 B
Makefile
VERSION = 2.0
|
|
|
|
PKG_CONFIG = pkg-config
|
|
|
|
# paths
|
|
PREFIX = /usr/local
|
|
MANDIR = $(PREFIX)/share/man
|
|
|
|
GIT =
|
|
GITLIB =
|
|
# comment to disable git support
|
|
GIT = -DGIT
|
|
GITLIB = libgit2
|
|
|
|
ERR =
|
|
# uncomment to enable errors
|
|
# ERR = -DERR
|
|
|
|
EXPLAIN =
|
|
# comment to disable explinations
|
|
EXPLAIN = -DEXPLAIN
|
|
|
|
# add compilation details to VERSION variable
|
|
ifneq ($(GIT),)
|
|
VERSION := $(VERSION)"\\nlibgit2 "`$(PKG_CONFIG) --modversion $(GITLIB)`
|
|
endif
|
|
ifeq ($(ERR),)
|
|
VERSION := $(VERSION)"\\nerrors disabled"
|
|
else
|
|
VERSION := $(VERSION)"\\nerrors enabled"
|
|
endif
|
|
ifeq ($(EXPLAIN),)
|
|
VERSION := $(VERSION)"\\nexplinations disabled"
|
|
else
|
|
VERSION := $(VERSION)"\\nexplinations enabled"
|
|
endif
|
|
|
|
CC = cc
|