]> git.sesse.net Git - vlc/blobdiff - plugins/text/Makefile
* Mandatory step for video output IV and the audio output quality
[vlc] / plugins / text / Makefile
index 14f6fe4711b8fe917d094161db20c431643073f7..2265660a10ce50b055cda96a758b2148fb41a918 100644 (file)
@@ -3,52 +3,40 @@
 # (c)2001 VideoLAN
 ###############################################################################
 
-include ../../Makefile.modules
-
-###############################################################################
-# Objects and files
-###############################################################################
-PLUGIN_NCURSES = ncurses.o vout_ncurses.o
-BUILTIN_NCURSES = $(PLUGIN_NCURSES:%.o=%-BUILTIN.o)
-
-ALL_OBJ = $(PLUGIN_NCURSES) $(BUILTIN_NCURSES)
+#
+# Objects
+#
 
-objects := $(ALL_OBJ)
-cdependancies := $(objects:%.o=.dep/%.d)
+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)
 
-export
+PLUGIN_C = $(PLUGIN_NCURSES) $(PLUGIN_RC)
+BUILTIN_C = $(BUILTIN_NCURSES) $(BUILTIN_RC)
+ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C)
 
 #
 # Virtual targets
 #
-all:
-
-clean:
-       rm -f $(ALL_OBJ)
-       rm -f *.o *.moc *.bak *.builtin
-       rm -rf .dep
-
-FORCE:
 
-$(cdependancies): %.d: FORCE
-       @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
-
-$(ALL_OBJ): %.o: ../../Makefile.dep Makefile
-
-$(PLUGIN_NCURSES): %.o: .dep/%.d
-$(PLUGIN_NCURSES): %.o: %.c
-       $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
-
-$(BUILTIN_NCURSES): %-BUILTIN.o: .dep/%.d
-$(BUILTIN_NCURSES): %-BUILTIN.o: %.c
-       $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<
+include ../../Makefile.modules
 
 #
 # Real targets
 #
+
 ../../lib/ncurses.so: $(PLUGIN_NCURSES)
-       $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -lncurses
+       $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_NCURSES)
 
 ../../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) $@