1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 # Copyright 2016 Joyent, Inc.
  25 #
  26 #
  27 
  28 #
  29 #       Section 1a: C object build rules
  30 #
  31 $(OBJS_DIR_OBJ64)/%.o:          $(UTSBASE)/common/brand/lx/os/%.c
  32         $(COMPILE.c) -o $@ $<
  33         $(CTFCONVERT_O)
  34 
  35 $(OBJS_DIR_DBG64)/%.o:          $(UTSBASE)/common/brand/lx/os/%.c
  36         $(COMPILE.c) -o $@ $<
  37         $(CTFCONVERT_O)
  38 
  39 $(OBJS_DIR_OBJ64)/%.o:          $(UTSBASE)/common/brand/lx/syscall/%.c
  40         $(COMPILE.c) -o $@ $<
  41         $(CTFCONVERT_O)
  42 
  43 $(OBJS_DIR_DBG64)/%.o:          $(UTSBASE)/common/brand/lx/syscall/%.c
  44         $(COMPILE.c) -o $@ $<
  45         $(CTFCONVERT_O)
  46 
  47 $(OBJS_DIR_OBJ64)/%.o:          $(UTSBASE)/intel/brand/lx/%.c
  48         $(COMPILE.c) -o $@ $<
  49         $(CTFCONVERT_O)
  50 
  51 $(OBJS_DIR_DBG64)/%.o:          $(UTSBASE)/intel/brand/lx/%.c
  52         $(COMPILE.c) -o $@ $<
  53         $(CTFCONVERT_O)
  54 
  55 $(OBJS_DIR_OBJ64)/%.o:          $(UTSBASE)/intel/brand/lx/%.s
  56         $(COMPILE.s) -I$(UTSBASE)/i86pc -o $@ $<
  57 
  58 $(OBJS_DIR_OBJ64)/%.o:          $(LX_CMN)/%.c
  59         $(COMPILE.c) -o $@ $<
  60         $(CTFCONVERT_O)
  61 
  62 $(OBJS_DIR_DBG64)/%.o:          $(UTSBASE)/intel/brand/lx/%.s
  63         $(COMPILE.s) -I$(UTSBASE)/i86pc -o $@ $<
  64 
  65 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/brand/lx/os/%.c
  66         $(COMPILE.c) -o $@ $<
  67         $(CTFCONVERT_O)
  68 
  69 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/brand/lx/syscall/%.c
  70         $(COMPILE.c) -o $@ $<
  71         $(CTFCONVERT_O)
  72 
  73 $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/brand/lx/%.c
  74         $(COMPILE.c) -o $@ $<
  75         $(CTFCONVERT_O)
  76 
  77 $(OBJS_DIR)/%.o:                $(LX_CMN)/%.c
  78         $(COMPILE.c) -o $@ $<
  79         $(CTFCONVERT_O)
  80 
  81 $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/brand/lx/%.s
  82         $(COMPILE.s) -I$(UTSBASE)/i86pc -o $@ $<
  83 
  84 #
  85 #       Section 1b: Lint `object' build rules.
  86 #
  87 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/brand/lx/os/%.c
  88         @($(LHEAD) $(LINT.c) $< $(LTAIL))
  89 
  90 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/brand/lx/syscall/%.c
  91         @($(LHEAD) $(LINT.c) $< $(LTAIL))
  92 
  93 $(LINTS_DIR)/%.ln:              $(LX_CMN)/%.c
  94         @($(LHEAD) $(LINT.c) $< $(LTAIL))
  95 
  96 $(LINTS_DIR)/%.ln:              $(UTSBASE)/intel/brand/lx/%.c
  97         @($(LHEAD) $(LINT.c) $< $(LTAIL))
  98 
  99 $(LINTS_DIR)/%.ln:              $(UTSBASE)/intel/brand/lx/%.s
 100         @($(LHEAD) $(LINT.s) $< $(LTAIL))
 101 
 102 $(LINTS_DIR)/%.ln:              $(UTSBASE)/intel/brand/lx/%.c
 103         @($(LHEAD) $(LINT.c) $< $(LTAIL))