aboutsummaryrefslogtreecommitdiff
path: root/local.mk
blob: 6951c179e9d1b8abab340da1c16c3797dbef7c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clean-files += Makefile.config

GLOBAL_CXXFLAGS += -Wno-deprecated-declarations -Werror=switch
# Allow switch-enum to be overridden for files that do not support it, usually because of dependency headers.
ERROR_SWITCH_ENUM = -Werror=switch-enum

$(foreach i, config.h $(wildcard src/lib*/*.hh), \
  $(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))

$(GCH): src/libutil/util.hh config.h

GCH_CXXFLAGS = -I src/libutil