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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/yacc/Makefile.com
          +++ new/usr/src/cmd/sgs/yacc/Makefile.com
↓ open down ↓ 33 lines elided ↑ open up ↑
  34   34  POBJS=          $(POBJECTS:%=objs/%)
  35   35  
  36   36  OBJECTS=        libmai.o libzer.o
  37   37  
  38   38  LIBRARY=        liby.a
  39   39  VERS=           .1
  40   40  YACCPAR=        yaccpar
  41   41  
  42   42  include ../../../../lib/Makefile.lib
  43   43  
       44 +COMPATLINKS=    /usr/ccs/lib/liby.so \
       45 +                /usr/ccs/lib/$(MACH64)/liby.so
       46 +
       47 +$(ROOT)/usr/ccs/lib/liby.so := COMPATLINKTARGET=../../lib/liby.so.1
       48 +$(ROOT)/usr/ccs/lib/$(MACH64)/liby.so:= \
       49 +        COMPATLINKTARGET=../../../lib/$(MACH64)/liby.so.1
       50 +
  44   51  SRCDIR =        ../common
  45   52  
  46   53  # Override default source file derivation rule (in Makefile.lib)
  47   54  # from objects
  48   55  #
  49   56  COMSRCS=        $(COMOBJS:%.o=../common/%.c)
  50   57  LIBSRCS=        $(OBJECTS:%.o=../common/%.c)
  51   58  SRCS=           $(COMSRCS) $(LIBSRCS)
  52   59  
  53   60  LIBS =          $(DYNLIB)
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX