[MPlayer-dev-eng] [PATCH] allow make -r to work

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Feb 15 23:01:20 CET 2010


Hello,
we currently rely on several implicit rules, so make -r actually does
not compile at all.
Patch below fixes the cases I know of, any objections?
Index: Makefile
===================================================================
--- Makefile	(revision 30589)
+++ Makefile	(working copy)
@@ -836,6 +836,15 @@
 %.ho: %.h
 	$(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
 
+%.o: %.S
+	$(CC) $(ASFLAGS) -c -o $@ $<
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $<
+
+%.o: %.cpp
+	$(CC) $(CXXFLAGS) -c -o $@ $<
+
 %.o: %.m
 	$(CC) $(CFLAGS) -c -o $@ $<
 



More information about the MPlayer-dev-eng mailing list