1#!/usr/bin/perl 2 3use File::Basename; 4 5my $file = shift; 6my $dirname = shift; 7my $basename = basename($file); 8 9my $header = "$dirname/$basename"; $header =~ s/\.et$/.h/; 10my $source = "$dirname/$basename"; $source =~ s/\.et$/.c/; 11print "basics:: $header\n"; 12print "$header $source: \$(heimdalsrcdir)/$file \$(ET_COMPILER)\n"; 13print "\t\@echo \"Compiling error table $file\"\n"; 14print "\t\@\$(heimdalbuildsrcdir)/et_compile_wrapper.sh \$(builddir) $dirname \$(ET_COMPILER) \$(call abspath,\$(heimdalsrcdir)/$file) $source\n\n"; 15 16print "clean:: \n"; 17print "\t\@rm -f $header $source\n\n"; 18