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.1 08/10/01 SMI" 26 27 include ../Makefile.cmd 28 29 VER=gawk-3.1.5 30 PROG=gawk 31 32 INSTALL=/usr/bin/ginstall 33 34 CFLAGS += $(XPG6MODE) -xstrconst 35 36 all: $(VER)/config.status 37 (cd $(VER); env - \ 38 PATH=$(SFW_PATH) \ 39 CC=$(CC) \ 40 "CFLAGS=$(CFLAGS)" \ 41 MAKE=$(CCSMAKE) \ 42 INSTALL="$(INSTALL) -c" \ 43 $(CCSMAKE)) 44 45 install: all 46 (cd $(VER)/po; env - \ 47 PATH=$(SFW_PATH) \ 48 CC=$(CC) \ 49 "CFLAGS=$(CFLAGS)" \ 50 MAKE=$(CCSMAKE) \ 51 DESTDIR=$(ROOT) \ 52 INSTALL="$(INSTALL) -c" \ 53 $(CCSMAKE) install) 54 $(SH) ./install-sfw 55 56 # for configure, use default --prefix in Makefile.master 57 58 $(VER)/config.status: $(VER)/configure 59 (cd $(VER); env - \ 60 PATH=$(SFW_PATH) \ 61 CC=$(CC) \ 62 "CFLAGS=$(CFLAGS)" \ 63 INSTALL="$(INSTALL) -c" \ 64 MAKE=$(CCSMAKE) \ 65 ./configure $(CONFIGURE_OPTIONS)) 66 67 $(VER)/configure: $(VER).tar.gz 68 gzip -dc $(VER).tar.gz | $(GTAR) xpf - --no-same-owner 69 touch $(VER)/configure 70 71 clean: 72 -rm -rf $(VER) 73 74 include ../Makefile.targ 75