changeset 21214:e7cd7283f57e

more consistency with the other Makefiles.
author diego
date Sat, 25 Nov 2006 17:09:25 +0000
parents 0c68d02f437c
children ff1ac890c40a
files dvdread/Makefile libdvdcss/Makefile
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/dvdread/Makefile	Sat Nov 25 17:06:08 2006 +0000
+++ b/dvdread/Makefile	Sat Nov 25 17:09:25 2006 +0000
@@ -14,7 +14,7 @@
 
 OBJS = $(SRCS:.c=.o)
 
-LIB=libdvdread
+LIBNAME = libdvdread.a
 
 .SUFFIXES: .c .o
 
@@ -28,11 +28,11 @@
 .c.o:
 	$(CC) $(CFLAGS) -c -o $@ $<
 
-all: $(LIB).a
+all: $(LIBNAME)
 
-$(LIB).a: $(OBJS)
-	$(AR) rc $(LIB).a $(OBJS)
-	$(RANLIB) $(LIB).a
+$(LIBNAME): $(OBJS)
+	$(AR) rc $@ $^
+	$(RANLIB) $@
 
 clean:
 	rm -f *.o *.a *~ *.so
--- a/libdvdcss/Makefile	Sat Nov 25 17:06:08 2006 +0000
+++ b/libdvdcss/Makefile	Sat Nov 25 17:09:25 2006 +0000
@@ -12,7 +12,7 @@
 
 OBJS = $(SRCS:.c=.o)
 
-LIB=libdvdcss
+LIBNAME = libdvdcss.a
 
 .SUFFIXES: .c .o
 
@@ -31,11 +31,11 @@
 .c.o:
 	$(CC) $(CFLAGS) -c -o $@ $<
 
-all: $(LIB).a
+all: $(LIBNAME)
 
-$(LIB).a: $(OBJS)
-	$(AR) rc $(LIB).a $(OBJS)
-	$(RANLIB) $(LIB).a
+$(LIBNAME): $(OBJS)
+	$(AR) rc $@ $^
+	$(RANLIB) $@
 
 clean:
 	rm -f *.o *.a *~ *.so