Skip to content

Commit

Permalink
Add gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed May 5, 2015
1 parent 8806a16 commit 56ab447
Show file tree
Hide file tree
Showing 30 changed files with 1,637 additions and 1,624 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
@@ -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
176 changes: 88 additions & 88 deletions Compiler/Makefile.omdev.mingw
@@ -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
80 changes: 40 additions & 40 deletions Compiler/runtime/Makefile.omdev.mingw
@@ -1,40 +1,40 @@
# Adrian Pop, adrpo@ida.liu.se, 2006-02-01
# Makefile for Compiler/runtime 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
USE_CORBA = -DUSE_CORBA
USE_METIS = -DUSE_METIS
CORBAHOME = $(OMDEV)
FMIINCLUDE = ../../3rdParty/FMIL/install/include
GRAPHINCLUDE=../../3rdParty/metis-5.1.0/include
GRAPHSTREAMINCLUDE = ../../3rdParty/graphstream/gs-netstream/c++/src/
CJSONINCLUDE = ../../3rdParty/cJSON/
OMPCC = gcc -fopenmp
# We always compile with corba on OMDev-mingw
CORBAINCL = -I$(CORBAHOME)/include/mico-msys-mingw/
OMCCORBASRC = omc_communication.o omc_communication_impl.o Corba_omc.o
SHELL = /bin/sh
CC = gcc
CXX = g++
IDL = $(OMDEV)/bin/mico/idl
override CFLAGS += -I. $(USE_CORBA) $(USE_METIS) -DBUILD_MICO_DLL -Wall -Wno-unused-variable -I../../ -I$(top_builddir) -I$(top_builddir)/SimulationRuntime/c -I$(top_builddir)/SimulationRuntime/c/simulation/results -I$(top_builddir)/SimulationRuntime/c/util -I$(top_builddir)/SimulationRuntime/c/meta -I$(top_builddir)/SimulationRuntime/c/meta/gc -I../ $(CORBAINCL) -I$(FMIINCLUDE) -I../../3rdParty/gc/include -I$(GRAPHSTREAMINCLUDE) -I$(CJSONINCLUDE) -I$(GRAPHINCLUDE)
CXXFLAGS = $(CFLAGS)
include Makefile.common
# Adrian Pop, adrpo@ida.liu.se, 2006-02-01
# Makefile for Compiler/runtime 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

USE_CORBA = -DUSE_CORBA
USE_METIS = -DUSE_METIS
CORBAHOME = $(OMDEV)
FMIINCLUDE = ../../3rdParty/FMIL/install/include
GRAPHINCLUDE=../../3rdParty/metis-5.1.0/include
GRAPHSTREAMINCLUDE = ../../3rdParty/graphstream/gs-netstream/c++/src/
CJSONINCLUDE = ../../3rdParty/cJSON/

OMPCC = gcc -fopenmp

# We always compile with corba on OMDev-mingw
CORBAINCL = -I$(CORBAHOME)/include/mico-msys-mingw/
OMCCORBASRC = omc_communication.o omc_communication_impl.o Corba_omc.o

SHELL = /bin/sh
CC = gcc
CXX = g++
IDL = $(OMDEV)/bin/mico/idl
override CFLAGS += -I. $(USE_CORBA) $(USE_METIS) -DBUILD_MICO_DLL -Wall -Wno-unused-variable -I../../ -I$(top_builddir) -I$(top_builddir)/SimulationRuntime/c -I$(top_builddir)/SimulationRuntime/c/simulation/results -I$(top_builddir)/SimulationRuntime/c/util -I$(top_builddir)/SimulationRuntime/c/meta -I$(top_builddir)/SimulationRuntime/c/meta/gc -I../ $(CORBAINCL) -I$(FMIINCLUDE) -I../../3rdParty/gc/include -I$(GRAPHSTREAMINCLUDE) -I$(CJSONINCLUDE) -I$(GRAPHINCLUDE)
CXXFLAGS = $(CFLAGS)

include Makefile.common

0 comments on commit 56ab447

Please sign in to comment.