Makefile revision 101
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# CDDL HEADER START
04428429c4e689333e3ef8d19a2debeb20d4d15dMark Andrews#
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# The contents of this file are subject to the terms of the
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Common Development and Distribution License (the "License").
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# You may not use this file except in compliance with the License.
555d01f4c02295e896a26c649d0ffc8808a0bbdcAutomatic Updater#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrewsinclude ../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_NAME= gawk
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_VERSION= 3.1.5
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:6cb385b4bc33780a5a4288b787523cbd4a30a900
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gawk/$(COMPONENT_ARCHIVE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsinclude ../../make-rules/prep.mk
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude ../../make-rules/configure.mk
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterinclude ../../make-rules/ips.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
bac1bc98410bd876b8d38a6de6126709a7f8cc5aAutomatic UpdaterCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCONFIGURE_OPTIONS += --libexecdir=/usr/lib
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
f8448666aa53603696bea83de971a05007735d8fMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/shared-targets.mk
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# common targets
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsbuild: $(BUILD_32)
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall: $(PROTOGNUBIN) $(PROTOGNUSHAREMAN1) $(INSTALL_32)
3a6600c8d319275d73c36eb625f77103cd83e824Automatic Updater $(RM) $(PROTOGNUBIN)/awk
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews $(SYMLINK) ../../bin/gawk $(PROTOGNUBIN)/awk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(RM) $(PROTOGNUSHAREMAN1)/awk.1
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews $(SYMLINK) ../../../../share/man/man1/gawk.1 \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(PROTOGNUSHAREMAN1)/awk.1
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewstest: build
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson @cd $(BUILD_DIR_32); $(MAKE) check
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsinclude ../../make-rules/depend.mk
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson