Simplify rules using make shorthands.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22584 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-03-14 22:38:42 +00:00
parent 4d8d0c681f
commit 832f95163b
1 changed files with 7 additions and 7 deletions

View File

@ -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.*