Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / wmake / rules / linuxmingw32 / c++
blob52945c1aa8b497c75b891fab453886eb8e478c60
1 .SUFFIXES: .C .cxx .cc .cpp
3 c++WARN     = -Wall -Wextra -Wno-unused-parameter
5 CC          = mingw32-g++
7 include $(RULES)/c++$(WM_COMPILE_OPTION)
9 ptFLAGS     = -DNoRepository -ftemplate-depth-100
11 c++FLAGS    = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS)
13 Ctoo        = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
14 cxxtoo      = $(Ctoo)
15 cctoo       = $(Ctoo)
16 cpptoo      = $(Ctoo)
18 LINK_LIBS   = $(c++DBUG)
20 # Tried using -Wl,-no-undefined,--enable-runtime-pseudo-reloc
21 # but didnt forgive undefined symbols during linking
22 LINKLIBSO   = $(CC) $(c++FLAGS) -Wl,--output-def,$(LIB).def,--out-implib,$(LIB).a,--enable-auto-import -shared
23 LINKEXE     = $(CC) $(c++FLAGS) -Wl,--enable-auto-import,--force-exe-suffix