usr/src/cmd/iftop/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Mon, 21 Mar 2011 01:49:39 -0800
changeset 72 82bde2a81435
parent 0 b34509ac961f
permissions -rw-r--r--
Import sfw build 162 Bugs Fixed ---------- 7021535 remove bison runtime bits from SUNWgccruntime 7023530 remove even more things from sfw 7023710 net-ssleay 1.35 in SFW does not build with OpenSSL 1.0.0 7024341 emacs doesn't build on 160

# 
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
#
# ident	"@(#)Makefile.sfw	1.3	11/03/15 SMI"
#

VER		=	$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
TARBALL		=	$(VER).tar.gz
PATCHES:sh	=	echo Patches/*.patch

include ../Makefile.cmd

IFTOP_GCCFLAGS  =
IFTOP_LIBDIR    =       /usr/gnu/lib
CONFIG_OPTIONS  =	LDFLAGS="-L$(IFTOP_LIBDIR) -R$(IFTOP_LIBDIR)"
CONFIG_OPTIONS  +=	CPPFLAGS="-I/usr/gnu/include -I/usr/include/ncurses"

TARGET_ENV      +=      CC="$(GCC)"
TARGET_ENV      +=      CFLAGS="$(IFTOP_GCCFLAGS)"
TARGET_ENV      +=      PATH="$(SFW_PATH)"
TARGET_ENV      +=      MAKE="$(CCSMAKE)"
TARGET_ENV      +=      CONFIG_SHELL=$(CONFIG_SHELL)

all: $(VER)/Makefile
	(cd $(VER); env - $(TARGET_ENV) $(CCSMAKE))

install: all
	PKGVERS=$(VER) $(SHELL) ./install-sfw

$(VER)/Makefile: $(VER)/configure
	(cd $(VER); env - $(TARGET_ENV) $(CONFIG_SHELL) ./configure $(CONFIG_OPTIONS))

$(VER)/configure: $(VER)/.patched
	touch $@


clean:
	-rm -rf $(VER)
	
include ../Makefile.targ

FRC: