Home | History | Annotate | Download | only in sun4v
      1      0    stevel #
      2      0    stevel # CDDL HEADER START
      3      0    stevel #
      4      0    stevel # The contents of this file are subject to the terms of the
      5   1370  schwartz # Common Development and Distribution License (the "License").
      6   1370  schwartz # You may not use this file except in compliance with the License.
      7      0    stevel #
      8      0    stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9      0    stevel # or http://www.opensolaris.org/os/licensing.
     10      0    stevel # See the License for the specific language governing permissions
     11      0    stevel # and limitations under the License.
     12      0    stevel #
     13      0    stevel # When distributing Covered Code, include this CDDL HEADER in each
     14      0    stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15      0    stevel # If applicable, add the following below this CDDL HEADER, with the
     16      0    stevel # fields enclosed by brackets "[]" replaced with your own identifying
     17      0    stevel # information: Portions Copyright [yyyy] [name of copyright owner]
     18      0    stevel #
     19      0    stevel # CDDL HEADER END
     20      0    stevel #
     21   1370  schwartz 
     22      0    stevel #
     23  10840    Gerald # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     24      0    stevel # Use is subject to license terms.
     25      0    stevel #
     26      0    stevel #	This Makefile defines the build rules for the directory uts/sun4v
     27      0    stevel #	and its children. These are the source files which sun4v
     28      0    stevel #	"implementation architecture" dependent.
     29      0    stevel #
     30      0    stevel #	The following two-level ordering must be maintained in this file.
     31      0    stevel #	  Lines are sorted first in order of decreasing specificity based on
     32      0    stevel #	  the first directory component.  That is, sun4v rules come before
     33      0    stevel #	  sparc rules come before common rules.
     34      0    stevel #
     35      0    stevel #	  Lines whose initial directory components are equal are sorted
     36      0    stevel #	  alphabetically by the remaining components.
     37      0    stevel 
     38      0    stevel #
     39      0    stevel #	Section 1a: C object build rules
     40      0    stevel #
     41      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/cpu/%.c
     42      0    stevel 	$(COMPILE.c) -o $@ $<
     43      0    stevel 	$(CTFCONVERT_O)
     44      0    stevel 
     45      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/cpu/%.s
     46      0    stevel 	$(COMPILE.s) -o $@ $<
     47      0    stevel 
     48      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/%.c
     49      0    stevel 	$(COMPILE.c) -o $@ $<
     50      0    stevel 	$(CTFCONVERT_O)
     51    339   tsoydan 
     52      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/ml/%.s
     53      0    stevel 	$(COMPILE.s) -o $@ $<
     54      0    stevel 
     55      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/os/%.c
     56      0    stevel 	$(COMPILE.c) -o $@ $<
     57      0    stevel 	$(CTFCONVERT_O)
     58      0    stevel 
     59      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/pcbe/%.c
     60   1991     heppo 	$(COMPILE.c) -o $@ $<
     61   1991     heppo 	$(CTFCONVERT_O)
     62   4127       edp 
     63   4127       edp $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4/brand/sn1/%.s
     64  10840    Gerald 	$(COMPILE.s) -o $@ $<
     65  10840    Gerald 
     66  10840    Gerald $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4/brand/solaris10/%.s
     67   4127       edp 	$(COMPILE.s) -o $@ $<
     68   1991     heppo 
     69   1991     heppo $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/promif/%.c
     70      0    stevel 	$(COMPILE.c) -o $@ $<
     71      0    stevel 	$(CTFCONVERT_O)
     72      0    stevel 
     73      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/px/%.c
     74      0    stevel 	$(COMPILE.c) -o $@ $<
     75      0    stevel 	$(CTFCONVERT_O)
     76    624  schwartz 
     77    624  schwartz $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/px/%.s
     78   1370  schwartz 	$(COMPILE.s) -o $@ $<
     79   3156    girish 
     80   1370  schwartz $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/fpc/%.c
     81   1370  schwartz 	$(COMPILE.c) -o $@ $<
     82   1370  schwartz 	$(CTFCONVERT_O)
     83   1370  schwartz 
     84   1370  schwartz $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/fpc/%.s
     85    624  schwartz 	$(COMPILE.s) -o $@ $<
     86      0    stevel 
     87   3299  schwartz $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/n2piupc/%.c
     88   3299  schwartz 	$(COMPILE.c) -o $@ $<
     89   3299  schwartz 	$(CTFCONVERT_O)
     90   3299  schwartz 
     91   3299  schwartz $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/n2piupc/%.s
     92   3299  schwartz 	$(COMPILE.s) -o $@ $<
     93   3299  schwartz 
     94   1840   wh94709 $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/glvc/%.c
     95   1840   wh94709 	$(COMPILE.c) -o $@ $<
     96   1840   wh94709 	$(CTFCONVERT_O)
     97   1840   wh94709 
     98   1840   wh94709 $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/glvc/%.s
     99   1840   wh94709 	$(COMPILE.s) -o $@ $<
    100   1840   wh94709 
    101      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/vm/%.c
    102      0    stevel 	$(COMPILE.c) -o $@ $<
    103      0    stevel 	$(CTFCONVERT_O)
    104      0    stevel 
    105      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/vm/%.s
    106      0    stevel 	$(COMPILE.s) -o $@ $<
    107      0    stevel 
    108      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sfmmu/ml/%.s
    109      0    stevel 	$(COMPILE.s) -o $@ $<
    110      0    stevel 
    111      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sfmmu/vm/%.c
    112      0    stevel 	$(COMPILE.c) -o $@ $<
    113      0    stevel 	$(CTFCONVERT_O)
    114      0    stevel 
    115      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/sparc/os/%.c
    116      0    stevel 	$(COMPILE.c) -o $@ $<
    117      0    stevel 	$(CTFCONVERT_O)
    118      0    stevel 
    119      0    stevel $(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
    120      0    stevel 	$(COMPILE.c) -o $@ $<
    121      0    stevel 	$(CTFCONVERT_O)
    122      0    stevel 
    123      0    stevel $(OBJS_DIR)/%.o:		$(SRC)/common/mdesc/%.c
    124      0    stevel 	$(COMPILE.c) -o $@ $<
    125      0    stevel 	$(CTFCONVERT_O)
    126      0    stevel 
    127   3156    girish $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/niumx/%.c
    128   3156    girish 	$(COMPILE.c) -o $@ $<
    129   3156    girish 	$(CTFCONVERT_O)
    130   3156    girish 
    131   4625   gm89044 $(OBJS_DIR)/%.o:		$(UTSBASE)/sun4v/io/n2rng/%.c
    132   4625   gm89044 	$(COMPILE.c) -o $@ $<
    133   4625   gm89044 	$(CTFCONVERT_O)
    134   4625   gm89044 
    135   6495     speer $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4v/io/%.s
    136   6495     speer 	$(COMPILE.s) -o $@ $<
    137   6495     speer 
    138   4625   gm89044 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4v/io/n2rng/%.s
    139   4625   gm89044 	$(COMPILE.s) -o $@ $<
    140   4625   gm89044 
    141      0    stevel $(OBJS_DIR)/%.o:		$(SRC)/common/atomic/sparcv9/%.s
    142      0    stevel 	$(COMPILE.s) -o $@ $<
    143      0    stevel 
    144    227      kais $(OBJS_DIR)/%.o:		$(SRC)/common/crypto/arcfour/sun4v/%.c
    145    227      kais 	$(COMPILE.c) -o $@ $<
    146    227      kais 	$(CTFCONVERT_O)
    147    227      kais 
    148      0    stevel $(OBJS_DIR)/dtracestubs.s:	$(UNIX_O) $(LIBS)
    149   7144      jmcp 	$(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
    150   7144      jmcp 	    $(UNIQ) | $(NAWK) '{ \
    151      0    stevel 	    printf("\t.global %s\n\t.type %s, #function\n%s:\n", \
    152      0    stevel 	    $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
    153      0    stevel 
    154      0    stevel $(DTRACESTUBS):	$(DTRACESTUBS_O)
    155    580  wesolows 	$(BUILD.SO) $(DTRACESTUBS_O)
    156      0    stevel 
    157      0    stevel #
    158      0    stevel #	Section 1b: Lint `object' build rules
    159      0    stevel #
    160      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/cpu/%.c
    161      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    162      0    stevel 
    163      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/cpu/%.s
    164      0    stevel 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    165      0    stevel 
    166      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/%.c
    167      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    168   6495     speer 
    169   6495     speer $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/%.s
    170   6495     speer 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    171      0    stevel 
    172      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/px/%.c
    173      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    174      0    stevel 
    175    624  schwartz $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/px/%.s
    176    624  schwartz 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    177   3156    girish 
    178   3156    girish $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/niumx/%.c
    179   3156    girish 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    180   3156    girish 
    181   1370  schwartz $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/fpc/%.c
    182   1370  schwartz 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    183   1370  schwartz 
    184   1370  schwartz $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/fpc/%.s
    185   1370  schwartz 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    186   1370  schwartz 
    187   3299  schwartz $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/n2piupc/%.c
    188   3299  schwartz 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    189   3299  schwartz 
    190   3299  schwartz $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/n2piupc/%.s
    191   3299  schwartz 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    192   3299  schwartz 
    193   1840   wh94709 $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/glvc/%.c
    194   1840   wh94709 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    195   1840   wh94709 
    196   1840   wh94709 $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/glvc/%.s
    197   1840   wh94709 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    198   1840   wh94709 
    199   4625   gm89044 $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/n2rng/%.c
    200   4625   gm89044 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    201   4625   gm89044 
    202   4625   gm89044 $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/io/n2rng/%.s
    203   4625   gm89044 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    204   4625   gm89044 
    205      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/ml/%.s
    206      0    stevel 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    207      0    stevel 
    208      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/os/%.c
    209      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    210      0    stevel 
    211      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/pcbe/%.c
    212      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    213      0    stevel 
    214   4127       edp $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4/brand/sn1/%.s
    215   4127       edp 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    216   4127       edp 
    217  10840    Gerald $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4/brand/solaris10/%.s
    218  10840    Gerald 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    219  10840    Gerald 
    220   1991     heppo $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/promif/%.c
    221   1991     heppo 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    222   1991     heppo 
    223      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/vm/%.c
    224      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    225      0    stevel 
    226      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4v/vm/%.s
    227      0    stevel 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    228      0    stevel 
    229      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sfmmu/ml/%.s
    230      0    stevel 	@($(LHEAD) $(LINT.s) $< $(LTAIL))
    231      0    stevel 
    232      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sfmmu/vm/%.c
    233      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    234      0    stevel 
    235      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/sparc/os/%.c
    236      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    237      0    stevel 
    238      0    stevel $(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
    239      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    240      0    stevel 
    241      0    stevel $(LINTS_DIR)/%.ln:		$(SRC)/common/mdesc/%.c
    242      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    243      0    stevel 
    244      0    stevel $(LINTS_DIR)/%.ln:		$(SRC)/common/atomic/%.c
    245      0    stevel 	@($(LHEAD) $(LINT.c) $< $(LTAIL))
    246