Index: [thread] [date] [subject] [author]
  From: Visnu Pitiyanuvath <visnu.p@duke.edu>
  To  : 
  Date: Sat, 27 Feb 1999 02:53:48 -0500

Re: Makefiles

one way i can think of really quickly is to have to targets: shared and
static.  in the makefile it would be...

shared: $(EXEC)
    $(CXX) $(CXXFLAGS) -shared -o $(EXEC) $(OFILES)

or something along those lines.....

and it would be used by saying "gmake shared" or "gmake static"..

Philip K. Warren wrote in message <36D654A7.F5E69468@duke.edu>...
>I'm just confused as to why we need to have our Makefiles prepare both
>static and dynamic libraries.  I understand it is useful to learn both
>ways, but I have been unable to whip together a single makefile that
>adds -shared to the CXXFLAGS for dynamic libraries and doesn't add it
>for shared libraries.  Could someone please help with this type of
>makefile?
>
>-- Philip




Index: [thread] [date] [subject] [author]