build translator.exe on Windows
Allan CORNET [Wed, 6 Jan 2010 13:00:42 +0000 (14:00 +0100)]
scilab/modules/scicos/.gitignore
scilab/modules/scicos/src/translator/compilation/makefile.mak [new file with mode: 0644]
scilab/modules/scicos/src/translator/exceptionHandling/makefile.mak [new file with mode: 0644]
scilab/modules/scicos/src/translator/instantiation/makefile.mak [new file with mode: 0644]
scilab/modules/scicos/src/translator/makefile.mak [new file with mode: 0644]
scilab/modules/scicos/src/translator/parsing/makefile.mak [new file with mode: 0644]
scilab/modules/scicos/src/translator/translation/makefile.mak [new file with mode: 0644]

index e6ecdc0..5a2e012 100644 (file)
@@ -15,11 +15,13 @@ src/modelica_compiler/*.obj
 
 #XML2Modelica
 XML2Modelica
+xml2modelica.exe
 src/xml2modelica/*.cmi
 src/xml2modelica/*.cmo
 
 #translator
 translator
+translator.exe
 src/translator/compilation/compilation.a
 src/translator/compilation/*.cmxa
 src/translator/compilation/*.cmi
diff --git a/scilab/modules/scicos/src/translator/compilation/makefile.mak b/scilab/modules/scicos/src/translator/compilation/makefile.mak
new file mode 100644 (file)
index 0000000..1832bec
--- /dev/null
@@ -0,0 +1,53 @@
+#  Scicos
+#
+#  Copyright (C) INRIA - scilab 
+#  Copyright (C) DIGITEO - 2009 - Allan CORNET
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file ./license.txt
+
+!IF "$(OCAMLLIB)" == ""
+OCAMLPATH=C:\Program Files\Objective Caml
+!ELSE
+OCAMLPATH=$(OCAMLLIB)\..
+!ENDIF
+
+OCAMLPATHBIN=$(OCAMLPATH)\bin
+OCAMLPATHLIB=$(OCAMLPATH)\lib
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+OCAMLDEP=ocamldep
+CAMLP4=camlp4
+OCAMLYACC=ocamlyacc
+OCAMLLEX=ocamllex
+RM=del
+
+all::
+       $(OCAMLC) -g -I ..\parsing -c types.ml
+       $(OCAMLC) -g -I ..\parsing -c nameResolve.ml
+       $(OCAMLC) -g -I ..\parsing -a -o compilation.cma types.cmo nameResolve.cmo
+
+       
+clean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
+       
+distclean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
+       
\ No newline at end of file
diff --git a/scilab/modules/scicos/src/translator/exceptionHandling/makefile.mak b/scilab/modules/scicos/src/translator/exceptionHandling/makefile.mak
new file mode 100644 (file)
index 0000000..48f4abb
--- /dev/null
@@ -0,0 +1,56 @@
+#  Scicos
+#
+#  Copyright (C) INRIA - scilab 
+#  Copyright (C) DIGITEO - 2009 - Allan CORNET
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file ./license.txt
+
+!IF "$(OCAMLLIB)" == ""
+OCAMLPATH=C:\Program Files\Objective Caml
+!ELSE
+OCAMLPATH=$(OCAMLLIB)\..
+!ENDIF
+
+OCAMLPATHBIN=$(OCAMLPATH)\bin
+OCAMLPATHLIB=$(OCAMLPATH)\lib
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+OCAMLDEP=ocamldep
+CAMLP4=camlp4
+OCAMLYACC=ocamlyacc
+OCAMLLEX=ocamllex
+RM=del
+
+all::
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -c ..\parsing\parser.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -c ..\compilation\nameResolve.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -c ..\instantiation\instantiation.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -c errorDico.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -c msgDico.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -c ..\parsing\linenum.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -c exceptHandler.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ../instantiation -a -o exceptionHandling.cma errorDico.cmo msgDico.cmo exceptHandler.cmo
+       
+clean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
+       
+distclean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
diff --git a/scilab/modules/scicos/src/translator/instantiation/makefile.mak b/scilab/modules/scicos/src/translator/instantiation/makefile.mak
new file mode 100644 (file)
index 0000000..d29cea6
--- /dev/null
@@ -0,0 +1,51 @@
+#  Scicos
+#
+#  Copyright (C) INRIA - scilab 
+#  Copyright (C) DIGITEO - 2009 - Allan CORNET
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file ./license.txt
+
+!IF "$(OCAMLLIB)" == ""
+OCAMLPATH=C:\Program Files\Objective Caml
+!ELSE
+OCAMLPATH=$(OCAMLLIB)\..
+!ENDIF
+
+OCAMLPATHBIN=$(OCAMLPATH)\bin
+OCAMLPATHLIB=$(OCAMLPATH)\lib
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+OCAMLDEP=ocamldep
+CAMLP4=camlp4
+OCAMLYACC=ocamlyacc
+OCAMLLEX=ocamllex
+RM=del
+
+all::
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -c instantiation.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -a -o instantiation.cma instantiation.cmo
+
+       
+clean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
+       
+distclean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
diff --git a/scilab/modules/scicos/src/translator/makefile.mak b/scilab/modules/scicos/src/translator/makefile.mak
new file mode 100644 (file)
index 0000000..eeeae58
--- /dev/null
@@ -0,0 +1,73 @@
+#  Scicos
+#
+#  Copyright (C) DIGITEO - 2010 - Allan CORNET
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file ./license.txt
+
+MAKE=nmake /f makefile.mak
+
+all::
+       @cd compilation
+       @$(MAKE) all
+       @cd ..
+       
+       @cd instantiation
+       @$(MAKE) all
+       @cd ..  
+       
+       @cd exceptionHandling
+       @$(MAKE) all
+       @cd ..  
+       
+       @cd translation
+       @$(MAKE) all
+       @cd ..  
+       
+clean::
+       @cd compilation
+       @$(MAKE) clean
+       @cd ..
+       
+       @cd instantiation
+       @$(MAKE) clean
+       @cd ..  
+       
+       @cd exceptionHandling
+       @$(MAKE) clean
+       @cd ..  
+       
+       @cd translation
+       @$(MAKE) clean
+       @cd ..  
+       
+distclean::    
+       @cd compilation
+       @$(MAKE) distclean
+       @cd ..
+       
+       @cd instantiation
+       @$(MAKE) distclean
+       @cd ..  
+       
+       @cd exceptionHandling
+       @$(MAKE) distclean
+       @cd ..  
+       
+       @cd translation
+       @$(MAKE) distclean
+       @cd ..  
+       
\ No newline at end of file
diff --git a/scilab/modules/scicos/src/translator/parsing/makefile.mak b/scilab/modules/scicos/src/translator/parsing/makefile.mak
new file mode 100644 (file)
index 0000000..7af29f0
--- /dev/null
@@ -0,0 +1,56 @@
+#  Scicos
+#
+#  Copyright (C) INRIA - scilab 
+#  Copyright (C) DIGITEO - 2009 - Allan CORNET
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file ./license.txt
+
+!IF "$(OCAMLLIB)" == ""
+OCAMLPATH=C:\Program Files\Objective Caml
+!ELSE
+OCAMLPATH=$(OCAMLLIB)\..
+!ENDIF
+
+OCAMLPATHBIN=$(OCAMLPATH)\bin
+OCAMLPATHLIB=$(OCAMLPATH)\lib
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+OCAMLDEP=ocamldep
+CAMLP4=camlp4
+OCAMLYACC=ocamlyacc
+OCAMLLEX=ocamllex
+RM=del
+
+all::
+       $(OCAMLC) -g  -c syntax.ml
+       $(OCAMLC) -g  -c linenum.ml
+       $(OCAMLYACC) parser.mly
+       $(RM) parser.mli
+       $(OCAMLC) -g -c parser.ml
+       $(OCAMLC) -g -c lexer.ml
+       $(OCAMLC) -g -a -o parsing.cma syntax.cmo linenum.cmo parser.cmo lexer.cmo
+       
+clean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
+       
+distclean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
+       
diff --git a/scilab/modules/scicos/src/translator/translation/makefile.mak b/scilab/modules/scicos/src/translator/translation/makefile.mak
new file mode 100644 (file)
index 0000000..b015cfa
--- /dev/null
@@ -0,0 +1,59 @@
+#  Scicos
+#
+#  Copyright (C) INRIA - scilab 
+#  Copyright (C) DIGITEO - 2009 - Allan CORNET
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file ./license.txt
+
+!IF "$(OCAMLLIB)" == ""
+OCAMLPATH=C:\Program Files\Objective Caml
+!ELSE
+OCAMLPATH=$(OCAMLLIB)\..
+!ENDIF
+
+OCAMLPATHBIN=$(OCAMLPATH)\bin
+OCAMLPATHLIB=$(OCAMLPATH)\lib
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+OCAMLDEP=ocamldep
+CAMLP4=camlp4
+OCAMLYACC=ocamlyacc
+OCAMLLEX=ocamllex
+RM=del
+EXEC=translator.exe
+
+all::
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -I ..\exceptionHandling -c ..\compilation\types.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -I ..\exceptionHandling -c codeGeneration.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -I ..\exceptionHandling -c ..\parsing\lexer.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -I ..\exceptionHandling -c libraryManager.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -I ..\exceptionHandling -c versiondate.ml
+       $(OCAMLC) -g -I ..\parsing -I ..\compilation -I ..\instantiation -I ..\exceptionHandling -o $(EXEC)  ..\parsing\parsing.cma ../compilation/compilation.cma ../instantiation/instantiation.cma ../exceptionHandling/exceptionHandling.cma unix.cma codeGeneration.cmo libraryManager.cmo versiondate.cmo translator.ml
+       @copy  $(EXEC) ..\..\..\..\..\bin\$(EXEC)
+
+clean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
+       @-$(RM) $(EXEC)
+       @-$(RM) ..\..\..\..\bin\$(EXEC)
+       
+distclean::
+       @-$(RM) *.cmo
+       @-$(RM) *.cma
+       @-$(RM) *.cmi
+