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 # 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 #ident "@(#)Makefile.sfw 1.2 08/10/27 SMI" 27 # 28 29 VER=bonnie++-1.03c 30 31 include ../Makefile.cmd 32 33 all: $(VER)/config.status 34 (cd $(VER); env - \ 35 LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" \ 36 CC=$(GCC) CXX=$(GXX) \ 37 "CFLAGS=$(CFLAGS)" \ 38 PATH=$(SFW_PATH) \ 39 MAKE=$(GMAKE) \ 40 LIBS=-lcurses \ 41 $(GMAKE) -e) 42 43 test: # there aren't any 44 45 install: all 46 $(SHELL) ./install-sfw 47 48 $(VER)/config.status: $(VER)/configure 49 (cd $(VER); env \ 50 CC=$(CC) CXX=$(CCC) \ 51 "CFLAGS=$(CFLAGS)" \ 52 PATH=$(SFW_PATH) \ 53 MAKE=$(GMAKE) \ 54 ./configure $(CONFIGURE_OPTIONS)) 55 patch -p0 < bon_csv2html.patch 56 patch -p0 < bon_csv2txt.patch 57 58 $(VER)/configure: $(VER).tgz 59 gzip -dc $(VER).tgz | tar xopf - 60 touch $(VER)/configure 61 62 clean: 63 -rm -rf $(VER) 64 65 include ../Makefile.targ 66