(file) Return to library-unix.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

Diff for /pegasus/mak/library-unix.mak between version 1.2 and 1.12

version 1.2, 2001/02/05 02:31:34 version 1.12, 2001/07/16 22:28:06
Line 1 
Line 1 
 FULL_LIB=$(LIB_DIR)/lib$(LIBRARY).so  
  
   ifeq ($(COMPILER),xlc)
     LINK_COMMAND = makeC++SharedLib
     LINK_ARGUMENTS = -p 0
     LINK_OUT = -o
   endif
   
   ifeq ($(COMPILER),acc)
     LINK_COMMAND = aCC -b
     ifeq ($(PEGASUS_SUPPORTS_DYNLIB),yes)
       LINK_COMMAND += -Wl,+b/usr/lib -Wl,+s
     endif
     ifdef PEGASUS_DEBUG
       LINK_COMMAND += -g
     endif
     LINK_ARGUMENTS =
     LINK_OUT = -o
   endif
   
   ifeq ($(COMPILER),gnu)
     LINK_COMMAND = g++ -shared
     LINK_ARGUMENTS =
     LINK_OUT = -o
   endif
   
   ifeq ($(COMPILER),deccxx)
     LINK_COMMAND = cxx -shared
     LINK_ARGUMENTS =
     LINK_OUT = -o
   endif
   
   FULL_LIB=$(LIB_DIR)/lib$(LIBRARY)$(LIB_SUFFIX)
   
   ## Rule for all UNIX library builds
 $(FULL_LIB): $(LIB_DIR)/target $(OBJ_DIR)/target $(OBJECTS) $(LIBRARIES) $(ERROR) $(FULL_LIB): $(LIB_DIR)/target $(OBJ_DIR)/target $(OBJECTS) $(LIBRARIES) $(ERROR)
         g++ -shared -o$(FULL_LIB) $(OBJECTS)  ifneq ($(COMPILER),xlc)
     ## Actions for all UNIX compilers except xlc
     ifeq ($(PEGASUS_SUPPORTS_DYNLIB),yes)
       ## To generate shared libraries which will cause dynamic
       ## search of other shared libraries which they reference,
       ## must specify the referenced shared libraries as "-l<name>"
       ## DYNAMIC_LIBRARIES must be defined appropriately in the
       ## libraries.mak file that includes this file
       ##
           $(LINK_COMMAND) $(LINK_ARGUMENTS) -L$(LIB_DIR) $(LINK_OUT)$(FULL_LIB) $(OBJECTS) $(DYNAMIC_LIBRARIES)
     else
           $(LINK_COMMAND) $(LINK_ARGUMENTS) $(LINK_OUT) $(FULL_LIB) $(OBJECTS) $(LIBRARIES)
     endif
   else
     ## Actions for xlc compiler only
           ar crv $(PEGASUS_PLATFORM).lib $(OBJECTS) $(LIBRARIES)
           $(LINK_COMMAND) $(LINK_ARGUMENTS) $(LINK_OUT)$(FULL_LIB) $(PEGASUS_PLATFORM).lib
           rm -f $(PEGASUS_PLATFORM).lib
   endif
         @ $(ECHO)         @ $(ECHO)
  
   clean-lib: $(ERROR)
           rm -f $(FULL_LIB)
   
 FILES_TO_CLEAN = $(OBJECTS) $(FULL_LIB) FILES_TO_CLEAN = $(OBJECTS) $(FULL_LIB)


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.12

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2