# (c)2001 VideoLAN
###############################################################################
--include ../../Makefile.modules
-
#
# Objects
#
-PLUGIN_C = ncurses.o vout_ncurses.o
-BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o)
+PLUGIN_NCURSES = ncurses.o intf_ncurses.o
+PLUGIN_RC = rc.o intf_rc.o
+BUILTIN_NCURSES = $(PLUGIN_NCURSES:%.o=BUILTIN_%.o)
+BUILTIN_RC = $(PLUGIN_RC:%.o=BUILTIN_%.o)
+PLUGIN_C = $(PLUGIN_NCURSES) $(PLUGIN_RC)
+BUILTIN_C = $(BUILTIN_NCURSES) $(BUILTIN_RC)
ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C)
#
# Virtual targets
#
-include ../../Makefile.common
+include ../../Makefile.modules
#
# Real targets
#
-../../lib/ncurses.so: $(PLUGIN_C)
+../../lib/ncurses.so: $(PLUGIN_NCURSES)
$(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_NCURSES)
-../../lib/ncurses.a: $(BUILTIN_C)
+../../lib/ncurses.a: $(BUILTIN_NCURSES)
+ ar r $@ $^
+ $(RANLIB) $@
+
+../../lib/rc.so: $(PLUGIN_RC)
+ $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
+
+../../lib/rc.a: $(BUILTIN_RC)
ar r $@ $^
+ $(RANLIB) $@