CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Our friend "wmake"

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2009, 22:50
Default Our friend "wmake"
  #1
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
I want to know what's going on behind the scenes of wmake. The Make/options file is confusing me. e.g. (in ThirdParty/malloc/hoard):

EXE_INC = -DNDEBUG -D_REENTRANT=1

LIB_LIBS = \
-ldl -lpthread

I'm guessing EXE_INC are compiler options going to gcc, but what is LIB_LIBS? Where can I learn what all the options / categories are?
marupio is offline   Reply With Quote

Old   December 7, 2009, 03:32
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by marupio View Post
LIB_LIBS = -ldl -lpthread

I'm guessing EXE_INC are compiler options going to gcc, but what is LIB_LIBS?
As you might guess from the names, EXE_LIBS are the libraries for EXE (ie, executables), and LIB_LIBS are the libraries for LIB (ie, for libraries).
What this specifically means is that LIB_LIBS are also linked in.

For example, if you look at src/sampling/Make/options, you should see this:
Code:
LIB_LIBS = \
    -lfiniteVolume \
    -lmeshTools \
    -lsurfMesh \
    -ltriSurface
which means that if you link against the libsampling.so, all these other libraries will also be linked in, without you having to specify them.
You can verify this with 'ldd'.
For example,
Code:
    ldd -v lib/linux64GccDPOpt/libsampling.so
should show these LIB_LIBS libraries too.

Quote:
Originally Posted by marupio View Post
Where can I learn what all the options / categories are?
Simply learning by example (ie, seeing how they are used in the OpenFOAM code base) worked for me.
Mehdi3031 likes this.
olesen is offline   Reply With Quote

Reply

Tags
wmake; options; lib_libs


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am finding a friend to talk about the GFM jinwon Main CFD Forum 0 April 27, 2007 10:17
Please help me see this about paraFoam liugx212 OpenFOAM Running, Solving & CFD 2 March 8, 2006 10:54
Could anybody help me about the specify inlet and outlet liugx212 OpenFOAM Running, Solving & CFD 4 February 13, 2006 11:53
i want to find my dear friend ... kevin FLUENT 0 February 28, 2002 21:15
Find a my dear friend ..... kevin FLUENT 0 February 25, 2002 22:28


All times are GMT -4. The time now is 00:59.