config.mk 483 B

123456789101112131415161718
  1. VERSION := 0.1 alpha
  2. _CFG_SELF_DIR := $(patsubst %/,%,$(dir $(lastword ${MAKEFILE_LIST})))
  3. PREFIX ?= /usr
  4. DESTDIR ?= ${_CFG_SELF_DIR}/build
  5. CFLAGS += -std=c99 -pedantic -Wall -Wextra \
  6. -Wshadow -Wfloat-equal -Wconversion -Wuninitialized
  7. METALANG_CPP := -I$(abspath $(dir $(lastword ${MAKEFILE_LIST})))/include \
  8. -DML99_ALLOW_POOR_DIAGNOSTICS
  9. CPPFLAGS += -D_XOPEN_SOURCE -DVERSION='"${VERSION}"' ${METALANG_CPP}
  10. CLANG_TIDY ?= clang-tidy
  11. CLANG_FORMAT ?= clang-format