Commit 9e5c2eb2168628a70ed2bbe3564e565f78f0626b

Timothy Gu 2015-03-11T17:15:03

Merge pull request #7 from xantares/patch-3 only one rule to generate shared/export lib Fixes #1

diff --git a/Makefile b/Makefile
index f40ccf8..2b03051 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ include config.mak
 CFLAGS=-Wall -O3 -fomit-frame-pointer
 
 ifeq ($(BUILD_SHARED),yes)
-	TARGETS += libdl.dll libdl.dll.a
+	TARGETS += libdl.dll
 	SHFLAGS += -Wl,--out-implib,libdl.dll.a
 	INSTALL += shared-install
 endif
@@ -31,7 +31,7 @@ libdl.a: $(LIB_OBJS)
 	$(AR) cru $@ $^
 	$(RANLIB) libdl.a
 
-libdl.dll libdl.dll.a: $(LIB_OBJS)
+libdl.dll: $(LIB_OBJS)
 	$(CC) $(SHFLAGS) -shared -o $@ $^
 
 libdl.lib: libdl.dll