]> git.sesse.net Git - vlc/blobdiff - plugins/mga/Makefile
* Added .cvsignore files in the plugins directories.
[vlc] / plugins / mga / Makefile
index 802ef93678f4750c29fd0a0b25be385b003137e3..ada6efcb464ea78331be37152fd0d50f4f9045f2 100644 (file)
@@ -3,54 +3,30 @@
 # (c)2001 VideoLAN
 ###############################################################################
 
-include ../../Makefile.modules
+-include ../../Makefile.modules
 
-###############################################################################
-# Objects and files
-###############################################################################
-PLUGIN_MGA = mga.o vout_mga.o
-BUILTIN_MGA = $(PLUGIN_MGA:%.o=%-BUILTIN.o)
-
-STD_PLUGIN_OBJ = $(PLUGIN_MGA)
-STD_BUILTIN_OBJ = $(BUILTIN_MGA)
-ALL_OBJ = $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ)
+#
+# Objects
+#
 
-objects := $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ)
-cdependancies := $(objects:%.o=.dep/%.d)
+PLUGIN_C = mga.o vout_mga.o
+BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o)
 
-export
+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
-
-$(STD_PLUGIN_OBJ): %.o: .dep/%.d
-$(STD_PLUGIN_OBJ): %.o: %.c
-       $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
-
-$(STD_BUILTIN_OBJ): %-BUILTIN.o: .dep/%.d
-$(STD_BUILTIN_OBJ): %-BUILTIN.o: %.c
-       $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<
+include ../../Makefile.common
 
 #
 # Real targets
 #
-../../lib/mga.so: $(PLUGIN_MGA)
+
+../../lib/mga.so: $(PLUGIN_C)
        $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) 
 
-../../lib/mga.a: $(BUILTIN_MGA)
+../../lib/mga.a: $(BUILTIN_C)
        ar r $@ $^