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 2016 Garrett D'Amore <garrett@damore.org>
  14 #
  15 
  16 UTSBASE         = ../..
  17 
  18 MODULE          = sfxge
  19 OBJECTS         = $(SFXGE_OBJS:%=$(OBJS_DIR)/%)
  20 LINTS           = $(SFXGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
  21 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  22 
  23 include $(UTSBASE)/intel/Makefile.intel
  24 
  25 #
  26 # Targets
  27 #
  28 ALL_TARGET      = $(BINARY)
  29 LINT_TARGET     = $(MODULE).lint
  30 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  31 
  32 #
  33 # Overrides
  34 #
  35 
  36 INC_PATH += -I$(UTSBASE)/common/io/sfxge -I$(UTSBASE)/common/io/sfxge/common
  37 
  38 #
  39 # TODO:
  40 # These are specific to this driver.  We will unidef these out later.
  41 # Some of them need further cleanup as well (e.g. we shouldn't bother with
  42 # supporting NDD directly.)
  43 #
  44 CPPFLAGS += -U_USE_MTU_UPDATE
  45 
  46 CFLAGS += $(CCVERBOSE)
  47 
  48 #
  49 # Driver depends on GLDv3 (mac)
  50 #
  51 LDFLAGS         += -dy -N misc/mac
  52 
  53 #
  54 # Default build targets.
  55 #
  56 .KEEP_STATE:
  57 
  58 def:            $(DEF_DEPS)
  59 
  60 all:            $(ALL_DEPS)
  61 
  62 clean:          $(CLEAN_DEPS)
  63 
  64 clobber:        $(CLOBBER_DEPS)
  65 
  66 lint:           $(LINT_DEPS)
  67 
  68 modlintlib:     $(MODLINTLIB_DEPS)
  69 
  70 clean.lint:     $(CLEAN_LINT_DEPS)
  71 
  72 install:        $(INSTALL_DEPS)
  73 
  74 #
  75 #       Include common targets.
  76 #
  77 include $(UTSBASE)/intel/Makefile.targ