Commit d1713b94 authored by Maxime Perrotin's avatar Maxime Perrotin

Fix makefile to work also in 64 bits environments

parent 34d301b9
UNAME := $(shell uname) UNAME := $(shell uname)
CC=gcc CC=gcc
exec = buildsupport exec = buildsupport
...@@ -27,8 +26,9 @@ ifeq ($(UNAME), Linux) ...@@ -27,8 +26,9 @@ ifeq ($(UNAME), Linux)
fi ; \ fi ; \
fi fi
endif endif
uname -a | grep x86_64 && EXTRAFLAG="--target=x86_64-linux" ; \
ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH \ ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH \
$(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug" $(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug" $$EXTRAFLAG
install: install:
$(MAKE) $(MAKE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment