@@ -84,34 +84,6 @@ omc-no-sim:
8484 $(MAKE ) -C Compiler/boot
8585 $(MAKE ) omlibrary
8686
87- fake_modelica3d :
88- # create fake files for debian package
89- mkdir -p $(DESTDIR ) /usr/$(LIB_OMC ) $(DESTDIR ) /usr/lib/omlibrary-modelica3d
90- echo " void fake(void){}" | $(CC ) -c -x c - -fPIC -o fake.o
91- $(CC ) -shared fake.o -o $(DESTDIR ) /usr/lib/libhuhu.so
92- ar r $(DESTDIR ) /usr/$(LIB_OMC ) /libmodbus.a fake.o
93- ar r $(DESTDIR ) /usr/$(LIB_OMC ) /libmodcount.a fake.o
94- touch $(DESTDIR ) /usr/lib/omlibrary-modelica3d/.empty-dir
95- rm fake.o
96-
97- modelica3d :
98- ifeq (@MODELICA3D@,)
99- @echo Skipping Modelica3D
100- else
101- cd 3rdParty/modelica3d && mkdir -p build
102- cd 3rdParty/modelica3d/build && $(CMAKE_RPATH) -DCMAKE_VERBOSE_MAKEFILE:Bool=ON -DCMAKE_COLOR_MAKEFILE:Bool=OFF -DOSG_BACKEND=1 -DUSE_OMC=0 $(BOOST_INCLUDE) ..
103- $(MAKE) -C 3rdParty/modelica3d/build
104- cp -p 3rdParty/modelica3d/build/backends/osg-gtk/libm3d-osg-gtk$(SHREXT) 3rdParty/modelica3d/build/lib/proc3d/libproc3d$(SHREXT) build/lib/@host_short@
105- test ! `uname` = Darwin || install_name_tool -id @rpath/libproc3d.dylib build/lib/@host_short@/libproc3d.dylib
106- test ! `uname` = Darwin || install_name_tool -id @rpath/libm3d-osg-gtk.dylib build/lib/@host_short@/libm3d-osg-gtk.dylib
107- test ! `uname` = Darwin || install_name_tool -change "`pwd`/3rdParty/modelica3d/build/lib/proc3d/libproc3d.dylib" "@rpath/libproc3d.dylib" build/lib/@host_short@/libm3d-osg-gtk.dylib
108- cp -p 3rdParty/modelica3d/build/lib/modcount/libmodcount.a 3rdParty/modelica3d/build/lib/modbus/libmodbus.a build/$(LIB_OMC)/
109- mkdir -p build/lib/omlibrary-modelica3d/blender2.59 build/lib/omlibrary-modelica3d/osg-gtk/
110- cp -p 3rdParty/modelica3d/examples/multibody/src/modelica/*.mo build/lib/omlibrary-modelica3d/
111- cp -p 3rdParty/modelica3d/backends/blender2.59/dbus-server.py build/lib/omlibrary-modelica3d/blender2.59/
112- cp -p 3rdParty/modelica3d/backends/osg-gtk/python/dbus-server.py build/lib/omlibrary-modelica3d/osg-gtk/
113- endif
114-
11587lis : lis-configure
11688 @echo Building Lis from sources
11789 $(MAKE ) -C 3rdParty/lis-1.4.12/src
@@ -127,49 +99,6 @@ lis-clean:
12799 if test -f 3rdParty/lis-1.4.12/Makefile; then $( MAKE) -C 3rdParty/lis-1.4.12 clean; fi
128100 rm -f 3rdParty/lis-1.4.12/Makefile
129101
130- fix-svn-props :
131- tools/apply_autoprops.py --config .svnprops .
132- fix-bom :
133- find . -type f \( ! -path ' */.svn/*' -or -path ' */.git/*' -prune \) | while read file; do sed -i ' 1 s/^\xef\xbb\xbf//' " $$ file" ; done
134-
135- SOURCE_DIRS =$(SOURCE_DIRS_UTF8 ) "libraries/Modelica 2.2.2" testsuite/flattening/libraries/3rdParty/HumMod
136- SOURCE_DIRS_UTF8 =OM*/ Compiler/ SimulationRuntime/ ` bash -c echo libraries/{BioChem 1.0,ModelicaAdditions,Modelica_LinearSystems2 2.3,Modelica 1.6,ModelicaServices 1.0,ModelicaServices 1.0 modelica3d,Modelica 3.1,SimpleFluid,Modelica 3.2.1,SimpleVisual.mo} ` ` bash -c echo testsuite/flattening/libraries/3rdParty/{PlanarMechanics,siemens,SiemensPower,ThermoSysPro} ` testsuite/openmodelica/modelicaML testsuite/AVM testsuite/simulation
137-
138- bom-error :
139- rm -f bom-error.log bom-error.sh
140- echo " #!/bin/sh\ntest \"\` head -c3 \\\"\$ $1 \\\"\`\" = \"\` /bin/echo -ne \"\\ xef\\ xbb\\ xbf\"\`\" && (echo \$ $1 contains BOM >> bom-error.log)" > bom-error.sh
141- find $(SOURCE_DIRS ) -type f \( ! -path ' */.svn/*' -or -path ' */.git/*' -prune \) \( ! -path ' libraries/Modelica 3.2.1/*' -prune \) -exec sh bom-error.sh " {}" ' ;'
142- @if test -e bom-error.log; then cat bom-error.log; fi
143- @test ! -e bom-error.log
144- rm -f bom-error.log bom-error.sh
145-
146- tab-error :
147- ! find $(SOURCE_DIRS ) -regextype posix-egrep -regex ' .*\.(cpp|c|h|mo|tpl)$$' -exec echo -n " {} " ' ;' -exec grep -c " " ' {}' ' ;' | \
148- grep -v " 0\$$" | egrep -v '/GenTest/|/antlr-3.2/|Parser/MetaModelica_|Parser/ParModelica_|Parser/Modelica_3_|Parser/ModelicaParser'
149- # Trims trailing whitespace and replaces tabs with spaces
150- fix-whitespace :
151- find . -type f \( ! -path ' */.svn/*' -or -path ' */.git/*' -prune \) -regextype posix-egrep -regex ' .*\.(cpp|c|h|mo|tpl)$$' -exec sh -c ' sed -i -e "s/ / /g" -e "s/ *\$$//" "{}"' " ;"
152-
153- spellcheck :
154- grep -oE ' gettext[(]["]([^"]|([\\]["]))*["]' ` ls Compiler/* /* .mo | grep -v Flags.mo` | sed " s/[\\ %]./ /g" | aspell -p ./.openmodelica.aspell --mode=ccpp --lang=en_US list | sort -u | sed ' s/^/aspell: /' | tee aspell.log
155- @test ! -s aspell.log
156- thumbsdb-error :
157- ! find . -name " Thumbs.db" | grep Thumbs.db
158-
159- utf8-error :
160- rm -f utf8-error.log*
161- find $(SOURCE_DIRS_UTF8 ) -regextype posix-egrep -regex ' .*\.(cpp|c|h|mo|tpl)$$' -exec bash -c " iconv -f UTF-8 -t UTF-8 '{}' -o /dev/null 2>utf8-error.log2 || (echo -n '{}: ' && head -n1 utf8-error.log2)" ' ;' 2>&1 > utf8-error.log
162- # Also detect some valid UTF-8 that were obviously fracked up by Eclipse on Windows.
163- find $(SOURCE_DIRS_UTF8 ) -regextype posix-egrep -regex ' .*\.(cpp|c|h|mo|tpl)$$' -exec bash -c " grep 'Link[^A-Za-z0-9_,.;&-]*ping' '{}' | grep -v Linköping && (echo '{}: Failed Linköping test')" ' ;' 2>&1 >> utf8-error.log
164- @cat utf8-error.log
165- @test ! -s utf8-error.log
166- rm -f utf8-error.log*
167-
168- utf8-iconv :
169- rm -f tmp
170- find $(SOURCE_DIRS ) -regextype posix-egrep -regex ' .*\.(cpp|c|h|mo|tpl)$$' -exec bash -c " iconv -f UTF-8 -t UTF-8 '{}' -o /dev/null 2>tmp || (rm -f tmp && cp '{}' tmp && iconv -f ISO-8859-1 -t UTF-8 tmp -o '{}' && echo Converted {} to UTF-8)" ' ;'
171- rm -f tmp
172-
173102.PRECIOUS : Makefile
174103
175104Makefile : Makefile.in config.status
0 commit comments