Print this page
lib: move compat links from targetdirs to proper makefiles

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/liblddbg/Makefile.com
          +++ new/usr/src/cmd/sgs/liblddbg/Makefile.com
↓ open down ↓ 45 lines elided ↑ open up ↑
  46   46                  util64.o        version64.o
  47   47  
  48   48  BLTOBJ =        msg.o
  49   49  
  50   50  TOOLOBJ =       alist.o
  51   51  
  52   52  OBJECTS =       $(BLTOBJ) $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(TOOLOBJ)
  53   53  
  54   54  
  55   55  include         $(SRC)/lib/Makefile.lib
       56 +include         $(SRC)/lib/Makefile.rootfs
  56   57  include         $(SRC)/cmd/sgs/Makefile.com
  57   58  
       59 +LIBS =          $(DYNLIB)
       60 +
       61 +COMPATLINKS =   /usr/lib/$(DYNLIB)
       62 +COMPATLINKS64 = /usr/lib/$(MACH64)/$(DYNLIB)
       63 +
  58   64  SRCDIR =        ../common
  59   65  
  60   66  CERRWARN +=     -_gcc=-Wno-unused-value
  61   67  CERRWARN +=     -_gcc=-Wno-uninitialized
  62   68  CERRWARN +=     -_gcc=-Wno-parentheses
  63   69  
  64   70  CPPFLAGS +=     -I$(SRCBASE)/lib/libc/inc
  65   71  DYNFLAGS +=     $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
  66   72  LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) -lc
  67   73  
↓ open down ↓ 12 lines elided ↑ open up ↑
  80   86  SGSMSGFLAGS +=  -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n liblddbg_msg
  81   87  
  82   88  CHKSRCS =       $(COMOBJS32:%32.o=../common/%.c)
  83   89  
  84   90  LIBSRCS =       $(COMOBJS:%.o=../common/%.c) \
  85   91                  $(TOOLOBJ:%.o=$(SGSTOOLS)/common/%.c) $(BLTDATA)
  86   92  
  87   93  CLEANFILES +=   $(BLTFILES)
  88   94  CLOBBERFILES += $(DYNLIB) $(LIBLINKS)
  89   95  
  90      -ROOTFS_DYNLIB = $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX