-
Notifications
You must be signed in to change notification settings - Fork 296
/
Makefile.omdev.mingw
63 lines (52 loc) · 1.67 KB
/
Makefile.omdev.mingw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Adrian Pop, adrpo@ida.liu.se, 2006-02-01
# Makefile for compilation of OMC using OMDev-mingw
# OMDev-mingw: http://www.ida.liu.se/~adrpo/omc/omdev/
# The path to the OMDev-mingw package MUST BE SET!
#OMDEV=$OMDEV
# Test if the needed variables are there...
top_builddir = ../..
builddir_bin=$(OMBUILDDIR)/bin
builddir_lib=$(OMBUILDDIR)/lib/omc
builddir_inc=$(OMBUILDDIR)/include/omc
builddir = $(OMBUILDDIR)
AR = ar -ru
CC = gcc
FC = g77
#include the sundials, ipopt from OMDev and the top_builddir for revision.h
CONFIG_CFLAGS = -O2 -falign-functions -mstackrealign -msse2 -mfpmath=sse \
-I$(OMDEV)/lib/3rdParty/Ipopt/include/ \
-I$(top_builddir)/3rdParty/sundials-5.4.0/build/include/sundials \
-I$(top_builddir)/3rdParty/sundials-5.4.0/build_msvc/include \
-I$(top_builddir)/3rdParty/SuiteSparse/install_msvc/include/omc/c \
-I$(top_builddir)/3rdParty/SuiteSparse/install/include/omc/c \
-I$(OMDEV)/include/lis -I$(top_builddir)/ -I$(builddir_inc)/ -I. \
-Wall -Wno-unused-variable
CXXFLAGS = $(CFLAGS)
OMPCC = $(CC) -fopenmp
OMPCFLAGS= -fopenmp
# Not needed since we already set fpmath
FPMATHFORTRAN =
LIBMAKEFILE = Makefile.omdev.mingw
CONFIG_H=$(top_builddir)/Compiler/runtime/config.h
LIBSIMULATION=libSimulationRuntimeC.dll
LIBRUNTIME=libOpenModelicaRuntimeC.dll
LIBFMIRUNTIME=libOpenModelicaFMIRuntimeC.a
CMINPACK_NO_DLL=-DCMINPACK_NO_DLL
ifeq ($(OMC_MINIMAL_RUNTIME),)
OBJ_EXT=.o
else
ifeq ($(OMC_FMI_RUNTIME),)
OBJ_EXT=.minimal.o
else
OBJ_EXT=.o
endif
endif
# USE_PARJAC=yes to enable parallel Jacobians
ifeq ($(USE_PARJAC),yes)
CFLAGS+=$(OMPCFLAGS) -DUSE_PARJAC
LDFLAGS+=$(OMPCFLAGS)
else
OMPCFLAGS=
endif
defaultMakefileTarget = Makefile.omdev.mingw
include Makefile.common