Home | History | Annotate | Download | only in ucblinks
      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 # Copyright (c) 1998,2001 by Sun Microsystems, Inc.
     24 # All rights reserved.
     25 #
     26 #ident	"%Z%%M%	%I%	%E% SMI"
     27 
     28 PROG= ucblinks
     29 OBJS= $(PROG).o
     30 
     31 SHLIBEXFILES= ucblinks.sh
     32 SHLIBFILES= ucblinks.awk
     33 
     34 include ../Makefile.ucbcmd
     35 
     36 ROOTLIBEXFILES= $(ROOTLIB)/$(SHLIBEXFILES)
     37 ROOTLIBFILES= $(ROOTLIB)/$(SHLIBFILES)
     38 GROUP = sys
     39 $(ROOTLIBEXFILES)	:= FILEMODE = 555
     40 $(ROOTLIBFILES)		:= FILEMODE = 644
     41 $(ROOTLIB)	:= GROUP = bin
     42 $(PROG)	:= GROUP = bin
     43 
     44 LDLIBS += -ldevinfo
     45 
     46 CLEANFILES += $(OBJS)
     47 
     48 
     49 .KEEP_STATE:
     50 
     51 all: $(PROG) $(SHLIBEXFILES) $(SHLIBFILES)
     52 
     53 install: all $(ROOTPROG) $(ROOTLIB) $(ROOTLIBEXFILES) $(ROOTLIBFILES)
     54 
     55 $(ROOTLIB):
     56 	$(INS.dir)
     57 
     58 clean:
     59 	$(RM) $(CLEANFILES)
     60 
     61 lint:
     62 
     63 include ../Makefile.ucbtarg
     64