summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dvdread/Makefile10
-rw-r--r--libdvdcss/Makefile10
2 files changed, 10 insertions, 10 deletions
diff --git a/dvdread/Makefile b/dvdread/Makefile
index 7935962dfb..72e916d838 100644
--- a/dvdread/Makefile
+++ b/dvdread/Makefile
@@ -14,7 +14,7 @@ SRCS = dvd_input.c \
OBJS = $(SRCS:.c=.o)
-LIB=libdvdread
+LIBNAME = libdvdread.a
.SUFFIXES: .c .o
@@ -28,11 +28,11 @@ endif
.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
diff --git a/libdvdcss/Makefile b/libdvdcss/Makefile
index 6a88ac02a8..33b3c5469d 100644
--- a/libdvdcss/Makefile
+++ b/libdvdcss/Makefile
@@ -12,7 +12,7 @@ SRCS = css.c \
OBJS = $(SRCS:.c=.o)
-LIB=libdvdcss
+LIBNAME = libdvdcss.a
.SUFFIXES: .c .o
@@ -31,11 +31,11 @@ endif
.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