Print this page
    
lib: move compat links from targetdirs to proper makefiles
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/lib/libeti/form/Makefile.com
          +++ new/usr/src/lib/libeti/form/Makefile.com
   1    1  #
   2    2  # CDDL HEADER START
   3    3  #
   4    4  # The contents of this file are subject to the terms of the
   5    5  # Common Development and Distribution License (the "License").
   6    6  # You may not use this file except in compliance with the License.
   7    7  #
   8    8  # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9  # or http://www.opensolaris.org/os/licensing.
  10   10  # See the License for the specific language governing permissions
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  
  26   26  LIBRARY=        libform.a
  27   27  VERS=           .1
  28   28  
  29   29  OBJECTS=  \
  30   30          chg_char.o \
  31   31          chg_data.o \
  32   32          chg_field.o \
  33   33          chg_page.o \
  34   34          driver.o \
  35   35          field.o \
  36   36          field_back.o \
  37   37          field_buf.o \
  38   38          field_fore.o \
  39   39          field_init.o \
  40   40          field_just.o \
  41   41          field_opts.o \
  42   42          field_pad.o \
  43   43          field_stat.o \
  44   44          field_term.o \
  45   45          field_user.o \
  46   46          fieldtype.o \
  47   47          form.o \
  48   48          form_init.o \
  49   49          form_opts.o \
  50   50          form_sub.o \
  51   51          form_term.o \
  52   52          form_user.o \
  53   53          form_win.o \
  54   54          post.o \
  55   55          regcmp.o \
  56   56          regex.o \
  57   57          ty_alnum.o \
  58   58          ty_alpha.o \
  59   59          ty_enum.o \
  60   60          ty_int.o \
  61   61          ty_num.o \
  62   62          ty_regexp.o \
  63   63          utility.o
  64   64  
  65   65  # include library definitions
  66   66  include ../../../Makefile.lib
  67   67  
  68   68  LIBS =          $(DYNLIB) $(LINTLIB)
  69   69  
  70   70  SRCDIR=         ../common
  71   71  
  
    | 
      ↓ open down ↓ | 
    71 lines elided | 
    
      ↑ open up ↑ | 
  
  72   72  $(LINTLIB) :=   SRCS=$(SRCDIR)/$(LINTSRC)
  73   73  
  74   74  CPPFLAGS +=     -I../inc
  75   75  CFLAGS +=       $(CCVERBOSE)
  76   76  LDLIBS +=       -lcurses -lc
  77   77  
  78   78  CERRWARN +=     -_gcc=-Wno-parentheses
  79   79  CERRWARN +=     -_gcc=-Wno-uninitialized
  80   80  CERRWARN +=     -_gcc=-Wno-char-subscripts
  81   81  
       82 +COMPATLINKS=    /usr/ccs/lib/libform.so \
       83 +                /usr/ccs/lib/$(MACH64)/libform.so
       84 +
       85 +$(ROOT)/usr/ccs/lib/libform.so := COMPATLINKTARGET= ../../lib/libform.so.1
       86 +$(ROOT)/usr/ccs/lib/$(MACH64)/libform.so := \
       87 +        COMPATLINKTARGET= ../../../lib/$(MACH64)/libform.so.1
       88 +
  82   89  .KEEP_STATE:
  83   90  
  84   91  all: $(LIBS)
  85   92  
  86   93  lint: lintcheck
  87   94  
  88   95  # include library targets
  89   96  include ../../../Makefile.targ
  90   97  
  91   98  pics/%.o:       ../common/%.c
  92   99          $(COMPILE.c) -o $@ $<
  93  100          $(POST_PROCESS_O)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX