Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,721 additions
and
1,688 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.externalToolBuilders/OMDev-MINGW-OpenModelicaBuilder.launch-sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType"> | ||
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${workspace}"/> | ||
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="false"/> | ||
<mapAttribute key="org.eclipse.debug.core.environmentVariables"> | ||
<mapEntry key="OPENMODELICAHOME" value="${project_loc}/build"/> | ||
<mapEntry key="TMP" value="${env_var:TMP}"/> | ||
<mapEntry key="OMDEV" value="/c/OMDev/"/> | ||
<mapEntry key="OMC_BUILD_FROM" value="mo"/> | ||
<mapEntry key="SystemRoot" value="${env_var:SystemRoot}"/> | ||
<mapEntry key="CLASSPATH" value="${env_var:OMDEV}/bin/antlr/antlr.jar"/> | ||
<mapEntry key="PATH" value="${env_var:OMDEV}/tools/mingw/bin;${env_var:OMDEV}/tools/msys/bin;${env_var:OMDEV}/tools/rml/bin/;${env_var:OMDEV}/tools/msys/local/bin;${env_var:OMDEV}/bin/mico/;c:/windows;c:/windows/system32;"/> | ||
<mapEntry key="OMC_BUILD_STATIC" value="/static"/> | ||
<mapEntry key="COMSPEC" value="${env_var:COMSPEC}"/> | ||
<mapEntry key="TEMP" value="${env_var:TEMP}"/> | ||
<mapEntry key="SystemDrive" value="${env_var:SystemDrive}"/> | ||
<mapEntry key="OPENMODELICALIBRARY" value="${project_loc}\build\lib\omlibrary\"/> | ||
</mapAttribute> | ||
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/> | ||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${env_var:OMDEV}\tools\msys\bin\make.exe"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-f Makefile.omdev.mingw ${string_prompt}"/> | ||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${project_loc}"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
*.c text eol=native | ||
*.cpp text eol=native | ||
*.h text eol=native | ||
*.m4 text eol=native | ||
.gitattributes text eol=LF | ||
.gitignore text eol=LF | ||
*.md text eol=native | ||
LICENSE text eol=native | ||
configure.ac text eol=native | ||
Makefile* text eol=native | ||
*.pro text eol=native | ||
*.mo eol=LF | ||
*.g text eol=LF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,88 @@ | ||
# Adrian Pop, adrpo@ida.liu.se, 2006-02-01 | ||
# Makefile for compilation of OMC using OMDev-mingw | ||
# OMDev-mingw: http://www.ida.liu.se/~adrpo/omc/omdev/ | ||
# | ||
# $Id: Makefile.omdev.mingw.in 1817 2006-02-01 12:21:26Z adrpo $ | ||
# | ||
# The path to the OMDev-mingw package MUST BE SET! | ||
#OMDEV=$OMDEV | ||
# Test if the needed variables are there... | ||
.testvariables: | ||
ifndef OMDEV | ||
@echo You have to set the OMDEV variabile pointing to your OMDev package root! Exiting.... | ||
@echo Take the OMDev package from: http://www.ida.liu.se/~adrpo/omc/omdev/ | ||
@echo For questions or problems email Adrian Pop, adrpo@ida.liu.se | ||
ABORT | ||
endif | ||
srcdir= . | ||
top_builddir= .. | ||
builddir_bin=$(top_builddir)/build/bin | ||
builddir_scripts=$(top_builddir)/build/share/omc/scripts | ||
builddir_lib=$(top_builddir)/build/lib/omc | ||
# adrpo, libsocket should be -lwsock32 but is not needed! | ||
LIBSOCKET = -lwsock32 | ||
SHELL = /bin/sh | ||
CC = cc | ||
override CFLAGS += $(USE_CORBA) | ||
USE_CORBA = -DUSE_CORBA | ||
CORBAHOME = $(OMDEV) | ||
SCRIPT_FILES = Compile.bat openmodelica.lefty default_profiling.xsl replace-startValue.* simcodedump.xsl ngspicetoModelica.py | ||
SUBDIRS = runtime Script | ||
.SUFFIXES: | ||
.SUFFIXES: .o .mo .h | ||
.PHONY: all subdirs report vctarget release clean test reallyclean builtin | ||
all : .testvariables release simcode builtin | ||
include Makefile.common | ||
release: .testvariables install | ||
install_scripts: | ||
cd scripts; cp -puf $(SCRIPT_FILES) ../$(builddir_scripts) | ||
install: install_scripts # install_doc | ||
cp OpenModelicaBootstrappingHeader.h $(top_builddir)/build/include/omc/ | ||
clean: | ||
@for d in $(SUBDIRS); do \ | ||
(cd $$d ; $(MAKE) -f Makefile.omdev.mingw clean) \ | ||
done | ||
-cd $(builddir_bin) && rm -f $(SCRIPT_FILES) | ||
reallyclean: | ||
@for d in $(SUBDIRS); do \ | ||
(cd $$d ; $(MAKE) -f Makefile.omdev.mingw reallyclean) \ | ||
done | ||
report: | ||
@(cd report ; $(MAKE)) | ||
ifeq ($(wildcard ../build/bin/omc.exe),) | ||
simcode: | ||
@echo OpenModelica has not been compiled yet. Using previously generated SimCode files. | ||
else | ||
simcode: OpenModelicaBootstrappingHeader.h | ||
$(MAKE) -C Template/ -f Makefile.omdev.mingw | ||
OpenModelicaBootstrappingHeader.h: FrontEnd/Absyn.mo Script/GlobalScript.mo FrontEnd/Values.mo Util/Error.mo Util/Util.mo Util/FMI.mo GenerateOMCHeader.mos | ||
../build/bin/omc +g=MetaModelica GenerateOMCHeader.mos > $@.log || (cat $@.log && false) | ||
@mv $@.new $@ | ||
endif | ||
$(SUSANMO): simcode | ||
builtin: | ||
cp FrontEnd/ModelicaBuiltin.mo FrontEnd/MetaModelicaBuiltin.mo $(builddir_lib) | ||
#.PRECIOUS: Makefile.omdev.mingw | ||
# | ||
#Makefile.omdev.mingw: Makefile.omdev.mingw.in | ||
# $(top_builddir)/config.status Makefile.omdev.mingw | ||
# Adrian Pop, adrpo@ida.liu.se, 2006-02-01 | ||
# Makefile for compilation of OMC using OMDev-mingw | ||
# OMDev-mingw: http://www.ida.liu.se/~adrpo/omc/omdev/ | ||
# | ||
# $Id: Makefile.omdev.mingw.in 1817 2006-02-01 12:21:26Z adrpo $ | ||
# | ||
|
||
# The path to the OMDev-mingw package MUST BE SET! | ||
#OMDEV=$OMDEV | ||
# Test if the needed variables are there... | ||
|
||
.testvariables: | ||
ifndef OMDEV | ||
@echo You have to set the OMDEV variabile pointing to your OMDev package root! Exiting.... | ||
@echo Take the OMDev package from: http://www.ida.liu.se/~adrpo/omc/omdev/ | ||
@echo For questions or problems email Adrian Pop, adrpo@ida.liu.se | ||
ABORT | ||
endif | ||
|
||
srcdir= . | ||
top_builddir= .. | ||
builddir_bin=$(top_builddir)/build/bin | ||
builddir_scripts=$(top_builddir)/build/share/omc/scripts | ||
builddir_lib=$(top_builddir)/build/lib/omc | ||
|
||
# adrpo, libsocket should be -lwsock32 but is not needed! | ||
LIBSOCKET = -lwsock32 | ||
|
||
SHELL = /bin/sh | ||
CC = cc | ||
override CFLAGS += $(USE_CORBA) | ||
|
||
USE_CORBA = -DUSE_CORBA | ||
CORBAHOME = $(OMDEV) | ||
|
||
SCRIPT_FILES = Compile.bat openmodelica.lefty default_profiling.xsl replace-startValue.* simcodedump.xsl ngspicetoModelica.py | ||
|
||
SUBDIRS = runtime Script | ||
|
||
.SUFFIXES: | ||
.SUFFIXES: .o .mo .h | ||
.PHONY: all subdirs report vctarget release clean test reallyclean builtin | ||
|
||
all : .testvariables release simcode builtin | ||
|
||
include Makefile.common | ||
|
||
release: .testvariables install | ||
|
||
install_scripts: | ||
cd scripts; cp -puf $(SCRIPT_FILES) ../$(builddir_scripts) | ||
|
||
install: install_scripts # install_doc | ||
cp OpenModelicaBootstrappingHeader.h $(top_builddir)/build/include/omc/ | ||
|
||
clean: | ||
@for d in $(SUBDIRS); do \ | ||
(cd $$d ; $(MAKE) -f Makefile.omdev.mingw clean) \ | ||
done | ||
-cd $(builddir_bin) && rm -f $(SCRIPT_FILES) | ||
|
||
reallyclean: | ||
@for d in $(SUBDIRS); do \ | ||
(cd $$d ; $(MAKE) -f Makefile.omdev.mingw reallyclean) \ | ||
done | ||
|
||
report: | ||
@(cd report ; $(MAKE)) | ||
|
||
ifeq ($(wildcard ../build/bin/omc.exe),) | ||
simcode: | ||
@echo OpenModelica has not been compiled yet. Using previously generated SimCode files. | ||
else | ||
simcode: OpenModelicaBootstrappingHeader.h | ||
$(MAKE) -C Template/ -f Makefile.omdev.mingw | ||
OpenModelicaBootstrappingHeader.h: FrontEnd/Absyn.mo Script/GlobalScript.mo FrontEnd/Values.mo Util/Error.mo Util/Util.mo Util/FMI.mo GenerateOMCHeader.mos | ||
../build/bin/omc +g=MetaModelica GenerateOMCHeader.mos > $@.log || (cat $@.log && false) | ||
@mv $@.new $@ | ||
endif | ||
$(SUSANMO): simcode | ||
|
||
builtin: | ||
cp FrontEnd/ModelicaBuiltin.mo FrontEnd/MetaModelicaBuiltin.mo $(builddir_lib) | ||
|
||
#.PRECIOUS: Makefile.omdev.mingw | ||
# | ||
#Makefile.omdev.mingw: Makefile.omdev.mingw.in | ||
# $(top_builddir)/config.status Makefile.omdev.mingw |
Oops, something went wrong.