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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libeti/panel/Makefile.com
          +++ new/usr/src/lib/libeti/panel/Makefile.com
↓ open down ↓ 43 lines elided ↑ open up ↑
  44   44  SRCDIR=         ../common
  45   45  
  46   46  $(LINTLIB) :=   SRCS=$(SRCDIR)/$(LINTSRC)
  47   47  
  48   48  CPPFLAGS +=     -I../inc
  49   49  CFLAGS +=       $(CCVERBOSE)
  50   50  LDLIBS +=       -lcurses -lc
  51   51  
  52   52  CERRWARN +=     -_gcc=-Wno-parentheses
  53   53  
       54 +COMPATLINKS=    /usr/ccs/lib/libpanel.so \
       55 +                /usr/ccs/lib/$(MACH64)/libpanel.so
       56 +
       57 +$(ROOT)/usr/ccs/lib/libpanel.so:=       COMPATLINKTARGET=../../lib/libpanel.so.1
       58 +$(ROOT)/usr/ccs/lib/$(MACH64)/libpanel.so:= \
       59 +        COMPATLINKTARGET=../../../lib/$(MACH64)/libpanel.so.1
       60 +
       61 +
  54   62  .KEEP_STATE:
  55   63  
  56   64  all: $(LIBS)
  57   65  
  58   66  lint: lintcheck
  59   67  
  60   68  # include library targets
  61   69  include ../../../Makefile.targ
  62   70  
  63   71  pics/%.o:       ../common/%.c
  64   72          $(COMPILE.c) -o $@ $<
  65   73          $(POST_PROCESS_O)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX