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, Version 1.0 only
   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # ident "%Z%%M% %I%     %E% SMI"
  24 #
  25 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  26 # Use is subject to license terms.
  27 #
  28 
  29 PROG=   machid
  30 
  31 include ../Makefile.cmd
  32 
  33 #
  34 #       List of all links present on all architectures and machines.
  35 #
  36 #       Note that this function is obsolesent and we don't generally
  37 #       add to this list (see psarc/1992/171).
  38 #
  39 FIRSTLINK =     i286
  40 LINKS =         i386 i486 i860 i86pc iAPX286 \
  41                 m68k mc68000 mc68010 mc68020 mc68030 mc68040 \
  42                 sparc sun sun2 sun3 sun3x sun4 sun4c sun4m sun4d sun4e \
  43                 u370 u3b u3b15 u3b2 u3b5 vax pdp11
  44 
  45 ROOTFIRSTLINK = $(ROOTBIN)/$(FIRSTLINK)
  46 ROOTLINKS =     $(LINKS:%=$(ROOTBIN)/%)
  47 
  48 #
  49 #     Install the program as the first machine in the list.
  50 #
  51 INSTALLIT=      $(INS.link)
  52 $(ROOTFIRSTLINK):=      INSTALLIT = $(INS.rename)
  53 $(ROOTLINKS):=          INSLINKTARGET = $(ROOTFIRSTLINK)
  54 
  55 $(ROOTLINKS):   $(ROOTFIRSTLINK)
  56 
  57 #
  58 #       Link installation rules
  59 #
  60 $(ROOTBIN)/%:   $(PROG)
  61         $(INSTALLIT)
  62 
  63 $(ROOTFIRSTLINK): $(ROOTBIN)
  64 
  65 $(ROOTBIN):
  66         $(INS.dir)
  67 
  68 CFLAGS += $(CCVERBOSE)
  69 
  70 .KEEP_STATE:
  71 
  72 all: $(PROG) 
  73 
  74 install: all $(ROOTLINKS)
  75 
  76 clean:
  77 
  78 lint:   lint_PROG
  79 
  80 include ../Makefile.targ