Commit 370b5242 authored by Maxime Perrotin's avatar Maxime Perrotin

Minor cleanup of Makefile

parent 3f4691c1
GCCVERSION := $(shell gcc -v 2>&1 | grep ada | wc -l)
UNAME := $(shell uname)
VERSION=0.1
CC=gcc
exec = buildsupport
sources = $(wildcard ada/*.ad? c/*.c include/*.h)
all: $(exec)
all: checkVersion $(exec)
checkVersion:
#ifeq ($(UNAME),Linux)
# @if [ $(GCCVERSION) -ne 1 ] ; then echo gcc must point to GNAT... check your PATH ; exit 1 ; fi
#endif
$(exec): $(sources)
$(exec):
ifeq ($(UNAME), Linux)
@echo "package Buildsupport_Version is" > ada/buildsupport_version.ads.new
@echo -n " Buildsupport_Release : constant String := \"" >> ada/buildsupport_version.ads.new
......@@ -33,7 +24,8 @@ ifeq ($(UNAME), Linux)
fi ; \
fi
endif
ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH $(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug"
ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH \
$(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug"
install:
$(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