Windows port: rename arch to mingw
This commit is contained in:
parent
be769bf8d9
commit
60547b1dd1
6 changed files with 55 additions and 15 deletions
|
@ -20,6 +20,10 @@
|
||||||
|
|
||||||
TECIO_FLAGS = -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEENUM -DTHREED -U_WIN32 -DENGINE
|
TECIO_FLAGS = -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEENUM -DTHREED -U_WIN32 -DENGINE
|
||||||
|
|
||||||
|
#elif defined(mingw)
|
||||||
|
|
||||||
|
TECIO_FLAGS = -DMAKEARCHIVE -DMSWIN -DUSEENUM -DTHREED -U_WIN32 -DENGINE
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#error "architecture not supported for compiling tecio."
|
#error "architecture not supported for compiling tecio."
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
ifeq ($(WM_ARCH_BASE), mingw)
|
#if defined(mingw)
|
||||||
EXE_INC = -g \
|
|
||||||
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
|
@ -9,8 +10,10 @@ EXE_INC = -g \
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-L$(PARMGRIDGEN_LIB_DIR) -lIMlib -lmgrid
|
-L$(PARMGRIDGEN_LIB_DIR) -lIMlib -lmgrid
|
||||||
else
|
|
||||||
EXE_INC = -g \
|
#else
|
||||||
|
|
||||||
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
|
@ -21,4 +24,5 @@ EXE_INC = -g \
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-L$(PARMGRIDGEN_LIB_DIR) -lIMlib -lMGridGen
|
-L$(PARMGRIDGEN_LIB_DIR) -lIMlib -lMGridGen
|
||||||
endif
|
|
||||||
|
#endif
|
|
@ -2,22 +2,28 @@ EXE_INC = \
|
||||||
-I$(SCOTCH_INCLUDE_DIR) \
|
-I$(SCOTCH_INCLUDE_DIR) \
|
||||||
-I../decompositionMethods/lnInclude
|
-I../decompositionMethods/lnInclude
|
||||||
|
|
||||||
ifeq ($(WM_ARCH_BASE), darwin)
|
#if defined(darwinIntel)
|
||||||
|
|
||||||
/* No librt for Mac OS X */
|
/* No librt for Mac OS X */
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
-lfoam \
|
-lfoam \
|
||||||
-L$(SCOTCH_LIB_DIR) -lscotch \
|
-L$(SCOTCH_LIB_DIR) -lscotch \
|
||||||
-L$(SCOTCH_LIB_DIR) -lscotcherrexit
|
-L$(SCOTCH_LIB_DIR) -lscotcherrexit
|
||||||
else ifeq ($(WM_ARCH_BASE), mingw)
|
|
||||||
|
#elif defined(mingw)
|
||||||
|
|
||||||
/* No librt for MinGW */
|
/* No librt for MinGW */
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
-ldecompositionMethods \
|
-ldecompositionMethods \
|
||||||
-L$(SCOTCH_LIB_DIR) -lscotch \
|
-L$(SCOTCH_LIB_DIR) -lscotch \
|
||||||
-L$(SCOTCH_LIB_DIR) -lscotcherrexit \
|
-L$(SCOTCH_LIB_DIR) -lscotcherrexit \
|
||||||
-L$(OPENMPI_DIR)/lib -lmpi
|
-L$(OPENMPI_DIR)/lib -lmpi
|
||||||
else
|
|
||||||
|
#else
|
||||||
|
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
-L$(SCOTCH_LIB_DIR) -lscotch \
|
-L$(SCOTCH_LIB_DIR) -lscotch \
|
||||||
-L$(SCOTCH_LIB_DIR) -lscotcherrexit \
|
-L$(SCOTCH_LIB_DIR) -lscotcherrexit \
|
||||||
-lrt
|
-lrt
|
||||||
endif
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -3,7 +3,8 @@ include $(RULES)/mplib$(WM_MPLIB)
|
||||||
EXE_INC = $(PFLAGS) $(PINC)\
|
EXE_INC = $(PFLAGS) $(PINC)\
|
||||||
-I$(WM_THIRD_PARTY_DIR)/zlib-1.2.3
|
-I$(WM_THIRD_PARTY_DIR)/zlib-1.2.3
|
||||||
|
|
||||||
ifeq ($(WM_ARCH_BASE), mingw)
|
#if defined(mingw)
|
||||||
|
|
||||||
LIB_LIBS = $(PLIBS)\
|
LIB_LIBS = $(PLIBS)\
|
||||||
$(FOAM_LIBBIN)/libOSspecific.o \
|
$(FOAM_LIBBIN)/libOSspecific.o \
|
||||||
-lz \
|
-lz \
|
||||||
|
@ -11,11 +12,14 @@ LIB_LIBS = $(PLIBS)\
|
||||||
-ldl \
|
-ldl \
|
||||||
-lpsapi \
|
-lpsapi \
|
||||||
-lpthread
|
-lpthread
|
||||||
else
|
|
||||||
|
#else
|
||||||
|
|
||||||
LIB_LIBS = $(PLIBS)\
|
LIB_LIBS = $(PLIBS)\
|
||||||
$(FOAM_LIBBIN)/libOSspecific.o \
|
$(FOAM_LIBBIN)/libOSspecific.o \
|
||||||
-lz
|
-lz
|
||||||
endif
|
|
||||||
|
#endif
|
||||||
|
|
||||||
$(OBJECTS_DIR)/global.o: FORCE
|
$(OBJECTS_DIR)/global.o: FORCE
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
ParMGridGen = $(WM_THIRD_PARTY_DIR)/packages/ParMGridGen-1.0
|
ParMGridGen = $(WM_THIRD_PARTY_DIR)/packages/ParMGridGen-1.0
|
||||||
|
|
||||||
TYPE_REAL=
|
TYPE_REAL=
|
||||||
|
|
||||||
#if defined(WM_SP)
|
#if defined(WM_SP)
|
||||||
|
|
||||||
TYPE_REAL=-DTYPE_REAL
|
TYPE_REAL=-DTYPE_REAL
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ifeq ($(WM_ARCH_BASE), mingw)
|
#if defined(mingw)
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(PARMGRIDGEN_INCLUDE_DIR) \
|
-I$(PARMGRIDGEN_INCLUDE_DIR) \
|
||||||
|
@ -14,7 +18,8 @@ EXE_INC = \
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-L$(PARMGRIDGEN_LIB_DIR) -lmgrid
|
-L$(PARMGRIDGEN_LIB_DIR) -lmgrid
|
||||||
else
|
#else
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(PARMGRIDGEN_INCLUDE_DIR)/Lib \
|
-I$(PARMGRIDGEN_INCLUDE_DIR)/Lib \
|
||||||
|
@ -23,4 +28,5 @@ EXE_INC = \
|
||||||
|
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
-L$(PARMGRIDGEN_LIB_DIR) -lMGridGen
|
-L$(PARMGRIDGEN_LIB_DIR) -lMGridGen
|
||||||
endif
|
|
||||||
|
#endif
|
||||||
|
|
16
wmake/rules/mingw64/c
Normal file
16
wmake/rules/mingw64/c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
cc = gcc
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC -Dmingw
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -shared
|
||||||
|
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
Reference in a new issue