Changeset a9da941c in OpenModelica


Ignore:
Timestamp:
2020-10-20T17:08:45+02:00 (4 years ago)
Author:
Martin Sjölund <martin.sjolund@…>
Children:
6c0faf90
Parents:
e7f512c
Message:

Change how OPENMODELICAHOME is handled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/boot/Makefile.common

    r953bdfe7 ra9da941c  
    1515  $(MAKE) -f $(defaultMakefileTarget) generate-files INCLUDESOURCES=1 INCLUDEDEPENDS=1
    1616
    17 .PHONY: interfaces generate-files runtime-depends parser compilerruntime patch-files
     17.PHONY: interfaces generate-files runtime-depends parser compilerruntime patch-files bootstrap-from-tarball bootstrap-from-tarball2
    1818
    1919GEN_DIR=build/
     
    3737endif
    3838
    39 ifeq ($(BOOTSTRAP_OMHOME),1)
    40 else
    41 export OPENMODELICAHOME := $(OMBUILDDIR)
    42 endif
    43 
    4439%.patch: %.patch.xz
    4540  xz --keep --decompress --force $<
     
    4843
    4944bootstrap-from-tarball:
     45  OPENMODELICAHOME="$(OMBUILDDIR)" $(MAKE) -f $(defaultMakefileTarget) bootstrap-from-tarball2
     46
     47bootstrap-from-tarball2:
    5048  $(MAKE) -f $(defaultMakefileTarget) clean OMC=.omc
    5149  rm -rf $(GEN_DIR)
     
    5351  cp -r bootstrap-sources/* .
    5452  # Patch _main.c to avoid a new tarball
    55   $(MAKE) -f $(defaultMakefileTarget) patch-files
    56   $(PATCH_SOURCES)
     53  #$(MAKE) -f $(defaultMakefileTarget) patch-files
     54  #$(PATCH_SOURCES)
    5755  # We have not compiled OpenModelicaScriptingAPI.mo yet
    5856  touch build/OpenModelicaScriptingAPI.h
    5957  $(MAKE) -f $(defaultMakefileTarget) install INCLUDESOURCES=1 OMC=.omc BOOTSTRAP_STAGE_1=1 CPPFLAGS="$(CPPFLAGS) -DOMC_BOOTSTRAPPING_STAGE_1"
    6058  @echo "Bootstrapping phase 1/3 completed"
    61   $(MAKE) -f $(defaultMakefileTarget) --no-print-directory clean OMC="$(BOOTSTRAP_OMC)" BOOTSTRAP_OMHOME=1
    62   $(MAKE) -f $(defaultMakefileTarget) --no-print-directory runtime-depends OMBUILDDIR=$(OMBUILDDIR) OMC="$(BOOTSTRAP_OMC)" BOOTSTRAP_OMHOME=1
    63   OPENMODELICA_BACKEND_STUBS=1 $(MAKE) -f $(defaultMakefileTarget) generate-files-in-steps OMC="$(BOOTSTRAP_OMC)" OMC_EXTRA_FLAGS= BOOTSTRAP_OMHOME=1 TEMPLATES_TARGET=templates-bootstrap
    64   # Patch _main.c to avoid a new tarball
    65   $(PATCH_SOURCES)
    66   echo '#include "Patternm.h"' >> build/SimCodeFunctionUtil_includes.h
     59  $(MAKE) -f $(defaultMakefileTarget) --no-print-directory clean OMC="$(BOOTSTRAP_OMC)"
     60  $(MAKE) -f $(defaultMakefileTarget) --no-print-directory runtime-depends OMBUILDDIR=$(OMBUILDDIR) OMC="$(BOOTSTRAP_OMC)"
     61  OPENMODELICA_BACKEND_STUBS=1 $(MAKE) -f $(defaultMakefileTarget) generate-files-in-steps OMC="$(BOOTSTRAP_OMC)" OMC_EXTRA_FLAGS= TEMPLATES_TARGET=templates-bootstrap
    6762  # We have not compiled OpenModelicaScriptingAPI.mo yet
    6863  touch build/OpenModelicaScriptingAPI.h
    69   $(MAKE) -f $(defaultMakefileTarget) install INCLUDESOURCES=1 OMC="$(BOOTSTRAP_OMC)" CPPFLAGS="$(CPPFLAGS) -DOMC_BOOTSTRAPPING_STAGE_2" BOOTSTRAP_OMHOME=1
     64  $(MAKE) -f $(defaultMakefileTarget) install INCLUDESOURCES=1 OMC="$(BOOTSTRAP_OMC)" CPPFLAGS="$(CPPFLAGS) -DOMC_BOOTSTRAPPING_STAGE_2"
    7065  @echo "Bootstrapping phase 2/3 completed"
    7166  $(MAKE) -f $(defaultMakefileTarget) clean OMC="$(BOOTSTRAP_OMC)"
Note: See TracChangeset for help on using the changeset viewer.