extract common elements and build only once

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10090 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-11-21 07:12:08 +00:00
parent da1c6d63b3
commit dc9449db67

View File

@ -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 ;