From dc9449db6776f4f07d4f927501cf4df06774d30d Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 21 Nov 2004 07:12:08 +0000 Subject: [PATCH] extract common elements and build only once git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10090 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/gawk/Jamfile | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/apps/bin/gawk/Jamfile b/src/apps/bin/gawk/Jamfile index 2ecc3b686f..2b7db1dbe1 100644 --- a/src/apps/bin/gawk/Jamfile +++ b/src/apps/bin/gawk/Jamfile @@ -8,21 +8,27 @@ SubDirCcFlags -DDEFPATH='\".:/share/awk\"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='\ SubDirHdrs [ FDirName $(SUBDIR) intl ] ; -BinCommand gawk : +local gawk_rsrc = [ FGristFiles gawk.rsrc ] ; +ResComp $(gawk_rsrc) : [ FGristFiles gawk.rdef ] ; + +local common_files = array.c awkgram.c builtin.c ext.c field.c gawkmisc.c getopt.c getopt1.c io.c main.c msg.c node.c random.c re.c - regex.c replace.c version.c eval.c profile.c + regex.c replace.c version.c + ; + +Objects $(common_files) ; + +BinCommand gawk : + [ FGristFiles $(common_files:S=.o) ] eval.c profile.c : libintl.a - : gawk.rdef ; + : gawk.rsrc ; BinCommand pgawk : - array.c awkgram.c builtin.c ext.c field.c - gawkmisc.c getopt.c getopt1.c io.c - main.c msg.c node.c random.c re.c - regex.c replace.c version.c eval_p.c profile_p.c + [ FGristFiles $(common_files:S=.o) ] eval_p.c profile_p.c : libintl.a - : gawk.rdef ; + : gawk.rsrc ; MakeLocate awk : $(OBOS_BIN_DIR) ; RelSymLink awk : gawk ;