$NetBSD: patch-ab,v 1.21 2018/04/02 16:26:03 spz Exp $ --- ./mk-1st.awk.orig 2017-12-02 23:29:29.000000000 +0000 +++ ./mk-1st.awk @@ -67,6 +67,9 @@ function is_termlib() { } # see lib_name function lib_name_of(a_name) { + if (a_name == "form" || a_name == "panel" || a_name == "menu" || a_name == "formw" || a_name == "panelw" || a_name == "menuw") + return sprintf("%sgnu%s%s", prefix, a_name, suffix) + else return sprintf("%s%s%s", prefix, a_name, suffix) } # see imp_name @@ -471,7 +474,7 @@ END { printf "\t$(RANLIB) $@\n" if ( host == "vxworks" ) { - printf "\t$(LD) $(LD_OPTS) $? -o $(@:.a=$o)\n" + printf "\t$(LD) $(LD_OPTS) $? -o $(@:.a=.o)\n" } print "" print "install \\" @@ -517,7 +520,7 @@ END { print "mostlyclean::" printf "\t-rm -f $(%s_OBJS)\n", OBJS if ( MODEL == "LIBTOOL" ) { - printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:$o=.lo)\n", OBJS + printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:.o=.lo)\n", OBJS } } else if ( found == 2 ) @@ -526,13 +529,13 @@ END { print "mostlyclean::" printf "\t-rm -f $(%s_OBJS)\n", OBJS if ( MODEL == "LIBTOOL" ) { - printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:$o=.lo)\n", OBJS + printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:.o=.lo)\n", OBJS } print "" print "clean ::" printf "\t-rm -f $(%s_OBJS)\n", OBJS if ( MODEL == "LIBTOOL" ) { - printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:$o=.lo)\n", OBJS + printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:.o=.lo)\n", OBJS } } }