diff options
author | lloyd <[email protected]> | 2007-03-11 23:52:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-03-11 23:52:16 +0000 |
commit | 1a1c59035e6aff9f8e41a87909154cc18717c47d (patch) | |
tree | 483132843c12604c5e0a50289beab2c438c3dd8a /configure.pl | |
parent | 944d6777d60ceb9d89bc3f4ad7ea77c2d8b4868b (diff) |
Add support for plain C files (mostly interesting for use in modules)
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.pl b/configure.pl index bdfecdd64..81f5b9166 100755 --- a/configure.pl +++ b/configure.pl @@ -911,7 +911,7 @@ sub file_type { my ($config, $file) = @_; return ('sources', $$config{'src-dir'}) - if($file =~ /\.cpp$/ or $file =~ /\.S$/); + if($file =~ /\.cpp$/ or $file =~ /\.c$/ or $file =~ /\.S$/); return ('includes', $$config{'include-dir'}) if($file =~ /\.h$/); @@ -1385,6 +1385,7 @@ sub build_cmds { my $obj_file = File::Spec->catfile($dir, $_); $obj_file =~ s/\.cpp$/.$obj_suffix/; + $obj_file =~ s/\.c$/.$obj_suffix/; $obj_file =~ s/\.S$/.$obj_suffix/; $output .= "$obj_file: $src_file\n$bld_line\n\n"; @@ -1523,7 +1524,7 @@ sub generate_makefile { map_to($$config{'build_include_botan'}, keys %{$$config{'includes'}})); - my $lib_objs = file_list($$config{'build_lib'}, '(\.cpp$|\.S$)', + my $lib_objs = file_list($$config{'build_lib'}, '(\.cpp$|\.c$|\.S$)', '.' . $$config{'obj_suffix'}, %{$$config{'sources'}}); |