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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libeti/menu/Makefile.com
          +++ new/usr/src/lib/libeti/menu/Makefile.com
↓ open down ↓ 67 lines elided ↑ open up ↑
  68   68  SRCDIR=         ../common
  69   69  
  70   70  $(LINTLIB) :=   SRCS=$(SRCDIR)/$(LINTSRC)
  71   71  
  72   72  CPPFLAGS +=     -I../inc
  73   73  CFLAGS +=       $(CCVERBOSE)
  74   74  LDLIBS +=       -lcurses -lc
  75   75  
  76   76  CERRWARN +=     -_gcc=-Wno-parentheses
  77   77  
       78 +COMPATLINKS=    /usr/ccs/lib/libmenu.so \
       79 +                /usr/ccs/lib/$(MACH64)/libmenu.so
       80 +
       81 +$(ROOT)/usr/ccs/lib/libmenu.so := COMPATLINKTARGET= ../../lib/libmenu.so.1
       82 +$(ROOT)/usr/ccs/lib/$(MACH64)/libmenu.so:= \
       83 +        COMPATLINKTARGET=../../../lib/$(MACH64)/libmenu.so.1
       84 +
  78   85  .KEEP_STATE:
  79   86  
  80   87  all: $(LIBS)
  81   88  
  82   89  lint: lintcheck
  83   90  
  84   91  # include library targets
  85   92  include ../../../Makefile.targ
  86   93  
  87   94  pics/%.o:       ../common/%.c
  88   95          $(COMPILE.c) -o $@ $<
  89   96          $(POST_PROCESS_O)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX