X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Ftext%2FMakefile;h=2265660a10ce50b055cda96a758b2148fb41a918;hb=a70f8bb371466209770c4c3bcdb7137b94acef66;hp=14f6fe4711b8fe917d094161db20c431643073f7;hpb=5b51669f92bf457a6c0199fce15e2149c1ae9b00;p=vlc diff --git a/plugins/text/Makefile b/plugins/text/Makefile index 14f6fe4711..2265660a10 100644 --- a/plugins/text/Makefile +++ b/plugins/text/Makefile @@ -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) $@