Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
buildsupport
Commits
370b5242
Commit
370b5242
authored
Apr 05, 2017
by
Maxime Perrotin
Browse files
Minor cleanup of Makefile
parent
3f4691c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
370b5242
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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment