# HG changeset patch # User diego # Date 1173911922 0 # Node ID 206456738325276b005fe96bac2bcd98fc05398c # Parent 46324dbdfc18817f76bdad7caad306267594ccd7 Simplify rules using make shorthands. diff -r 46324dbdfc18 -r 206456738325 libdha/Makefile --- a/libdha/Makefile Wed Mar 14 22:20:40 2007 +0000 +++ b/libdha/Makefile Wed Mar 14 22:38:42 2007 +0000 @@ -53,12 +53,12 @@ $(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 @@ 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.*