Files
XD/config.mk

30 lines
488 B
Makefile

VERSION = 1.1
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
# 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
CC = cc