2023-04-03 19:11:42 +03:00
|
|
|
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 18:15:00 +02:00
|
|
|
|
2024-04-17 16:34:40 +03:00
|
|
|
$(foreach i, config.h $(wildcard src/lib*/*.hh) $(filter-out %_internal.h, $(wildcard src/lib*c/*.h)), \
|
2015-06-09 12:14:36 +03:00
|
|
|
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
2019-12-05 21:26:24 +02:00
|
|
|
|
2024-03-27 18:01:07 +02:00
|
|
|
ifdef HOST_UNIX
|
|
|
|
$(foreach i, $(wildcard src/lib*/unix/*.hh), \
|
|
|
|
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
|
|
|
endif
|
|
|
|
|
2020-10-06 14:27:09 +03:00
|
|
|
$(GCH): src/libutil/util.hh config.h
|
2020-03-30 15:29:29 +03:00
|
|
|
|
2023-09-03 00:10:28 +03:00
|
|
|
GCH_CXXFLAGS = $(INCLUDE_libutil)
|