1SubDir HAIKU_TOP src bin gawk ; 2 3SetSubDirSupportedPlatformsBeOSCompatible ; 4 5# filter warnings we don't want here 6TARGET_WARNING_CCFLAGS = [ FFilter $(TARGET_WARNING_CCFLAGS) 7 : -Wall -Wmissing-prototypes -Wsign-compare ] ; 8 9SubDirCcFlags -DDEFPATH='\".:/share/awk\"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='\"/share/locale\"' ; 10 11SubDirSysHdrs $(SUBDIR) ; 12SubDirSysHdrs [ FDirName $(SUBDIR) intl ] ; 13 14local gawk_rsrc = [ FGristFiles gawk.rsrc ] ; 15ResComp $(gawk_rsrc) : [ FGristFiles gawk.rdef ] ; 16 17local common_files = 18 array.c awkgram.c builtin.c ext.c field.c 19 gawkmisc.c getopt.c getopt1.c io.c 20 main.c msg.c node.c random.c re.c 21 regex.c replace.c version.c 22 ; 23 24Objects $(common_files) ; 25 26BinCommand gawk : 27 [ FGristFiles $(common_files:S=.o) ] eval.c profile.c 28 : <gawk>libintl.a 29 : gawk.rsrc ; 30 31BinCommand pgawk : 32 [ FGristFiles $(common_files:S=.o) ] eval_p.c profile_p.c 33 : <gawk>libintl.a 34 : gawk.rsrc ; 35 36SubInclude HAIKU_TOP src bin gawk intl ; 37