mirror of
https://github.com/NixOS/nix.git
synced 2024-10-29 21:30:51 +00:00
84e2963f8e
This will facilitate breaking up Nix into multiple packages for each component with Meson.
16 lines
630 B
Makefile
16 lines
630 B
Makefile
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 subprojects/lib*/*.hh) $(filter-out %_internal.h, $(wildcard subprojects/lib*c/*.h)), \
|
|
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
|
|
|
ifdef HOST_UNIX
|
|
$(foreach i, $(wildcard subprojects/lib*/unix/*.hh), \
|
|
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
|
endif
|
|
|
|
$(GCH): subprojects/libutil/util.hh config.h
|
|
|
|
GCH_CXXFLAGS = $(INCLUDE_libutil)
|