all.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef LIBFMI_LIB
  2. /* This is a wrapper file including all source files. Use this when you need to compile everything into a single
  3. compilation unit, where all internal functions and variables are static. This is necessary when combining
  4. the source code with others FMUs exported by CATIA DBM or Dymola.*/
  5. /* set to be able to compile everything in a single compilation unit, which enables static functions
  6. and symbols, which in turn enables creation of static libraries without name clashes */
  7. #ifndef FMU_SOURCE_SINGLE_UNIT
  8. #define FMU_SOURCE_SINGLE_UNIT
  9. #endif
  10. /* must set explicitly for FMI code */
  11. #define DYMOLA_STATIC static
  12. #define DYMOLA_STATIC_IMPORT extern
  13. /* for Sundials code */
  14. #define SUNDIALS_EXPORT static
  15. #define RT
  16. /*dsblock1.c has dependecies on definitions from this header*/
  17. #include "fmiModelIdentifier.h"
  18. /* dsmodel */
  19. #include "dsmodel.c"
  20. #include "extendedIncludes.h"
  21. /* libfmi */
  22. #ifdef FMI_2
  23. #include "fmi2Functions.c"
  24. #else
  25. #include "fmiFunctions.c"
  26. #endif
  27. #include "fmiCommonFunctions_int.c"
  28. #include "fmiMEFunctions_int.c"
  29. #include "util.c"
  30. #include "fmiCoSimFunctions_int.c"
  31. #ifndef ONLY_INCLUDE_INLINE_INTEGRATION
  32. #include "integration.c"
  33. #include "jac.c"
  34. /* CVODE */
  35. #include "cvode.c"
  36. #include "cvode_dense.c"
  37. #include "cvode_direct.c"
  38. #include "cvode_io.c"
  39. #include "nvector_serial.c"
  40. #include "sundials_dense.c"
  41. #include "sundials_direct.c"
  42. #include "sundials_math.c"
  43. #include "sundials_nvector.c"
  44. #endif /*ONLY_INCLUDE_INLINE_INTEGRATION*/
  45. #endif