cyril@0: # cyril@0: # CDDL HEADER START cyril@0: # cyril@0: # The contents of this file are subject to the terms of the cyril@0: # Common Development and Distribution License (the "License"). cyril@0: # You may not use this file except in compliance with the License. cyril@0: # cyril@0: # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE cyril@0: # or http://www.opensolaris.org/os/licensing. cyril@0: # See the License for the specific language governing permissions cyril@0: # and limitations under the License. cyril@0: # cyril@0: # When distributing Covered Code, include this CDDL HEADER in each cyril@0: # file and include the License file at usr/src/OPENSOLARIS.LICENSE. cyril@0: # If applicable, add the following below this CDDL HEADER, with the cyril@0: # fields enclosed by brackets "[]" replaced with your own identifying cyril@0: # information: Portions Copyright [yyyy] [name of copyright owner] cyril@0: # cyril@0: # CDDL HEADER END cyril@0: # cyril@0: cyril@0: # cyril@0: # Copyright 2009 Sun Microsystems, Inc. All rights reserved. cyril@0: # Use is subject to license terms. cyril@0: # cyril@0: # ident "@(#)Makefile.sfw 1.1 09/06/19 SMI" cyril@0: # cyril@0: cyril@0: VER = $(COMPONENT_NAME:sh)$(COMPONENT_VERSION:sh) cyril@0: TARBALL= $(VER).tar.bz2 cyril@0: SRC_ROOT=$(VER)/src/current cyril@0: cyril@0: include ../Makefile.cmd cyril@0: cyril@0: # If CFLAGS doesn't contain "-m64" flag, we will build a 32-bit binary. cyril@0: all: $(SRC_ROOT)/makefile cyril@0: (cd $(SRC_ROOT); env - \ cyril@0: CC=$(CC) \ cyril@0: S10CCFLAGS="$(CFLAGS)" \ cyril@0: LDFLAGS="$(LDFLAGS)" \ cyril@0: $(CCSMAKE) -e -f makefile Solaris10cc-64) cyril@0: cyril@0: install: all cyril@0: PKGDIR=$(VER) $(SHELL) ./install-sfw cyril@0: cyril@0: $(SRC_ROOT)/makefile: $(TARBALL) cyril@0: /usr/bin/bzip2 -dc $(TARBALL) | $(GTAR) xpf - --no-same-owner cyril@0: touch $(SRC_ROOT)/makefile cyril@0: cyril@0: clean: cyril@0: -rm -rf $(VER) cyril@0: cyril@0: include ../Makefile.targ