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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/lex/Makefile.com
          +++ new/usr/src/cmd/sgs/lex/Makefile.com
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37  
  38   38  LIBOBJS=        allprint.o libmain.o reject.o yyless.o yywrap.o
  39   39  LIBOBJS_W=      allprint_w.o reject_w.o yyless_w.o
  40   40  LIBOBJS_E=      reject_e.o yyless_e.o
  41   41  OBJECTS=        $(LIBOBJS) $(LIBOBJS_W) $(LIBOBJS_E)
  42   42  
  43   43  FORMS=          nceucform ncform nrform
  44   44  
  45   45  include         ../../../../lib/Makefile.lib
  46   46  
       47 +COMPATLINKS=    /usr/ccs/lib/libl.so \
       48 +                /usr/ccs/lib/$(MACH64)/libl.so
       49 +
       50 +$(ROOT)/usr/ccs/lib/libl.so := COMPATLINKTARGET=../../lib/libl.so.1
       51 +$(ROOT)/usr/ccs/lib/$(MACH64)/libl.so:= \
       52 +        COMPATLINKTARGET=../../../lib/$(MACH64)/libl.so.1
       53 +
  47   54  SRCDIR =        ../common
  48   55  
  49   56  CSTD=   $(CSTD_GNU99)
  50   57  
  51   58  CERRWARN +=     -_gcc=-Wno-unused-label
  52   59  CERRWARN +=     -_gcc=-Wno-uninitialized
  53   60  CERRWARN +=     -_gcc=-Wno-parentheses
  54   61  
  55   62  # Override default source file derivation rule (in Makefile.lib)
  56   63  # from objects
↓ open down ↓ 39 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX