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 # Copyright 2019 Joyent, Inc.
  12 #
  13 
  14 #
  15 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  16 #
  17 UTSBASE = ../..
  18 
  19 #
  20 #       Define the module and object file sets.
  21 #
  22 MODULE          = cc
  23 OBJECTS         = $(CC_OBJS:%=$(OBJS_DIR)/%)
  24 LINTS           = $(CC_OBJS:%.o=$(LINTS_DIR)/%.ln)
  25 ROOTMODULE      = $(ROOT_MISC_DIR)/$(MODULE)
  26 
  27 #
  28 #       Include common rules.
  29 #
  30 include $(UTSBASE)/sparc/Makefile.sparc
  31 
  32 #
  33 #       Define targets
  34 #
  35 ALL_TARGET      = $(BINARY)
  36 LINT_TARGET     = $(MODULE).lint
  37 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  38 
  39 #
  40 #       Overrides.
  41 #
  42 CFLAGS          += $(CCVERBOSE)
  43 LDFLAGS         += -dy
  44 
  45 #
  46 #       Default build targets.
  47 #
  48 .KEEP_STATE:
  49 
  50 def:            $(DEF_DEPS)
  51 
  52 all:            $(ALL_DEPS)
  53 
  54 clean:          $(CLEAN_DEPS)
  55 
  56 clobber:        $(CLOBBER_DEPS)
  57 
  58 lint:           $(LINT_DEPS)
  59 
  60 modlintlib:     $(MODLINTLIB_DEPS)
  61 
  62 clean.lint:     $(CLEAN_LINT_DEPS)
  63 
  64 install:        $(INSTALL_DEPS)
  65 
  66 #
  67 #       Include common targets.
  68 #
  69 include $(UTSBASE)/sparc/Makefile.targ