make.inc 628 B

1234567891011121314151617181920212223
  1. CC := cc
  2. CXX := c++
  3. INSTALL := install
  4. DESTDIR :=
  5. PREFIX := /usr/local
  6. WARN_CFLAGS := -Wall -Wextra -Wswitch-enum \
  7. -Wsuggest-attribute=noreturn -Wundef \
  8. -Wpointer-arith -Winline -Wlogical-op -Wshadow \
  9. -Wno-unused-parameter -Wno-missing-field-initializers \
  10. -Wcast-qual
  11. WARN_CXXFLAGS := $(WARN_CFLAGS)
  12. BASE_CFLAGS := -g -O2 -DPREFIX=$(PREFIX) \
  13. -D_GNU_SOURCE -D_BSD_SOURCE -D_DEFAULT_SOURCE \
  14. $(if $(filter 1 y,$(FEATURE_XLOCK)),-DFEATURE_XLOCK=1) \
  15. $(if $(filter 1 y,$(FEATURE_XEVREP)),-DFEATURE_XEVREP=1) \
  16. $(if $(filter 1 y,$(PROFILE)),-pg)
  17. BASE_CXXFLAGS := $(BASE_CFLAGS)