Print this page
    
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/lib/brand/lx/lx_init/Makefile
          +++ new/usr/src/lib/brand/lx/lx_init/Makefile
   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 2015 Joyent, Inc.
  23   23  #
  24   24  
  25   25  PROG =          lxinit
  26   26  
  27   27  PROG_OBJS =     lxinit.o pipe_stream.o run_command.o
  28   28  LIST_OBJS =     list.o
  29   29  
  30   30  OBJS =          $(PROG_OBJS) \
  31   31                  $(LIST_OBJS)
  32   32  SRCS =          $(PROG_OBJS:%.o=%.c) \
  33   33                  $(LIST_OBJS:%.o=$(SRC)/common/list/%.c)
  34   34  
  35   35  all:            $(PROG)
  36   36  
  
    | 
      ↓ open down ↓ | 
    36 lines elided | 
    
      ↑ open up ↑ | 
  
  37   37  include ../Makefile.lx
  38   38  include $(SRC)/cmd/Makefile.cmd
  39   39  
  40   40  # override the install directory
  41   41  ROOTBIN =       $(ROOTBRANDDIR)
  42   42  CLOBBERFILES =  $(OBJS) $(ROOTPROG)
  43   43  
  44   44  UTSBASE =       $(SRC)/uts
  45   45  
  46   46  CFLAGS +=       $(CCVERBOSE)
  47      -CPPFLAGS +=     -D_REENTRANT -I$(UTSBASE)/common/brand/lx
       47 +CPPFLAGS +=     -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I$(UTSBASE)/common/brand/lx
  48   48  LDLIBS +=       -lzonecfg -lipadm -lsocket -linetutil -lnsl -lcmdutils -ldhcpagent
       49 +LINTFLAGS +=    -xerroff=E_NAME_DEF_NOT_USED2
  49   50  
  50   51  .KEEP_STATE:
  51   52  
  52   53  install: all $(ROOTPROG)
  53   54  
  54   55  clean:
  55   56          $(RM) $(PROG) $(OBJS)
  56   57  
  57      -lint: lint_PROG lint_SRCS
       58 +lint: lint_SRCS
  58   59  
  59   60  $(PROG): $(OBJS)
  60   61          $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  61   62          $(POST_PROCESS)
  62   63  
  63   64  %.o: %.c
  64   65          $(COMPILE.c) $<
  65   66          $(POST_PROCESS_O)
  66   67  
  67   68  %.o: $(SRC)/common/list/%.c
  68   69          $(COMPILE.c) $<
  69   70          $(POST_PROCESS_O)
  70   71  
  71   72  include $(SRC)/cmd/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX