disable call to demangle.pl
[scilab.git] / scilab / modules / jit / Makefile.in
index b93fb6a..b39dd85 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.13.3 from Makefile.am.
+# Makefile.in generated by automake 1.14 from Makefile.am.
 # @configure_input@
 
 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
@@ -157,7 +157,8 @@ am__installdirs = "$(DESTDIR)$(pkglibdir)" \
 LTLIBRARIES = $(pkglib_LTLIBRARIES)
 libscijit_la_LIBADD =
 am__objects_1 = libscijit_la-jitter.lo
-am__objects_2 = libscijit_la-sci_runASTwithVMKit.lo
+am__objects_2 = libscijit_la-jit_gw.lo libscijit_la-sci_enableJIT.lo \
+       libscijit_la-sci_disableJIT.lo libscijit_la-sci_isJIT.lo
 am_libscijit_la_OBJECTS = $(am__objects_1) $(am__objects_2)
 libscijit_la_OBJECTS = $(am_libscijit_la_OBJECTS)
 AM_V_lt = $(am__v_lt_@AM_V@)
@@ -512,7 +513,10 @@ JIT_CPP_SOURCES = \
        src/cpp/jitter.cpp
 
 GATEWAY_CPP_SOURCES = \
-sci_gateway/cpp/sci_runASTwithVMKit.cpp
+       sci_gateway/cpp/jit_gw.cpp \
+    sci_gateway/cpp/sci_enableJIT.cpp \
+    sci_gateway/cpp/sci_disableJIT.cpp \
+    sci_gateway/cpp/sci_isJIT.cpp
 
 libscijit_la_CPPFLAGS = \
        -Iincludes \
@@ -560,6 +564,9 @@ testControlExp_SOURCES = src/cpp/testControlExp.cpp
 testControlExp_CXXFLAGS = $(check_INCLUDES)
 testControlExp_LDADD = $(check_LDADD)
 
+# This target transforms a basic code to llvm + clang code for the JIT
+BUILT_SOURCES = src/cpp/llvm-wrapper-generated.cpp
+
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
@@ -632,7 +639,8 @@ JARMASK = *.jar
 HELP_CHAPTERDIR = help/
 HELP_CHAPTERFILE = addchapter.sce
 HELP_CHAPTERLANG = en_US fr_FR pt_BR
-all: all-am
+all: $(BUILT_SOURCES)
+       $(MAKE) $(AM_MAKEFLAGS) all-am
 
 .SUFFIXES:
 .SUFFIXES: .sci .bin .cpp .lo .o .obj
@@ -712,8 +720,11 @@ mostlyclean-compile:
 distclean-compile:
        -rm -f *.tab.c
 
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscijit_la-jit_gw.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscijit_la-jitter.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscijit_la-sci_runASTwithVMKit.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscijit_la-sci_disableJIT.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscijit_la-sci_enableJIT.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscijit_la-sci_isJIT.Plo@am__quote@
 
 .cpp.o:
 @am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -743,12 +754,33 @@ libscijit_la-jitter.lo: src/cpp/jitter.cpp
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscijit_la-jitter.lo `test -f 'src/cpp/jitter.cpp' || echo '$(srcdir)/'`src/cpp/jitter.cpp
 
-libscijit_la-sci_runASTwithVMKit.lo: sci_gateway/cpp/sci_runASTwithVMKit.cpp
-@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscijit_la-sci_runASTwithVMKit.lo -MD -MP -MF $(DEPDIR)/libscijit_la-sci_runASTwithVMKit.Tpo -c -o libscijit_la-sci_runASTwithVMKit.lo `test -f 'sci_gateway/cpp/sci_runASTwithVMKit.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_runASTwithVMKit.cpp
-@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libscijit_la-sci_runASTwithVMKit.Tpo $(DEPDIR)/libscijit_la-sci_runASTwithVMKit.Plo
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='sci_gateway/cpp/sci_runASTwithVMKit.cpp' object='libscijit_la-sci_runASTwithVMKit.lo' libtool=yes @AMDEPBACKSLASH@
+libscijit_la-jit_gw.lo: sci_gateway/cpp/jit_gw.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscijit_la-jit_gw.lo -MD -MP -MF $(DEPDIR)/libscijit_la-jit_gw.Tpo -c -o libscijit_la-jit_gw.lo `test -f 'sci_gateway/cpp/jit_gw.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/jit_gw.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libscijit_la-jit_gw.Tpo $(DEPDIR)/libscijit_la-jit_gw.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='sci_gateway/cpp/jit_gw.cpp' object='libscijit_la-jit_gw.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscijit_la-jit_gw.lo `test -f 'sci_gateway/cpp/jit_gw.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/jit_gw.cpp
+
+libscijit_la-sci_enableJIT.lo: sci_gateway/cpp/sci_enableJIT.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscijit_la-sci_enableJIT.lo -MD -MP -MF $(DEPDIR)/libscijit_la-sci_enableJIT.Tpo -c -o libscijit_la-sci_enableJIT.lo `test -f 'sci_gateway/cpp/sci_enableJIT.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_enableJIT.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libscijit_la-sci_enableJIT.Tpo $(DEPDIR)/libscijit_la-sci_enableJIT.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='sci_gateway/cpp/sci_enableJIT.cpp' object='libscijit_la-sci_enableJIT.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscijit_la-sci_enableJIT.lo `test -f 'sci_gateway/cpp/sci_enableJIT.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_enableJIT.cpp
+
+libscijit_la-sci_disableJIT.lo: sci_gateway/cpp/sci_disableJIT.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscijit_la-sci_disableJIT.lo -MD -MP -MF $(DEPDIR)/libscijit_la-sci_disableJIT.Tpo -c -o libscijit_la-sci_disableJIT.lo `test -f 'sci_gateway/cpp/sci_disableJIT.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_disableJIT.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libscijit_la-sci_disableJIT.Tpo $(DEPDIR)/libscijit_la-sci_disableJIT.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='sci_gateway/cpp/sci_disableJIT.cpp' object='libscijit_la-sci_disableJIT.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscijit_la-sci_disableJIT.lo `test -f 'sci_gateway/cpp/sci_disableJIT.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_disableJIT.cpp
+
+libscijit_la-sci_isJIT.lo: sci_gateway/cpp/sci_isJIT.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscijit_la-sci_isJIT.lo -MD -MP -MF $(DEPDIR)/libscijit_la-sci_isJIT.Tpo -c -o libscijit_la-sci_isJIT.lo `test -f 'sci_gateway/cpp/sci_isJIT.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_isJIT.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libscijit_la-sci_isJIT.Tpo $(DEPDIR)/libscijit_la-sci_isJIT.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='sci_gateway/cpp/sci_isJIT.cpp' object='libscijit_la-sci_isJIT.lo' libtool=yes @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscijit_la-sci_runASTwithVMKit.lo `test -f 'sci_gateway/cpp/sci_runASTwithVMKit.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_runASTwithVMKit.cpp
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscijit_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscijit_la-sci_isJIT.lo `test -f 'sci_gateway/cpp/sci_isJIT.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_isJIT.cpp
 
 mostlyclean-libtool:
        -rm -f *.lo
@@ -861,13 +893,15 @@ distdir: $(DISTFILES)
        done
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
-check: check-am
+check: $(BUILT_SOURCES)
+       $(MAKE) $(AM_MAKEFLAGS) check-am
 all-am: Makefile $(LTLIBRARIES) $(HEADERS) all-local
 installdirs:
        for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscijit_la_includedir)"; do \
          test -z "$$dir" || $(MKDIR_P) "$$dir"; \
        done
-install: install-am
+install: $(BUILT_SOURCES)
+       $(MAKE) $(AM_MAKEFLAGS) install-am
 install-exec: install-exec-am
 install-data: install-data-am
 uninstall: uninstall-am
@@ -897,6 +931,7 @@ distclean-generic:
 maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"
        @echo "it deletes files that may require special tools to rebuild."
+       -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
 clean: clean-am
 
 clean-am: clean-generic clean-libtool clean-local \
@@ -970,7 +1005,7 @@ ps-am:
 uninstall-am: uninstall-libscijit_la_includeHEADERS \
        uninstall-pkglibLTLIBRARIES
 
-.MAKE: check-am install-am install-strip
+.MAKE: all check check-am install install-am install-strip
 
 .PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \
        check-local clean clean-generic clean-libtool clean-local \
@@ -990,6 +1025,11 @@ uninstall-am: uninstall-libscijit_la_includeHEADERS \
        uninstall-am uninstall-libscijit_la_includeHEADERS \
        uninstall-pkglibLTLIBRARIES
 
+src/cpp/llvm-wrapper-generated.cpp: src/cpp/llvm-wrapper.cpp
+       clang++ -emit-llvm  -I$(top_srcdir)/modules/types/includes/ -I$(top_srcdir)/modules/operations/includes/ -I$(top_srcdir)/modules/core/includes/  -I$(top_srcdir)/modules/ast/includes/ -I$(top_srcdir)/modules/localization/includes/ -I$(top_srcdir)/modules/symbol/includes/ -I$(top_srcdir)/modules/dynamic_link/includes/ $(EIGEN_CPPFLAGS) -c src/cpp/llvm-wrapper.cpp -o src/cpp/llvm-wrapper.bc
+#      llc-3.3 -march=cpp -cppgen=contents src/cpp/llvm-wrapper.bc -o - | perl src/perl/demangle.pl > src/cpp/llvm-wrapper-generated.cpp
+       llc-3.3 -march=cpp -cppgen=contents src/cpp/llvm-wrapper.bc -o - > src/cpp/llvm-wrapper-generated.cpp
+       rm src/cpp/llvm-wrapper.bc
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin test