mirror of
https://github.com/NixOS/nix
synced 2025-07-06 05:01:48 +02:00
Allow for ergnomically putting Unix-only files in subdirs by creating INLCUDE_$(pkg)
vars
Separate platform-specific files will allow avoiding a lot of CPP.
This commit is contained in:
parent
4a61827d2d
commit
77205b2042
14 changed files with 33 additions and 19 deletions
|
@ -6,7 +6,10 @@ libutil_DIR := $(d)
|
|||
|
||||
libutil_SOURCES := $(wildcard $(d)/*.cc $(d)/signature/*.cc)
|
||||
|
||||
libutil_CXXFLAGS += -I src/libutil
|
||||
# Not just for this library itself, but also for downstream libraries using this library
|
||||
|
||||
INCLUDE_libutil := -I $(d)
|
||||
libutil_CXXFLAGS += $(INCLUDE_libutil)
|
||||
|
||||
libutil_LDFLAGS += $(THREAD_LDFLAGS) $(LIBCURL_LIBS) $(SODIUM_LIBS) $(OPENSSL_LIBS) $(LIBBROTLI_LIBS) $(LIBARCHIVE_LIBS) $(BOOST_LDFLAGS) -lboost_context
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue