Skip to content

Commit 748d6d5

Browse files
committed
fix windows build
1 parent 801d118 commit 748d6d5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Compiler/Makefile.omdev.mingw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ reallyclean:
6565
report:
6666
@(cd report ; $(MAKE))
6767

68-
ifeq ($(wildcard ../build/bin/omc.exe),)
68+
ifeq ($(wildcard $(OMBUILDDIR)/bin/omc.exe),)
6969
simcode:
7070
@echo OpenModelica has not been compiled yet. Using previously generated SimCode files.
7171
else
7272
simcode: OpenModelicaBootstrappingHeader.h
7373
$(MAKE) -C Template/ -f Makefile.omdev.mingw
7474
OpenModelicaBootstrappingHeader.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 $@
7777
endif
7878
$(SUSANMO): simcode

Compiler/boot/Makefile.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ bootstrap-from-tarball: $(PATCHES)
7676
runtime-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
8080
parser:
8181
$(MAKE) -f $(defaultMakefileTarget) -C ../../Parser install OMBUILDDIR=$(OMBUILDDIR)
8282
compilerruntime:

Compiler/boot/Makefile.omdev.mingw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CXX=g++
33
CFLAGS=-g -falign-functions
44
TOP_DIR=../../
55
OMHOME=$(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 \

Compiler/runtime/Makefile.omdev.mingw

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ GRAPHINCLUDE=../../3rdParty/metis-5.1.0/include
2424
GRAPHSTREAMINCLUDE = ../../3rdParty/graphstream/gs-netstream/c++/src/
2525
CJSONINCLUDE = ../../3rdParty/cJSON/
2626
OMBUILDDIR = ../../build
27+
OMC=$(OMBUILDDIR)/bin/omc
2728

2829
OMPCC = gcc -fopenmp
2930

0 commit comments

Comments
 (0)