diff options
Diffstat (limited to 'libdha/Makefile')
-rw-r--r-- | libdha/Makefile | 14 |
1 files 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.* |