diff --git a/giteapc.make b/giteapc.make new file mode 100644 index 0000000..b259899 --- /dev/null +++ b/giteapc.make @@ -0,0 +1,30 @@ +# giteapc: version=1 + +VERSION_BINUTILS := 2.37 +VERSION_GCC := 11.2.0 + +# Try to find if the file is involved by giteapc or vxsdk +ifeq ($(GITEAPC_PREFIX),) +PREFIX ?= $(VXSDK_PREFIX) +endif +ifeq ($(VXSDK_PREFIX),) +PREFIX ?= $(GITEAPC_PREFIX) +endif + +configure: + @ cd ./scripts/binutils && ./configure.sh --version=$(VERSION_BINUTILS) + @ cd ./scripts/gcc && ./configure.sh --version=$(VERSION_GCC) + +build: + @ cd ./scripts/binutils && ./build.sh + @ cd ./scripts/gcc && ./build.sh + +install: + @ cd ./scripts/binutils && ./install.sh --prefix="$(PREFIX)" + @ cd ./scripts/gcc && ./install.sh --prefix="$(PREFIX)" + +uninstall: + @ cd ./scripts/binutils && ./uninstall.sh --prefix="$(PREFIX)" + @ cd ./scripts/gcc && ./uninstall.sh --prefix="$(PREFIX)" + +.PHONY: configure build install uninstall diff --git a/scripts/binutils/uninstall.sh b/scripts/binutils/uninstall.sh index 1bbe6d4..b554665 100755 --- a/scripts/binutils/uninstall.sh +++ b/scripts/binutils/uninstall.sh @@ -49,7 +49,7 @@ PREFIX="$prefix" # Check that the configuration step has been effectuated -if [[ ! -d ../../build/binutils/build ]]; then +if [[ ! -d ../../build/binutils/bin ]]; then echo "error: Are you sure to have configured binutils ? it seems that" >&2 echo " the build directory is missing..." >&2 exit 1 diff --git a/scripts/gcc/uninstall.sh b/scripts/gcc/uninstall.sh index 1e6f6cd..e3d2663 100755 --- a/scripts/gcc/uninstall.sh +++ b/scripts/gcc/uninstall.sh @@ -49,7 +49,7 @@ PREFIX="$prefix" # Check that the configuration step has been effectuated -if [[ ! -d ../../build/gcc/build ]]; then +if [[ ! -d ../../build/gcc/bin ]]; then echo "error: Are you sure to have configured GCC ? it seems that" >&2 echo " the build directory is missing..." >&2 exit 1