• C

makefile for shared library

Hello:

I am trying yo create a shared library using a bunch of
C files. I am working on Sun Solaris platform. I have been trying to create a makefile file to do this but failed. Can anyone (expert) out there show me an example of how to create a makefile to create a shared library in Sun Solaris?

Ok. Please assume you have two C files namely my1.c and my2.c and that the name of the library I want to create is named myshared.so

Thanks
prainAsked:
Who is Participating?
 
alexoConnect With a Mentor Commented:
Try http://www.whitefang.com/unix/faq_7.html#SEC79
If that doesn't work, try compiling with the -G flag.
0
 
prainAuthor Commented:
Quick reply is greatly appreciated.
0
 
alexoCommented:
Oferring a suitable amount of points is greatly appreciated.
0
Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

 
prainAuthor Commented:
Edited text of question
0
 
prainAuthor Commented:
Adjusted points to 5
0
 
prainAuthor Commented:
Adjusted points to 10
0
 
prainAuthor Commented:
Adjusted points to 20
0
 
prainAuthor Commented:
Adjusted points to 40
0
 
prainAuthor Commented:
Adjusted points to 45
0
 
alexoCommented:
Another option is documented in:
  http://www.dejanews.com/getdoc.xp?AN=421076643

0
 
alexoCommented:
Hmmm...  Any special reason for the low grade?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.