1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
  14 #
  15 
  16 # This makefile drives the production of the aoeblk driver
  17 
  18 # Path to the base of the uts directory tree (usually /usr/src/uts).
  19 UTSBASE = ../..
  20 
  21 # Define the module and object file sets.
  22 MODULE          = aoeblk
  23 OBJECTS         = $(AOEBLK_OBJS:%=$(OBJS_DIR)/%)
  24 LINTS           = $(AOEBLK_OBJS:%.o=$(LINTS_DIR)/%.ln)
  25 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  26 CONF_SRCDIR     = $(UTSBASE)/common/io/aoe
  27 
  28 # Include common rules.
  29 include         ../Makefile.sparc
  30 
  31 # Define targets
  32 ALL_TARGET      = $(BINARY) $(SRC_CONFFILE)
  33 LINT_TARGET     = $(MODULE).lint
  34 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  35 
  36 # Overrides and depends_on
  37 LDFLAGS         += -r -dy -N drv/aoe -N drv/blkdev
  38 
  39 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  40 
  41 .KEEP_STATE:
  42 
  43 # Default build targets.
  44 all:            $(ALL_DEPS)
  45 
  46 clean.lint:     $(CLEAN_LINT_DEPS)
  47 
  48 clean:          $(CLEAN_DEPS)
  49 
  50 clobber:        $(CLOBBER_DEPS)
  51 
  52 def:            $(DEF_DEPS)
  53 
  54 install:        $(INSTALL_DEPS)
  55 
  56 lint:           $(LINT_DEPS)
  57 
  58 modlintlib:     $(MODLINTLIB_DEPS)
  59 
  60 # Include common targets.
  61 include         ../Makefile.targ