Home | History | Annotate | Download | only in tools
      1 #
      2 #
      3 # CDDL HEADER START
      4 #
      5 # The contents of this file are subject to the terms of the
      6 # Common Development and Distribution License (the "License").
      7 # You may not use this file except in compliance 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 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     23 # Use is subject to license terms.
     24 #
     25 #ident	"@(#)Makefile	1.15	08/09/26 SMI"
     26 #
     27 # tools/Makefile
     28 #
     29 # include global definitions
     30 include ../Makefile.master
     31 
     32 
     33 all :=		TARGET= all
     34 install :=	TARGET= install
     35 clean :=	TARGET= clean
     36 clobber :=	TARGET= clobber
     37 lint :=		TARGET= lint
     38 
     39 TOOLS = \
     40 	CC \
     41 	cc \
     42 	check-deps \
     43 	g++ \
     44 	gcc \
     45 	install-proto \
     46 	metainfo \
     47 	post_process \
     48 	post_process_so \
     49 	protofix \
     50 	stripbins \
     51 	sunman \
     52 	unpack-archive
     53 
     54 .KEEP_STATE:
     55 
     56 all install:	$(TOOLS) chown chgrp
     57 
     58 chown chgrp:
     59 	-$(RM) $@ ; $(SYMLINK) /bin/true $@
     60 
     61 clean clobber:
     62 	$(RM) $(TOOLS) chown chgrp
     63 
     64 post_process: post_process_so
     65 	-$(RM) post_process
     66 	sed -e 's,strip -x,strip,' \
     67 	    < post_process_so \
     68 	    > post_process
     69 	chmod a+x post_process
     70 
     71 lint:
     72