Print this page
MFV: illumos-gate@48d370f1e98a10b1bdf160dd83a49e0f49f6c1b7
9809 nvme driver should attach to all NVMe 1.x devices
9810 Update parts of NVMe headers for newer specs
9811 nvmeadm(1M) should have ctf
Reviewed by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Dan McDonald <danmcd@joyent.com>
Author: Robert Mustacchi <rm@joyent.com>
NEX-4431 want NVMe management utility
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/nvmeadm/Makefile
          +++ new/usr/src/cmd/nvmeadm/Makefile
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2015 Nexenta Systems, Inc.
       14 +# Copyright (c) 2018, Joyent, Inc.
  14   15  #
  15   16  
  16   17  
  17   18  PROG= nvmeadm
  18   19  
  19   20  OBJS= nvmeadm.o nvmeadm_dev.o nvmeadm_print.o
  20   21  SRCS= $(OBJS:%.o=%.c)
  21   22  
  22   23  include ../Makefile.cmd
       24 +include ../Makefile.ctf
  23   25  
  24   26  .KEEP_STATE:
  25   27  
  26   28  CFLAGS +=       $(CCVERBOSE)
  27   29  LDLIBS +=       -ldevinfo
  28   30  CSTD=   $(CSTD_GNU99)
  29   31  
  30   32  all: $(PROG)
  31   33  
  32   34  $(PROG): $(OBJS)
  33   35          $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  34   36          $(POST_PROCESS)
  35   37  
       38 +%.o: %.c
       39 +        $(COMPILE.c) $<
       40 +        $(POST_PROCESS_O)
       41 +
  36   42  install: all $(ROOTUSRSBINPROG)
  37   43  
  38   44  clean:
  39   45          $(RM) $(OBJS) $(PROG)
  40   46  
  41   47  lint:   lint_SRCS
  42   48  
  43   49  include ../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX