1 #
   2 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #
   5 # uts/intel/amd64_gart/Makefile
   6 #
   7 #
   8 #ident  "%Z%%M% %I%     %E% SMI"
   9 #
  10 #       This makefile drives the framework of agp protocol
  11 #       (amd64_gart) kernel module.
  12 #
  13 #
  14 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  15 #
  16 UTSBASE = ../..
  17 
  18 #
  19 #       Define the module and object file sets.
  20 #
  21 MODULE          = amd64_gart
  22 OBJECTS         = $(AMD64GART_OBJS:%=$(OBJS_DIR)/%)
  23 LINTS           = $(AMD64GART_OBJS:%.o=$(LINTS_DIR)/%.ln)
  24 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  25 
  26 #
  27 #       Include common rules.
  28 #
  29 include $(UTSBASE)/intel/Makefile.intel
  30 
  31 #
  32 #       Define targets
  33 #
  34 ALL_TARGET      = $(BINARY)
  35 LINT_TARGET     = $(MODULE).lint
  36 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  37 
  38 #
  39 #       Default build targets.
  40 #
  41 .KEEP_STATE:
  42 
  43 def:            $(DEF_DEPS)
  44 
  45 all:            $(ALL_DEPS)
  46 
  47 clean:          $(CLEAN_DEPS)
  48 
  49 clobber:        $(CLOBBER_DEPS)
  50 
  51 lint:           $(LINT_DEPS)
  52 
  53 modlintlib:     $(MODLINTLIB_DEPS)
  54 
  55 clean.lint:     $(CLEAN_LINT_DEPS)
  56 
  57 install:        $(INSTALL_DEPS)
  58 
  59 #
  60 #       Include common targets.
  61 #
  62 include $(UTSBASE)/intel/Makefile.targ