Home | History | Annotate | Download | only in gmake
      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.sfw	1.8	08/02/09 SMI"
     26 #
     27 
     28 VER=make-3.81
     29 
     30 include ../Makefile.cmd
     31 
     32 SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/sfw/bin:$(PATH)"
     33 
     34 all: $(VER)/config.status
     35 	(cd $(VER); env \
     36 	    CC=$(CC) \
     37 	    "CFLAGS=$(CFLAGS)" \
     38 	    LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" \
     39 	    PATH=$(SFW_PATH) \
     40 	    MAKE=$(CCSMAKE) $(CCSMAKE))
     41 	@find . -name core -exec rm -f {} \;
     42 
     43 install: all
     44 	$(SH) ./install-sfw
     45 
     46 $(VER)/config.status: $(VER)/configure
     47 	(cd $(VER); env \
     48 	    CC=$(CC) \
     49 	    PATH=$(SFW_PATH) \
     50 	    MAKE=$(CCSMAKE) \
     51 	./configure --prefix=/usr \
     52 		    --program-prefix=g)
     53 
     54 $(VER)/configure: $(VER).tar.gz
     55 	/usr/bin/gzip -dc $(VER).tar.gz | $(GTAR) xpf - --no-same-owner
     56 	touch $(VER)/configure
     57 	find $(VER) -type d -exec /usr/bin/chmod 755 "{}" \;
     58 	find $(VER) -type f -exec /usr/bin/chmod ugo+r "{}" \;
     59 
     60 clean:
     61 	-rm -rf $(VER)
     62 
     63 include ../Makefile.targ
     64 
     65 FRC:
     66