Makefile.in 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Makefile generated by OpenModelica
  2. CC=@CC@
  3. AR=@AR@
  4. CFLAGS=@CFLAGS@
  5. LD=$(CC) -shared
  6. LDFLAGS=@LDFLAGS@ @LIBS@
  7. DLLEXT=@DLLEXT@
  8. NEED_RUNTIME=@NEED_RUNTIME@
  9. NEED_DGESV=@NEED_DGESV@
  10. FMIPLATFORM=@FMIPLATFORM@
  11. # Note: Simulation of the fmu with dymola does not work with -finline-small-functions (enabled by most optimization levels)
  12. CPPFLAGS=@CPPFLAGS@
  13. OMC_NUM_LINEAR_SYSTEMS=6
  14. OMC_NUM_NONLINEAR_SYSTEMS=0
  15. OMC_NUM_MIXED_SYSTEMS=0
  16. OMC_NDELAY_EXPRESSIONS=0
  17. OMC_NVAR_STRING=0
  18. override CPPFLAGS += -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=PW_PowerSystem -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0
  19. MAINFILE=PW_PowerSystem_FMU.c
  20. MAINOBJ=PW_PowerSystem_FMU.o
  21. CFILES=PW_PowerSystem.c PW_PowerSystem_functions.c PW_PowerSystem_records.c \
  22. PW_PowerSystem_01exo.c PW_PowerSystem_02nls.c PW_PowerSystem_03lsy.c PW_PowerSystem_04set.c PW_PowerSystem_05evt.c PW_PowerSystem_06inz.c PW_PowerSystem_07dly.c \
  23. PW_PowerSystem_08bnd.c PW_PowerSystem_09alg.c PW_PowerSystem_10asr.c PW_PowerSystem_11mix.c PW_PowerSystem_12jac.c PW_PowerSystem_13opt.c PW_PowerSystem_14lnz.c \
  24. PW_PowerSystem_15syn.c PW_PowerSystem_16dae.c PW_PowerSystem_init_fmu.c
  25. OFILES=$(CFILES:.c=.o)
  26. GENERATEDFILES=$(MAINFILE) PW_PowerSystem_FMU.makefile PW_PowerSystem_literals.h PW_PowerSystem_model.h PW_PowerSystem_includes.h PW_PowerSystem_functions.h PW_PowerSystem_11mix.h PW_PowerSystem_12jac.h PW_PowerSystem_13opt.h PW_PowerSystem_init_fmu.c PW_PowerSystem_info.c $(CFILES) PW_PowerSystem_FMU.libs
  27. # FIXME: before you push into master...
  28. RUNTIMEDIR=include
  29. OMC_MINIMAL_RUNTIME=1
  30. OMC_FMI_RUNTIME=1
  31. include $(RUNTIMEDIR)/Makefile.objs
  32. ifneq ($(NEED_RUNTIME),)
  33. RUNTIMEFILES=$(FMI_ME_OBJS:%=$(RUNTIMEDIR)/%.o)
  34. endif
  35. PHONY: PW_PowerSystem_FMU
  36. PW_PowerSystem_FMU: $(MAINOBJ) PW_PowerSystem_functions.h PW_PowerSystem_literals.h $(OFILES) $(RUNTIMEFILES)
  37. $(CXX) -shared -I. -o PW_PowerSystem$(DLLEXT) $(MAINOBJ) $(RUNTIMEFILES) $(OFILES) $(CPPFLAGS) -L"C:/Users/clagms/Source Control/Git_HybridCosimulation/ModelicaModels" $(CFLAGS) $(LDFLAGS) -llis -Wl,--kill-at
  38. mkdir.exe -p ../binaries/win32
  39. dlltool -d PW_PowerSystem.def --dllname PW_PowerSystem$(DLLEXT) --output-lib PW_PowerSystem.lib --kill-at
  40. cp PW_PowerSystem$(DLLEXT) PW_PowerSystem.lib PW_PowerSystem_FMU.libs ../binaries/win32/
  41. cp C:/OpenModelica1.12.0-dev-32bit//bin/libsundials_*.dll ../binaries/win32/
  42. cp C:/OpenModelica1.12.0-dev-32bit//bin/libopenblas.dll ../binaries/win32/
  43. cp C:/OpenModelica1.12.0-dev-32bit//bin/libexpat*.dll ../binaries/win32/
  44. cp C:/OpenModelica1.12.0-dev-32bit//bin/libgfortran*.dll ../binaries/win32/
  45. cp C:/OpenModelica1.12.0-dev-32bit//bin/libquadmath*.dll ../binaries/win32/
  46. cp C:/OpenModelica1.12.0-dev-32bit//bin/libwinpthread*.dll ../binaries/win32/
  47. cp C:/OpenModelica1.12.0-dev-32bit//bin/zlib*.dll ../binaries/win32/
  48. cp C:/OpenModelica1.12.0-dev-32bit//bin/libszip*.dll ../binaries/win32/
  49. cp C:/OpenModelica1.12.0-dev-32bit//bin/libhdf5*.dll ../binaries/win32/
  50. cp C:/OpenModelica1.12.0-dev-32bit//bin/libsystre*.dll ../binaries/win32/
  51. cp C:/OpenModelica1.12.0-dev-32bit//bin/libtre*.dll ../binaries/win32/
  52. cp C:/OpenModelica1.12.0-dev-32bit//bin/libintl*.dll ../binaries/win32/
  53. cp C:/OpenModelica1.12.0-dev-32bit//bin/libiconv*.dll ../binaries/win32/
  54. cp C:/OpenModelica1.12.0-dev-32bit//bin/libgcc_s_*.dll ../binaries/win32/
  55. cp C:/OpenModelica1.12.0-dev-32bit//bin/libstdc*.dll ../binaries/win32/
  56. rm -f PW_PowerSystem.def PW_PowerSystem.o PW_PowerSystem$(DLLEXT) $(OFILES) $(RUNTIMEFILES)
  57. cd .. && rm -f ../PW_PowerSystem.fmu && zip -r ../PW_PowerSystem.fmu *