summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/mk-0th.awk
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-01-20 07:32:02 +0000
committerrafan <rafan@FreeBSD.org>2007-01-20 07:32:02 +0000
commita35ca3ffa07d253f729abfe49e019438658f9333 (patch)
tree1351fbc560fb430cd5e493287f4950d583f23af3 /contrib/ncurses/mk-0th.awk
parent61ebc4fdc6ffaff63296473b0fef0ff5e17067f7 (diff)
parentde9cbef68d4c3ea6cd003ce086e2d3487600ace7 (diff)
downloadFreeBSD-src-a35ca3ffa07d253f729abfe49e019438658f9333.zip
FreeBSD-src-a35ca3ffa07d253f729abfe49e019438658f9333.tar.gz
This commit was generated by cvs2svn to compensate for changes in r166124,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/ncurses/mk-0th.awk')
-rw-r--r--contrib/ncurses/mk-0th.awk38
1 files changed, 23 insertions, 15 deletions
diff --git a/contrib/ncurses/mk-0th.awk b/contrib/ncurses/mk-0th.awk
index b71d66a..fe91cca 100644
--- a/contrib/ncurses/mk-0th.awk
+++ b/contrib/ncurses/mk-0th.awk
@@ -1,6 +1,6 @@
-# $Id: mk-0th.awk,v 1.13 2002/02/23 20:38:11 tom Exp $
+# $Id: mk-0th.awk,v 1.17 2005/01/22 16:31:40 tom Exp $
##############################################################################
-# Copyright (c) 1998-2001 Free Software Foundation, Inc. #
+# Copyright (c) 1998-2004,2005 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"), #
@@ -33,23 +33,31 @@
#
# Variables:
# libname (library name, e.g., "ncurses", "panel", "forms", "menus")
+# subsets (is used here to decide if wide-character code is used)
#
BEGIN {
- print ""
- print "# generated by mk-0th.awk"
- print ""
- print ".SUFFIXES: .c .cc .h .i .ii"
- print ".c.i :"
- printf "\t$(CPP) $(CPPFLAGS) $< >$@\n"
- print ".cc.ii :"
- printf "\t$(CPP) $(CPPFLAGS) $< >$@\n"
- print ".h.i :"
- printf "\t$(CPP) $(CPPFLAGS) $< >$@\n"
- print ""
+ using = 0;
found = 0;
}
!/^[@#]/ {
- if ( $0 != "" )
+ if (using == 0)
+ {
+ print ""
+ print "# generated by mk-0th.awk"
+ printf "# libname: %s\n", libname
+ printf "# subsets: %s\n", subsets
+ print ""
+ print ".SUFFIXES: .c .cc .h .i .ii"
+ print ".c.i :"
+ printf "\t$(CPP) $(CPPFLAGS) $< >$@\n"
+ print ".cc.ii :"
+ printf "\t$(CPP) $(CPPFLAGS) $< >$@\n"
+ print ".h.i :"
+ printf "\t$(CPP) $(CPPFLAGS) $< >$@\n"
+ print ""
+ using = 1;
+ }
+ if ( $0 != "" && $1 != "link_test" )
{
if ( found == 0 )
{
@@ -84,7 +92,7 @@ END {
printf "\trm -f llib-l%s\n", libname
print ""
printf "llib-l%s : $(C_SRC)\n", libname
- printf "\tcproto -a -l -DLINT $(CPPFLAGS) $(C_SRC) >$@\n"
+ printf "\tcproto -a -l -DNCURSES_ENABLE_STDBOOL_H=0 -DLINT $(CPPFLAGS) $(C_SRC) >$@\n"
print ""
print "lintlib :"
printf "\tsh $(srcdir)/../misc/makellib %s $(CPPFLAGS)", libname
OpenPOWER on IntegriCloud