mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
22 lines
691 B
Makefile
22 lines
691 B
Makefile
libraries += libflake
|
|
|
|
libflake_NAME = libnixflake
|
|
|
|
libflake_DIR := $(d)
|
|
|
|
libflake_SOURCES := $(wildcard $(d)/*.cc $(d)/flake/*.cc)
|
|
|
|
# Not just for this library itself, but also for downstream libraries using this library
|
|
|
|
INCLUDE_libflake := -I $(d)
|
|
|
|
libflake_CXXFLAGS += $(INCLUDE_libutil) $(INCLUDE_libstore) $(INCLUDE_libfetchers) $(INCLUDE_libexpr) $(INCLUDE_libflake)
|
|
|
|
libflake_LDFLAGS += $(THREAD_LDFLAGS)
|
|
|
|
libflake_LIBS = libutil libstore libfetchers libexpr
|
|
|
|
$(eval $(call install-file-in, $(buildprefix)$(d)/flake/nix-flake.pc, $(libdir)/pkgconfig, 0644))
|
|
|
|
$(foreach i, $(wildcard src/libflake/flake/*.hh), \
|
|
$(eval $(call install-file-in, $(i), $(includedir)/nix/flake, 0644)))
|