File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,14 @@ reallyclean:
6565report:
6666 @(cd report ; $(MAKE))
6767
68- ifeq ($(wildcard ../build /bin/omc.exe),)
68+ ifeq ($(wildcard $(OMBUILDDIR) /bin/omc.exe),)
6969simcode:
7070 @echo OpenModelica has not been compiled yet. Using previously generated SimCode files.
7171else
7272simcode: OpenModelicaBootstrappingHeader.h
7373 $(MAKE) -C Template/ -f Makefile.omdev.mingw
7474OpenModelicaBootstrappingHeader.h: FrontEnd/Absyn.mo Script/GlobalScript.mo FrontEnd/Values.mo Util/Error.mo Util/Util.mo Util/FMI.mo GenerateOMCHeader.mos
75- ../build /bin/omc +g=MetaModelica GenerateOMCHeader.mos > $@.log || (cat $@.log && false)
75+ $(OMBUILDDIR) /bin/omc +g=MetaModelica GenerateOMCHeader.mos > $@.log || (cat $@.log && false)
7676 @mv $@.new $@
7777endif
7878$(SUSANMO): simcode
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ bootstrap-from-tarball: $(PATCHES)
7676runtime-depends:
7777 @# NOTE: OpenModelicaBootstrappingHeader.h has to be regenerated without any other process writing to so/etc or you get bus errors
7878 $(MAKE) -f $(defaultMakefileTarget) -C .. OpenModelicaBootstrappingHeader.h OMBUILDDIR=$(OMBUILDDIR)
79- $(MAKE) parser compilerruntime
79+ $(MAKE) -f $(defaultMakefileTarget) parser compilerruntime
8080parser:
8181 $(MAKE) -f $(defaultMakefileTarget) -C ../../Parser install OMBUILDDIR=$(OMBUILDDIR)
8282compilerruntime:
Original file line number Diff line number Diff line change 33CFLAGS=-g -falign-functions
44TOP_DIR=../../
55OMHOME=$(OMBUILDDIR)
6- LDFLAGS=-L./ -lomparse -lomcruntime -L"$(OMHOME)/lib/omc" \
6+ LDFLAGS=-L./ $(LOMPARSE) $(LCOMPILERRUNTIME) -L"$(OMHOME)/lib/omc" \
77-lOpenModelicaRuntimeC \
88-lModelicaExternalC -lm \
99-lomantlr3 -lmico2313 -lregex -lwsock32 -llpsolve55 -luuid -lole32 $(GSLIB) -lws2_32 \
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ GRAPHINCLUDE=../../3rdParty/metis-5.1.0/include
2424GRAPHSTREAMINCLUDE = ../../3rdParty/graphstream/gs-netstream/c++/src/
2525CJSONINCLUDE = ../../3rdParty/cJSON/
2626OMBUILDDIR = ../../build
27+ OMC=$(OMBUILDDIR)/bin/omc
2728
2829OMPCC = gcc -fopenmp
2930
You can’t perform that action at this time.
0 commit comments