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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/libfmevent/Makefile.com
          +++ new/usr/src/lib/fm/libfmevent/Makefile.com
↓ open down ↓ 73 lines elided ↑ open up ↑
  74   74  
  75   75  LINTFLAGS = -msux
  76   76  LINTFLAGS64 = -msux -m64
  77   77  
  78   78  $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
  79   79  $(LINTLIB) := LINTFLAGS = -nsvx
  80   80  $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
  81   81  
  82   82  CLEANFILES += ../common/fmev_errstring.c
  83   83  
       84 +COMPATLINKS =   /usr/lib/fm/$(DYNLIB) /usr/lib/fm/$(LIBLINKS)
       85 +COMPATLINKS64 = /usr/lib/fm/$(MACH64)/$(DYNLIB) \
       86 +        /usr/lib/fm/$(MACH64)/$(LIBLINKS)
       87 +
       88 +$(ROOT)/usr/lib/fm/libfmevent.so.1 := \
       89 +        COMPATLINKTARGET=../../../lib/fm/libfmevent.so.1
       90 +$(ROOT)/usr/lib/fm/libfmevent.so := \
       91 +        COMPATLINKTARGET=../../../lib/fm/libfmevent.so.1
       92 +$(ROOT)/usr/lib/fm/$(MACH64)/libfmevent.so.1:= \
       93 +        COMPATLINKTARGET=../../../../lib/fm/$(MACH64)/libfmevent.so.1
       94 +$(ROOT)/usr/lib/fm/$(MACH64)/libfmevent.so:= \
       95 +        COMPATLINKTARGET=../../../../lib/fm/$(MACH64)/libfmevent.so.1
       96 +
  84   97  .KEEP_STATE:
  85   98  
  86   99  all: $(LIBS)
  87  100  
  88  101  lint: $(LINTLIB) lintcheck
  89  102  
  90  103  pics/%.o: ../$(MACH)/%.c
  91  104          $(COMPILE.c) -o $@ $<
  92  105          $(POST_PROCESS_O)
  93  106  
  94  107  ../common/fmev_errstring.c: ../common/mkerror.sh ../common/libfmevent.h
  95  108          sh ../common/mkerror.sh ../common/libfmevent.h > $@
  96  109  
  97  110  %.o: ../common/%.c
  98  111          $(COMPILE.c) -o $@ $<
  99  112          $(POST_PROCESS_O)
 100  113  
 101  114  include ../../../Makefile.targ
 102  115  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX