Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed May 6, 2015
2 parents a062973 + 4e1ca3f commit c1d3525
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 11 deletions.
11 changes: 8 additions & 3 deletions Makefile.in
@@ -1,17 +1,22 @@
all:
$(MAKE) omc @OMLIBRARY_TARGET@
$(MAKE) omplot
$(MAKE) omedit omoptim

.PRECIOUS: Makefile

omc:
$(MAKE) -C OMCompiler
$(MAKE) -C OMCompiler @OMC_TARGET@
omlibrary-core:
$(MAKE) -C libraries core
$(MAKE) -C libraries BUILD_DIR=@OMBUILDDIR@/lib/omlibrary core
omlibrary-all:
$(MAKE) -C libraries all
$(MAKE) -C libraries BUILD_DIR=@OMBUILDDIR@/lib/omlibrary all
omplot:
$(MAKE) -C OMPlot
omedit:
$(MAKE) -C OMEdit
omoptim:
$(MAKE) -C OMOptim

clean:
test ! -d build || rm -r build/
Expand Down
2 changes: 1 addition & 1 deletion OMOptim
14 changes: 12 additions & 2 deletions configure.ac
Expand Up @@ -7,6 +7,16 @@ m4_include([common/m4/pre-commit.m4])
m4_include([common/m4/ombuilddir.m4])
cp common/install-sh common/config.guess common/config.sub ./

AC_SUBST(OMC_TARGET)
AC_ARG_WITH(cppruntime, [ --with-cppruntime (build the optional cppruntime simulation libraries)],[OMC_TARGET="$withval"],[OMC_TARGET="no"])

AC_MSG_CHECKING([if cppruntime is requested])
if test "$OMC_OR_CPPRUNTIME" = "yes"; then
OMC_TARGET=all-runtimeCPPinstall
else
OMC_TARGET=
fi

AC_SUBST(OMLIBRARY_TARGET)
AC_ARG_WITH(omlibrary, [ --with-omlibrary=[core,all,no] (which libraries to build; default is core; the libraries used by the testsuite)],[OMLIBRARY_TARGET="$withval"],[OMLIBRARY_TARGET="core"])

Expand All @@ -30,7 +40,7 @@ case "$OMLIBRARY_TARGET" in
esac


for dir in OMCompiler OMPlot; do
for dir in OMCompiler OMPlot OMEdit OMOptim; do
if test ! -d "$dir"; then
AC_MSG_ERROR("Subproject $dir does not exist")
fi
Expand All @@ -39,6 +49,6 @@ for dir in OMCompiler OMPlot; do
fi
done

AC_CONFIG_SUBDIRS([OMCompiler OMPlot])
AC_CONFIG_SUBDIRS([OMCompiler OMPlot OMEdit OMOptim])

AC_OUTPUT(Makefile)
2 changes: 1 addition & 1 deletion libraries
Submodule libraries updated 3 files
+2 −0 .gitignore
+16 −16 Makefile.libs
+8 −8 repos.json
2 changes: 1 addition & 1 deletion testsuite
Submodule testsuite updated 1 files
+13 −0 .gitignore

0 comments on commit c1d3525

Please sign in to comment.