21 lines
632 B
Plaintext
21 lines
632 B
Plaintext
include_rules
|
|
|
|
ifdef NIX_OUTPUTS_DEV
|
|
SED_FLAGS += -e "s|@includedir@|@(NIX_OUTPUTS_DEV)/include|"
|
|
SED_FLAGS += -e "s|@lddir@|@(NIX_OUTPUTS_DEV)/ld|"
|
|
else
|
|
SED_FLAGS += -e "s|@includedir@|`nix-store --add $(REP_DIR)/include`|"
|
|
SED_FLAGS += -e "s|@lddir@|`nix-store --add $(REP_DIR)/src/ld`|"
|
|
endif
|
|
|
|
SED_FLAGS += -e "s|@toolchainincludedir@|`$(CC) $(CC_MARCH) -print-file-name=include`|"
|
|
SED_FLAGS += -e "s|@libgcc@||"
|
|
|
|
SED_FLAGS += -e "s|@cc@|$(CC)|"
|
|
SED_FLAGS += -e "s|@cxx@|$(CXX)|"
|
|
SED_FLAGS += -e "s|@ld@|$(LD)|"
|
|
SED_FLAGS += -e "s|@ar@|$(AR)|"
|
|
SED_FLAGS += -e "s|@ranlib@|$(RANLIB)|"
|
|
|
|
: foreach *.pc.in |> !sed_pkgconfig_file |>
|