-#\r
-# Translator from Modelica 2.x to flat Modelica\r
-# \r
-# Copyright (C) 2005 2007 Imagine S.A.\r
-# For more information or commercial use please contact us at www.amesim.com\r
-# \r
-# This program is free software; you can redistribute it and/or\r
-# modify it under the terms of the GNU General Public License\r
-# as published by the Free Software Foundation; either version 2\r
-# of the License, or (at your option) any later version.\r
-# \r
-# This program is distributed in the hope that it will be useful,\r
-# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-# GNU General Public License for more details.\r
-# \r
-# You should have received a copy of the GNU General Public License\r
-# along with this program; if not, write to the Free Software\r
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
-# \r
-#\r
-\r
-all: release\r
-\r
-\r
-release: \r
- $(MAKE) opt RELEASE=yes\r
-\r
-debug:\r
- $(MAKE) bytecode RELEASE=no\r
-\r
-depend:\r
- $(MAKE) depends RELEASE=yes\r
-\r
-depends:\r
- cd parsing ; $(MAKE) depend \r
- cd compilation ; $(MAKE) depend\r
- cd instantiation ; $(MAKE) depend\r
- cd exceptionHandling ; $(MAKE) depend\r
- cd translation ; $(MAKE) depend\r
-\r
-opt: \r
- $(MAKE) depend\r
- cd parsing ; $(MAKE) opt RELEASE=$(RELEASE)\r
- cd compilation ; $(MAKE) opt RELEASE=$(RELEASE)\r
- cd instantiation ; $(MAKE) opt RELEASE=$(RELEASE)\r
- cd exceptionHandling ; $(MAKE) opt RELEASE=$(RELEASE)\r
- cd translation ; $(MAKE) opt RELEASE=$(RELEASE)\r
-\r
-custom: \r
- $(MAKE) depend\r
- cd parsing ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
- cd compilation ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
- cd instantiation ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
- cd exceptionHandling ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
- cd translation ; $(MAKE) custom RELEASE=$(RELEASE)\r
-\r
-bytecode: \r
- $(MAKE) depend\r
- cd parsing ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
- cd compilation ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
- cd instantiation ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
- cd exceptionHandling ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
- cd translation ; $(MAKE) bytecode RELEASE=$(RELEASE)\r
-\r
-clean:\r
- cd parsing ; $(MAKE) clean\r
- cd compilation ; $(MAKE) clean\r
- cd instantiation ; $(MAKE) clean\r
- cd exceptionHandling ; $(MAKE) clean\r
- cd translation ; $(MAKE) clean\r
+#
+# Translator from Modelica 2.x to flat Modelica
+#
+# Copyright (C) 2005 2007 Imagine S.A.
+# For more information or commercial use please contact us at www.amesim.com
+#
+# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+
+all: release
+
+
+release:
+ $(MAKE) opt RELEASE=yes
+
+debug:
+ $(MAKE) bytecode RELEASE=no
+
+depend:
+ $(MAKE) depends RELEASE=yes
+
+depends:
+ cd parsing ; $(MAKE) depend
+ cd compilation ; $(MAKE) depend
+ cd instantiation ; $(MAKE) depend
+ cd exceptionHandling ; $(MAKE) depend
+ cd translation ; $(MAKE) depend
+
+opt:
+ $(MAKE) depend
+ cd parsing ; $(MAKE) opt RELEASE=$(RELEASE)
+ cd compilation ; $(MAKE) opt RELEASE=$(RELEASE)
+ cd instantiation ; $(MAKE) opt RELEASE=$(RELEASE)
+ cd exceptionHandling ; $(MAKE) opt RELEASE=$(RELEASE)
+ cd translation ; $(MAKE) opt RELEASE=$(RELEASE)
+
+custom:
+ $(MAKE) depend
+ cd parsing ; $(MAKE) bytecode RELEASE=$(RELEASE)
+ cd compilation ; $(MAKE) bytecode RELEASE=$(RELEASE)
+ cd instantiation ; $(MAKE) bytecode RELEASE=$(RELEASE)
+ cd exceptionHandling ; $(MAKE) bytecode RELEASE=$(RELEASE)
+ cd translation ; $(MAKE) custom RELEASE=$(RELEASE)
+
+bytecode:
+ $(MAKE) depend
+ cd parsing ; $(MAKE) bytecode RELEASE=$(RELEASE)
+ cd compilation ; $(MAKE) bytecode RELEASE=$(RELEASE)
+ cd instantiation ; $(MAKE) bytecode RELEASE=$(RELEASE)
+ cd exceptionHandling ; $(MAKE) bytecode RELEASE=$(RELEASE)
+ cd translation ; $(MAKE) bytecode RELEASE=$(RELEASE)
+
+clean:
+ cd parsing ; $(MAKE) clean
+ cd compilation ; $(MAKE) clean
+ cd instantiation ; $(MAKE) clean
+ cd exceptionHandling ; $(MAKE) clean
+ cd translation ; $(MAKE) clean
-#\r
-# Translator from Modelica 2.x to flat Modelica\r
-# \r
-# Copyright (C) 2005 - 2007 Imagine S.A.\r
-# For more information or commercial use please contact us at www.amesim.com\r
-# \r
-# This program is free software; you can redistribute it and/or\r
-# modify it under the terms of the GNU General Public License\r
-# as published by the Free Software Foundation; either version 2\r
-# of the License, or (at your option) any later version.\r
-# \r
-# This program is distributed in the hope that it will be useful,\r
-# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-# GNU General Public License for more details.\r
-# \r
-# You should have received a copy of the GNU General Public License\r
-# along with this program; if not, write to the Free Software\r
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
-# \r
-#\r
-\r
-OCAMLDEP=ocamldep\r
-OCAMLC=ocamlc\r
-OCAMLOPT=ocamlopt\r
-CAMLP4=camlp4\r
-INCLUDES=-I ../parsing\r
-ifeq ($(RELEASE),yes)\r
-OCAMLFLAGS=$(INCLUDES)\r
-else\r
-OCAMLFLAGS=-g $(INCLUDES)\r
-endif\r
-OCAMLOPTFLAGS=$(INCLUDES)\r
-LIBS=\r
-LIBSOPT=$(LIBS:.cma=.cmxa)\r
-SRCS=types.ml nameResolve.ml\r
-\r
-\r
-OBJS=$(SRCS:.ml=.cmo)\r
-OBJSOPT=$(SRCS:.ml=.cmx)\r
-LIB=compilation.cma\r
-LIBOPT=$(LIB:.cma=.cmxa)\r
-\r
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi\r
-\r
-%.cmo: %mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)\r
- rm -f $(@:.cmo=.tmp)\r
-\r
-%.cmi: %.mpi\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)\r
- rm -f $(@:.cmi=.tmp)\r
-\r
-%.cmx: %.mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)\r
- rm -f $(@:.cmx=.tmp)\r
-\r
-%.cmo: %.ml\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmi: %.mli\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmx: %.ml\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<\r
-\r
-all: bytecode\r
-\r
-opt: $(OBJSOPT)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $(LIBOPT) $(LFLAGS) $(LIBSOPT) $(OBJSOPT)\r
-\r
-bytecode: $(OBJS)\r
- $(OCAMLC) $(OCAMLFLAGS) -a -o $(LIB) $(LFLAGS) $(LIBS) $(OBJS)\r
-\r
-\r
-depend:\r
- $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend\r
-\r
--include .depend\r
-\r
-clean:\r
- rm -f *.cmxa\r
- rm -f *.cm[aiox]\r
- rm -f *.o\r
- rm -f *.obj\r
- rm -f *.a\r
- rm -f *.lib\r
- rm -f *~\r
-\r
+#
+# Translator from Modelica 2.x to flat Modelica
+#
+# Copyright (C) 2005 - 2007 Imagine S.A.
+# For more information or commercial use please contact us at www.amesim.com
+#
+# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+
+OCAMLDEP=ocamldep
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+CAMLP4=camlp4
+INCLUDES=-I ../parsing
+ifeq ($(RELEASE),yes)
+OCAMLFLAGS=$(INCLUDES)
+else
+OCAMLFLAGS=-g $(INCLUDES)
+endif
+OCAMLOPTFLAGS=$(INCLUDES)
+LIBS=
+LIBSOPT=$(LIBS:.cma=.cmxa)
+SRCS=types.ml nameResolve.ml
+
+
+OBJS=$(SRCS:.ml=.cmo)
+OBJSOPT=$(SRCS:.ml=.cmx)
+LIB=compilation.cma
+LIBOPT=$(LIB:.cma=.cmxa)
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi
+
+%.cmo: %mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)
+ rm -f $(@:.cmo=.tmp)
+
+%.cmi: %.mpi
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)
+ rm -f $(@:.cmi=.tmp)
+
+%.cmx: %.mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)
+ rm -f $(@:.cmx=.tmp)
+
+%.cmo: %.ml
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmi: %.mli
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmx: %.ml
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
+
+all: bytecode
+
+opt: $(OBJSOPT)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $(LIBOPT) $(LFLAGS) $(LIBSOPT) $(OBJSOPT)
+
+bytecode: $(OBJS)
+ $(OCAMLC) $(OCAMLFLAGS) -a -o $(LIB) $(LFLAGS) $(LIBS) $(OBJS)
+
+
+depend:
+ $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend
+
+-include .depend
+
+clean:
+ rm -f *.cmxa
+ rm -f *.cm[aiox]
+ rm -f *.o
+ rm -f *.obj
+ rm -f *.a
+ rm -f *.lib
+ rm -f *~
+
-#\r
-# Translator from Modelica 2.x to flat Modelica\r
-# \r
-# Copyright (C) 2005 - 2007 Imagine S.A.\r
-# For more information or commercial use please contact us at www.amesim.com\r
-# \r
-# This program is free software; you can redistribute it and/or\r
-# modify it under the terms of the GNU General Public License\r
-# as published by the Free Software Foundation; either version 2\r
-# of the License, or (at your option) any later version.\r
-# \r
-# This program is distributed in the hope that it will be useful,\r
-# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-# GNU General Public License for more details.\r
-# \r
-# You should have received a copy of the GNU General Public License\r
-# along with this program; if not, write to the Free Software\r
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
-# \r
-#\r
-\r
-OCAMLDEP=ocamldep\r
-OCAMLC=ocamlc\r
-OCAMLOPT=ocamlopt\r
-CAMLP4=camlp4\r
-INCLUDES=-I ../parsing -I ../compilation -I ../instantiation\r
-\r
-ifeq ($(RELEASE),yes)\r
-OCAMLFLAGS=$(INCLUDES)\r
-else\r
-OCAMLFLAGS=-g $(INCLUDES)\r
-endif\r
-\r
-OCAMLOPTFLAGS=$(INCLUDES)\r
-LIBS=\r
-LIBSOPT=$(LIBS:.cma=.cmxa)\r
-\r
-SRCS=errorDico.ml msgDico.ml exceptHandler.ml\r
-\r
-\r
-OBJS=$(SRCS:.ml=.cmo)\r
-OBJSOPT=$(SRCS:.ml=.cmx)\r
-LIB=exceptionHandling.cma\r
-LIBOPT=$(LIB:.cma=.cmxa)\r
-\r
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi\r
-\r
-%.cmo: %mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)\r
- rm -f $(@:.cmo=.tmp)\r
-\r
-%.cmi: %.mpi\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)\r
- rm -f $(@:.cmi=.tmp)\r
-\r
-%.cmx: %.mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)\r
- rm -f $(@:.cmx=.tmp)\r
-\r
-%.cmo: %.ml %.cmi\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmi: %.mli\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmx: %.ml\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<\r
-\r
-\r
-all: bytecode\r
-\r
-opt: $(OBJSOPT)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $(LIBOPT) $(LFLAGS) $(LIBSOPT) \\r
- $(OBJSOPT)\r
-\r
-bytecode: $(OBJS)\r
- $(OCAMLC) $(OCAMLFLAGS) -a -o $(LIB) $(LFLAGS) $(LIBS) $(OBJS)\r
-\r
-depend:\r
- $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend\r
-\r
--include .depend\r
-\r
-clean:\r
- rm -f *.cmxa\r
- rm -f *.cm[aiox]\r
- rm -f *.o\r
- rm -f *.obj\r
- rm -f *.a\r
- rm -f *.lib\r
- rm -f *~\r
- rm -rf doc\r
+#
+# Translator from Modelica 2.x to flat Modelica
+#
+# Copyright (C) 2005 - 2007 Imagine S.A.
+# For more information or commercial use please contact us at www.amesim.com
+#
+# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+
+OCAMLDEP=ocamldep
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+CAMLP4=camlp4
+INCLUDES=-I ../parsing -I ../compilation -I ../instantiation
+
+ifeq ($(RELEASE),yes)
+OCAMLFLAGS=$(INCLUDES)
+else
+OCAMLFLAGS=-g $(INCLUDES)
+endif
+
+OCAMLOPTFLAGS=$(INCLUDES)
+LIBS=
+LIBSOPT=$(LIBS:.cma=.cmxa)
+
+SRCS=errorDico.ml msgDico.ml exceptHandler.ml
+
+
+OBJS=$(SRCS:.ml=.cmo)
+OBJSOPT=$(SRCS:.ml=.cmx)
+LIB=exceptionHandling.cma
+LIBOPT=$(LIB:.cma=.cmxa)
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi
+
+%.cmo: %mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)
+ rm -f $(@:.cmo=.tmp)
+
+%.cmi: %.mpi
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)
+ rm -f $(@:.cmi=.tmp)
+
+%.cmx: %.mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)
+ rm -f $(@:.cmx=.tmp)
+
+%.cmo: %.ml %.cmi
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmi: %.mli
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmx: %.ml
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
+
+
+all: bytecode
+
+opt: $(OBJSOPT)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $(LIBOPT) $(LFLAGS) $(LIBSOPT) \
+ $(OBJSOPT)
+
+bytecode: $(OBJS)
+ $(OCAMLC) $(OCAMLFLAGS) -a -o $(LIB) $(LFLAGS) $(LIBS) $(OBJS)
+
+depend:
+ $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend
+
+-include .depend
+
+clean:
+ rm -f *.cmxa
+ rm -f *.cm[aiox]
+ rm -f *.o
+ rm -f *.obj
+ rm -f *.a
+ rm -f *.lib
+ rm -f *~
+ rm -rf doc
-#\r
-# Translator from Modelica 2.x to flat Modelica\r
-# \r
-# Copyright (C) 2005 - 2007 Imagine S.A.\r
-# For more information or commercial use please contact us at www.amesim.com\r
-# \r
-# This program is free software; you can redistribute it and/or\r
-# modify it under the terms of the GNU General Public License\r
-# as published by the Free Software Foundation; either version 2\r
-# of the License, or (at your option) any later version.\r
-# \r
-# This program is distributed in the hope that it will be useful,\r
-# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-# GNU General Public License for more details.\r
-# \r
-# You should have received a copy of the GNU General Public License\r
-# along with this program; if not, write to the Free Software\r
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
-# \r
-#\r
-\r
-OCAMLDEP=ocamldep\r
-OCAMLC=ocamlc\r
-OCAMLOPT=ocamlopt\r
-CAMLP4=camlp4\r
-INCLUDES=-I ../parsing -I ../compilation\r
-ifeq ($(RELEASE),yes)\r
-OCAMLFLAGS=$(INCLUDES)\r
-else\r
-OCAMLFLAGS=-g $(INCLUDES)\r
-endif\r
-OCAMLOPTFLAGS=$(INCLUDES)\r
-LIBS=\r
-LIBSOPT=$(LIBS:.cma=.cmxa)\r
-SRCS=instantiation.ml\r
-DOCS=instantiation.mli\r
-\r
-OBJS=$(SRCS:.ml=.cmo)\r
-OBJSOPT=$(SRCS:.ml=.cmx)\r
-LIB=instantiation.cma\r
-LIBOPT=$(LIB:.cma=.cmxa)\r
-\r
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi\r
-\r
-%.cmo: %mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)\r
- rm -f $(@:.cmo=.tmp)\r
-\r
-%.cmi: %.mpi\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)\r
- rm -f $(@:.cmi=.tmp)\r
-\r
-%.cmx: %.mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)\r
- rm -f $(@:.cmx=.tmp)\r
-\r
-%.cmo: %.ml\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmi: %.mli\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmx: %.ml\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<\r
-\r
-all: bytecode\r
-\r
-opt: $(OBJSOPT)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $(LIBOPT) $(LFLAGS) $(LIBSOPT) \\r
- $(OBJSOPT)\r
-\r
-bytecode: $(OBJS)\r
- $(OCAMLC) $(OCAMLFLAGS) -a -o $(LIB) $(LFLAGS) $(LIBS) $(OBJS)\r
-\r
-doc: $(DOCS)\r
- mkdir -p doc\r
- $(OCAMLC) $(INCLUDES) -c $(DOCS)\r
- ocamldoc $(INCLUDES) -html -d doc $(DOCS)\r
- ocamldoc $(INCLUDES) -dot -o doc/dependencies.out $(DOCS)\r
-\r
-depend:\r
- $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend\r
-\r
--include .depend\r
-\r
-clean:\r
- rm -f *.cmxa\r
- rm -f *.cm[aiox]\r
- rm -f *.o\r
- rm -f *.obj\r
- rm -f *.a\r
- rm -f *.lib\r
- rm -f *~\r
- rm -rf doc\r
-\r
+#
+# Translator from Modelica 2.x to flat Modelica
+#
+# Copyright (C) 2005 - 2007 Imagine S.A.
+# For more information or commercial use please contact us at www.amesim.com
+#
+# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+
+OCAMLDEP=ocamldep
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+CAMLP4=camlp4
+INCLUDES=-I ../parsing -I ../compilation
+ifeq ($(RELEASE),yes)
+OCAMLFLAGS=$(INCLUDES)
+else
+OCAMLFLAGS=-g $(INCLUDES)
+endif
+OCAMLOPTFLAGS=$(INCLUDES)
+LIBS=
+LIBSOPT=$(LIBS:.cma=.cmxa)
+SRCS=instantiation.ml
+DOCS=instantiation.mli
+
+OBJS=$(SRCS:.ml=.cmo)
+OBJSOPT=$(SRCS:.ml=.cmx)
+LIB=instantiation.cma
+LIBOPT=$(LIB:.cma=.cmxa)
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi
+
+%.cmo: %mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)
+ rm -f $(@:.cmo=.tmp)
+
+%.cmi: %.mpi
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)
+ rm -f $(@:.cmi=.tmp)
+
+%.cmx: %.mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)
+ rm -f $(@:.cmx=.tmp)
+
+%.cmo: %.ml
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmi: %.mli
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmx: %.ml
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
+
+all: bytecode
+
+opt: $(OBJSOPT)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $(LIBOPT) $(LFLAGS) $(LIBSOPT) \
+ $(OBJSOPT)
+
+bytecode: $(OBJS)
+ $(OCAMLC) $(OCAMLFLAGS) -a -o $(LIB) $(LFLAGS) $(LIBS) $(OBJS)
+
+doc: $(DOCS)
+ mkdir -p doc
+ $(OCAMLC) $(INCLUDES) -c $(DOCS)
+ ocamldoc $(INCLUDES) -html -d doc $(DOCS)
+ ocamldoc $(INCLUDES) -dot -o doc/dependencies.out $(DOCS)
+
+depend:
+ $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend
+
+-include .depend
+
+clean:
+ rm -f *.cmxa
+ rm -f *.cm[aiox]
+ rm -f *.o
+ rm -f *.obj
+ rm -f *.a
+ rm -f *.lib
+ rm -f *~
+ rm -rf doc
+
-#\r
-# Translator from Modelica 2.x to flat Modelica\r
-# \r
-# Copyright (C) 2005 - 2007 Imagine S.A.\r
-# For more information or commercial use please contact us at www.amesim.com\r
-# \r
-# This program is free software; you can redistribute it and/or\r
-# modify it under the terms of the GNU General Public License\r
-# as published by the Free Software Foundation; either version 2\r
-# of the License, or (at your option) any later version.\r
-# \r
-# This program is distributed in the hope that it will be useful,\r
-# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-# GNU General Public License for more details.\r
-# \r
-# You should have received a copy of the GNU General Public License\r
-# along with this program; if not, write to the Free Software\r
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
-# \r
-#\r
-\r
-OCAMLDEP=ocamldep\r
-OCAMLC=ocamlc\r
-OCAMLOPT=ocamlopt\r
-CAMLP4=camlp4\r
-INCLUDES=\r
-\r
-ifeq ($(RELEASE),yes)\r
-OCAMLFLAGS=$(INCLUDES)\r
-else\r
-OCAMLFLAGS=-g $(INCLUDES)\r
-endif\r
-\r
-OCAMLOPTFLAGS=$(INCLUDES)\r
-LIBS=\r
-LIBSOPT=$(LIBS:.cma=.cmxa)\r
-SRCS=syntax.ml linenum.ml parser.ml lexer.ml\r
-\r
-\r
-OBJS=$(SRCS:.ml=.cmo)\r
-OBJSOPT=$(SRCS:.ml=.cmx)\r
-LIB=parsing.cma\r
-LIBOPT=$(LIB:.cma=.cmxa)\r
-\r
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi\r
-\r
-%.cmo: %mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)\r
- rm -f $(@:.cmo=.tmp)\r
-\r
-%.cmi: %.mpi\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)\r
- rm -f $(@:.cmi=.tmp)\r
-\r
-%.cmx: %.mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)\r
- rm -f $(@:.cmx=.tmp)\r
-\r
-%.cmo: %.ml\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmi: %.mli\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmx: %.ml\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<\r
-\r
-%.ml %.mli: %.mly\r
- ocamlyacc $(<)\r
- rm -f $(<:.mly=.mli)\r
-\r
-%.ml: %.mll\r
- ocamllex $(<)\r
-all: bytecode\r
-\r
-opt: $(OBJSOPT)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $(LIBOPT) $(LFLAGS) $(LIBSOPT) $(OBJSOPT)\r
-\r
-bytecode: $(OBJS)\r
- $(OCAMLC) $(OCAMLFLAGS) -a -o $(LIB) $(LFLAGS) $(LIBS) $(OBJS)\r
-\r
-parser.ml : parser.mly\r
- ocamlyacc parser.mly\r
- rm -f parser.mli\r
-\r
-lexer.ml : lexer.mll\r
- ocamllex lexer.mll\r
-\r
-linenum.ml : linenum.mll\r
- ocamllex linenum.mll\r
-\r
-depend:\r
- $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend\r
-\r
--include .depend\r
-\r
-clean:\r
- rm -f *.cmxa\r
- rm -f *.cm[aiox]\r
- rm -f *.o\r
- rm -f *.obj\r
- rm -f *.a\r
- rm -f *.lib\r
- rm -f parser.mli\r
- rm -f parser.output\r
- rm -f lexer.mli\r
- rm -f linenum.mli\r
- rm -f *~\r
-\r
+#
+# Translator from Modelica 2.x to flat Modelica
+#
+# Copyright (C) 2005 - 2007 Imagine S.A.
+# For more information or commercial use please contact us at www.amesim.com
+#
+# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+
+OCAMLDEP=ocamldep
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+CAMLP4=camlp4
+INCLUDES=
+
+ifeq ($(RELEASE),yes)
+OCAMLFLAGS=$(INCLUDES)
+else
+OCAMLFLAGS=-g $(INCLUDES)
+endif
+
+OCAMLOPTFLAGS=$(INCLUDES)
+LIBS=
+LIBSOPT=$(LIBS:.cma=.cmxa)
+SRCS=syntax.ml linenum.ml parser.ml lexer.ml
+
+
+OBJS=$(SRCS:.ml=.cmo)
+OBJSOPT=$(SRCS:.ml=.cmx)
+LIB=parsing.cma
+LIBOPT=$(LIB:.cma=.cmxa)
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi
+
+%.cmo: %mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)
+ rm -f $(@:.cmo=.tmp)
+
+%.cmi: %.mpi
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)
+ rm -f $(@:.cmi=.tmp)
+
+%.cmx: %.mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)
+ rm -f $(@:.cmx=.tmp)
+
+%.cmo: %.ml
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmi: %.mli
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmx: %.ml
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
+
+%.ml %.mli: %.mly
+ ocamlyacc $(<)
+ rm -f $(<:.mly=.mli)
+
+%.ml: %.mll
+ ocamllex $(<)
+all: bytecode
+
+opt: $(OBJSOPT)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $(LIBOPT) $(LFLAGS) $(LIBSOPT) $(OBJSOPT)
+
+bytecode: $(OBJS)
+ $(OCAMLC) $(OCAMLFLAGS) -a -o $(LIB) $(LFLAGS) $(LIBS) $(OBJS)
+
+parser.ml : parser.mly
+ ocamlyacc parser.mly
+ rm -f parser.mli
+
+lexer.ml : lexer.mll
+ ocamllex lexer.mll
+
+linenum.ml : linenum.mll
+ ocamllex linenum.mll
+
+depend:
+ $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend
+
+-include .depend
+
+clean:
+ rm -f *.cmxa
+ rm -f *.cm[aiox]
+ rm -f *.o
+ rm -f *.obj
+ rm -f *.a
+ rm -f *.lib
+ rm -f parser.mli
+ rm -f parser.output
+ rm -f lexer.mli
+ rm -f linenum.mli
+ rm -f *~
+
-#\r
-# Translator from Modelica 2.x to flat Modelica\r
-# \r
-# Copyright (C) 2005 - 2007 Imagine S.A.\r
-# For more information or commercial use please contact us at www.amesim.com\r
-# \r
-# This program is free software; you can redistribute it and/or\r
-# modify it under the terms of the GNU General Public License\r
-# as published by the Free Software Foundation; either version 2\r
-# of the License, or (at your option) any later version.\r
-# \r
-# This program is distributed in the hope that it will be useful,\r
-# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-# GNU General Public License for more details.\r
-# \r
-# You should have received a copy of the GNU General Public License\r
-# along with this program; if not, write to the Free Software\r
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
-# \r
-#\r
-\r
-EXE=translator\r
-OCAMLDEP=ocamldep\r
-OCAMLC=ocamlc\r
-OCAMLOPT=ocamlopt\r
-CAMLP4=camlp4\r
-INCLUDES=-I ../parsing -I ../compilation -I ../instantiation -I ../exceptionHandling\r
-\r
-ifeq ($(RELEASE),yes)\r
-OCAMLFLAGS=$(INCLUDES)\r
-else\r
-OCAMLFLAGS=-g $(INCLUDES)\r
-endif\r
-\r
-OCAMLOPTFLAGS=$(INCLUDES)\r
-LIBS=../parsing/parsing.cma ../compilation/compilation.cma \\r
- ../instantiation/instantiation.cma ../exceptionHandling/exceptionHandling.cma \\r
- unix.cma\r
-LIBSOPT=$(LIBS:.cma=.cmxa)\r
-\r
-SRCS=codeGeneration.ml libraryManager.ml versiondate.ml\r
-\r
-\r
-OBJS=$(SRCS:.ml=.cmo)\r
-OBJSOPT=$(SRCS:.ml=.cmx)\r
-\r
-# Avoid problems with svn command\r
-LANG:=C\r
-export LANG\r
-\r
-SVNLASTCHANGEDATESTR:=$(shell svn info .. | grep "Last Changed Date:")\r
-SVNLASTCHANGEREVSTR:=$(shell svn info .. | grep "Last Changed Rev:")\r
-\r
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi\r
-\r
-%.cmo: %mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)\r
- rm -f $(@:.cmo=.tmp)\r
-\r
-%.cmi: %.mpi\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)\r
- $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)\r
- rm -f $(@:.cmi=.tmp)\r
-\r
-%.cmx: %.mlp\r
- $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)\r
- rm -f $(@:.cmx=.tmp)\r
-\r
-%.cmo: %.ml %.cmi\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmi: %.mli\r
- $(OCAMLC) $(OCAMLFLAGS) -c $<\r
-\r
-%.cmx: %.ml\r
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<\r
-\r
-\r
-all: bytecode\r
-\r
-opt: $(OBJSOPT)\r
+#
+# Translator from Modelica 2.x to flat Modelica
+#
+# Copyright (C) 2005 - 2007 Imagine S.A.
+# For more information or commercial use please contact us at www.amesim.com
+#
+# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+
+EXE=translator
+OCAMLDEP=ocamldep
+OCAMLC=ocamlc
+OCAMLOPT=ocamlopt
+CAMLP4=camlp4
+INCLUDES=-I ../parsing -I ../compilation -I ../instantiation -I ../exceptionHandling
+
+ifeq ($(RELEASE),yes)
+OCAMLFLAGS=$(INCLUDES)
+else
+OCAMLFLAGS=-g $(INCLUDES)
+endif
+
+OCAMLOPTFLAGS=$(INCLUDES)
+LIBS=../parsing/parsing.cma ../compilation/compilation.cma \
+ ../instantiation/instantiation.cma ../exceptionHandling/exceptionHandling.cma \
+ unix.cma
+LIBSOPT=$(LIBS:.cma=.cmxa)
+
+SRCS=codeGeneration.ml libraryManager.ml versiondate.ml
+
+
+OBJS=$(SRCS:.ml=.cmo)
+OBJSOPT=$(SRCS:.ml=.cmx)
+
+# Avoid problems with svn command
+LANG:=C
+export LANG
+
+SVNLASTCHANGEDATESTR:=$(shell svn info .. | grep "Last Changed Date:")
+SVNLASTCHANGEREVSTR:=$(shell svn info .. | grep "Last Changed Rev:")
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi
+
+%.cmo: %mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmo=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -impl $(@:.cmo=.tmp)
+ rm -f $(@:.cmo=.tmp)
+
+%.cmi: %.mpi
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -intf $< > $(@:.cmi=.tmp)
+ $(OCAMLC) $(OCAMLFLAGS) -c -intf $(@:.cmi=.tmp)
+ rm -f $(@:.cmi=.tmp)
+
+%.cmx: %.mlp
+ $(CAMLP4) pa_o.cmo pa_op.cmo pr_o.cmo -impl $< > $(@:.cmx=.tmp)
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -impl $(@:.cmx=.tmp)
+ rm -f $(@:.cmx=.tmp)
+
+%.cmo: %.ml %.cmi
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmi: %.mli
+ $(OCAMLC) $(OCAMLFLAGS) -c $<
+
+%.cmx: %.ml
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
+
+
+all: bytecode
+
+opt: $(OBJSOPT)
$(OCAMLOPT) -verbose $(OCAMLOPTFLAGS) -o $(EXE) $(LFLAGS) $(LIBSOPT) $(OBJSOPT) translator.ml
cp $(EXE) ../../../
rm -f $(EXE)
-\r
-bytecode: $(OBJS)\r
- $(OCAMLC) $(OCAMLFLAGS) -o $(EXE) $(LFLAGS) $(LIBS) $(OBJS) translator.ml\r
-\r
-custom: $(OBJS)\r
- $(OCAMLC) -verbose -custom $(OCAMLFLAGS) -o $(EXE) $(LFLAGS) $(LIBS) $(OBJS) translator.ml \r
-\r
-depend: version $(SRCS)\r
- $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend\r
-\r
-versiontarget : \r
-ifeq ("$(strip $(SVNLASTCHANGEDATESTR))", "")\r
-ifeq ("$(strip $(wildcard versiondate.ml))", "")\r
- @echo "***********************************************"\r
- @echo "*** Could not expand the SVN version date *****"\r
- @echo "*** using the template file as it is *****"\r
- @echo "*** The build date will not be correct *****"\r
- @echo "***********************************************"\r
- cp -p versiondate.ml.tmpl versiondate.ml\r
-else\r
- @echo "***********************************************"\r
- @echo "*** Reusing existing versiondate.ml ******"\r
- @echo "***********************************************"\r
-endif\r
-else\r
- sed -e '/let/s/AUTO_UPDATE_DATE/$(SVNLASTCHANGEDATESTR)/' -e '/let/s/AUTO_UPDATE_REV/$(SVNLASTCHANGEREVSTR)/' < versiondate.ml.tmpl > versiondate.ml\r
-endif\r
-\r
-version:\r
- $(MAKE) versiontarget\r
-\r
-versiondate.ml: $(filter-out versiondate.ml, $(SRCS))\r
- $(MAKE) versiontarget\r
-\r
--include .depend\r
-\r
-clean:\r
- rm -f *.cmxa\r
- rm -f *.cm[aiox]\r
- rm -f *.o\r
- rm -f *.obj\r
+
+bytecode: $(OBJS)
+ $(OCAMLC) $(OCAMLFLAGS) -o $(EXE) $(LFLAGS) $(LIBS) $(OBJS) translator.ml
+
+custom: $(OBJS)
+ $(OCAMLC) -verbose -custom $(OCAMLFLAGS) -o $(EXE) $(LFLAGS) $(LIBS) $(OBJS) translator.ml
+
+depend: version $(SRCS)
+ $(OCAMLDEP) $(INCLUDES) $(SRCS:.ml=.mli) $(SRCS) > .depend
+
+versiontarget :
+ifeq ("$(strip $(SVNLASTCHANGEDATESTR))", "")
+ifeq ("$(strip $(wildcard versiondate.ml))", "")
+ @echo "***********************************************"
+ @echo "*** Could not expand the SVN version date *****"
+ @echo "*** using the template file as it is *****"
+ @echo "*** The build date will not be correct *****"
+ @echo "***********************************************"
+ cp -p versiondate.ml.tmpl versiondate.ml
+else
+ @echo "***********************************************"
+ @echo "*** Reusing existing versiondate.ml ******"
+ @echo "***********************************************"
+endif
+else
+ sed -e '/let/s/AUTO_UPDATE_DATE/$(SVNLASTCHANGEDATESTR)/' -e '/let/s/AUTO_UPDATE_REV/$(SVNLASTCHANGEREVSTR)/' < versiondate.ml.tmpl > versiondate.ml
+endif
+
+version:
+ $(MAKE) versiontarget
+
+versiondate.ml: $(filter-out versiondate.ml, $(SRCS))
+ $(MAKE) versiontarget
+
+-include .depend
+
+clean:
+ rm -f *.cmxa
+ rm -f *.cm[aiox]
+ rm -f *.o
+ rm -f *.obj
rm -f $(EXE)
- rm -f *~\r
+ rm -f *~