Fix madtty_color_pair for terms with only 8 colors.
[apps/madtty.git] / am / footer.mk
index 315e3f9..07511c8 100644 (file)
@@ -42,7 +42,7 @@ define CLASS_PROGRAMS_tpl
 
   $1: $$(call deps_create,$$($1_SOURCES),$(_cobjs)/$1)
        $(CC) $$(CFLAGS) $$($1_CPPFLAGS) -o $$@ $$(filter %.o,$$^) \
-               $$(LDFLAGS) $$($1_LDFLAGS) $$($1_LIBADD)
+               $$(LDFLAGS) $$($1_LDFLAGS) $$($1_LDADD)
 
   $$(eval $$(call RULE_C_tpl,$1,))
 
@@ -68,7 +68,7 @@ define CLASS_LIBRARIES_tpl
 
   $1.so$3: $$(call deps_create,$$($1_SOURCES),$(_cobjs)/$1)
        $(CC) $$(CFLAGS) $$($1_CPPFLAGS) -fPIC -shared -o $$@ $$(filter %.o,$$^) \
-               $$(LDFLAGS) $$($1_LDFLAGS) $$($1_LIBADD)
+               $$(LDFLAGS) $$($1_LDFLAGS) $$($1_LDADD)
        $$(if $$(word 2,$$(subst ., ,$3)),ln -sf $$@ $1.so.$$(word 1,$$(subst ., ,$3)))
        $$(if $$($1_VERSION), ln -sf $$@ $1.so)