From 832f95163bc07b9d5d429b38de6c38999a3ed949 Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 14 Mar 2007 22:38:42 +0000 Subject: [PATCH] Simplify rules using make shorthands. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22584 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libdha/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libdha/Makefile b/libdha/Makefile index 47f1cb730d..62334c4118 100644 --- a/libdha/Makefile +++ b/libdha/Makefile @@ -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.*