[MPlayer-cvslog] r22584 - trunk/libdha/Makefile

diego subversion at mplayerhq.hu
Wed Mar 14 23:38:42 CET 2007


Author: diego
Date: Wed Mar 14 23:38:42 2007
New Revision: 22584

Modified:
   trunk/libdha/Makefile

Log:
Simplify rules using make shorthands.


Modified: trunk/libdha/Makefile
==============================================================================
--- trunk/libdha/Makefile	(original)
+++ trunk/libdha/Makefile	Wed Mar 14 23:38:42 2007
@@ -53,12 +53,12 @@ endif
 
 $(LIBNAME):     $(OBJS)
 ifeq ($(TARGET_WIN32),yes)
-	$(AR) r $(LIBNAME) $(OBJS)
+	$(AR) r $@ $^
 else
-	#$(CC) -shared $(SONAME_FLAGS) -o $(LIBNAME) $(OBJS) $(LIBS)
-	$(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS)
-	ln -sf $(LIBNAME) $(SHORTNAME)
-	ln -sf $(LIBNAME) $(VSHORTNAME)
+	#$(CC) -shared $(SONAME_FLAGS) -o $@ $^ $(LIBS)
+	$(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(LIBS)
+	ln -sf $@ $(SHORTNAME)
+	ln -sf $@ $(VSHORTNAME)
 endif
 
 all:    $(LIBNAME) $(SHORTNAME)
@@ -66,8 +66,8 @@ all:    $(LIBNAME) $(SHORTNAME)
 pci_names.c:	oth/pci.db
 	LC_ALL=C $(AWK) -f pci_db2c.awk $<
 
-test:
-	$(CC) test.c -o test $(SHORTNAME)
+test: $(SHORTNAME)
+	$(CC) test.c -o $@ $^
 
 clean:
 	rm -f *.o *.a *~ *.so *.so.*



More information about the MPlayer-cvslog mailing list