diff --git a/repos/os/Tupfile b/repos/os/Tupfile index 0adaca990..d1ea3f417 100644 --- a/repos/os/Tupfile +++ b/repos/os/Tupfile @@ -1,21 +1,5 @@ -include_rules - ifdef NIX_OUTPUTS_DEV +include_rules SED_FLAGS += -e "s|@includedir@|@(NIX_OUTPUTS_DEV)/include/os|" -else -SED_FLAGS += -e "s|@includedir@|`nix-store --add $(REP_DIR)/include`|" -endif - -ifeq (@(TUP_ARCH),i386) -SED_FLAGS += -e 's|@spec_includes@|-I${includedir}/spec/x86_32 -I${includedir}/spec/x86|' -endif - -ifeq (@(TUP_ARCH),x86_64) -SED_FLAGS += -e 's|@spec_includes@|-I${includedir}/spec/x86_64 -I${includedir}/spec/x86|' -endif - -ifeq (@(TUP_ARCH),arm) - SED_FLAGS += -e 's|@spec_includes@| -I${includedir}/spec/arm|' -endif - : *.pc.in |> !sed_pkgconfig_file |> +endif diff --git a/repos/os/Tuprules.tup b/repos/os/Tuprules.tup index 64d57f97a..dd89e66d9 100644 --- a/repos/os/Tuprules.tup +++ b/repos/os/Tuprules.tup @@ -1,2 +1,17 @@ REP_DIR = $(TUP_CWD) -LIBS += genode-os + +ifeq (@(TUP_ARCH),i386) +INCLUDES += -I$(REP_DIR)/include/spec/x86_32 +INCLUDES += -I$(REP_DIR)/include/spec/x86 +endif + +ifeq (@(TUP_ARCH),x86_64) +INCLUDES += -I$(REP_DIR)/include/spec/x86_64 +INCLUDES += -I$(REP_DIR)/include/spec/x86 +endif + +ifeq (@(TUP_ARCH),arm) +INCLUDES += -I$(REP_DIR)/include/spec/arm +endif + +INCLUDES += -I$(REP_DIR)/include