X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=mk-0th.awk;h=366224309112ac0316e06fb1d099855417870f62;hp=6a01feded914e2eb265cf4319f07eea5d28175bf;hb=b661daf1160a873609d70843999cd46eff25d1f0;hpb=cc0205ede8ab81605ec83e7f1ac9ec33e9328a40 diff --git a/mk-0th.awk b/mk-0th.awk index 6a01fede..36622430 100644 --- a/mk-0th.awk +++ b/mk-0th.awk @@ -1,6 +1,7 @@ -# $Id: mk-0th.awk,v 1.22 2012/06/30 20:56:11 tom Exp $ +# $Id: mk-0th.awk,v 1.24 2021/03/20 11:44:48 tom Exp $ ############################################################################## -# Copyright (c) 1998-2010,2012 Free Software Foundation, Inc. # +# Copyright 2020,2021 Thomas E. Dickey # +# Copyright 1998-2010,2012 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -128,8 +129,10 @@ BEGIN { printf "C_SRC =" if ( $2 == "lib" ) found = 1 - else + else if ( $2 == "c++" ) found = 2 + else + found = 3 } if ( libname == "c++" || libname == "c++w" ) { srcname = sprintf("%s/%s.cc", $3, $1); @@ -158,6 +161,10 @@ END { show_list(ticlib, count_ticlib, list_ticlib); show_list(termlib, count_termlib, list_termlib); } + else if ( found == 2 ) + { + make_lintlib(libname, "$(C_SRC)"); + } else { print ""