nix/local.mk

16 lines
544 B
Makefile
Raw Normal View History

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
2014-02-07 16:15:00 +00:00
$(foreach i, config.h $(wildcard src/lib*/*.hh), \
2015-06-09 09:14:36 +00:00
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
ifdef HOST_UNIX
$(foreach i, $(wildcard src/lib*/unix/*.hh), \
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
endif
$(GCH): src/libutil/util.hh config.h
2020-03-30 12:29:29 +00:00
GCH_CXXFLAGS = $(INCLUDE_libutil)