]> Nishi Git Mirror - libw3.git/commitdiff
lib
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Wed, 17 Jan 2024 11:40:21 +0000 (11:40 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Wed, 17 Jan 2024 11:40:21 +0000 (11:40 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@21 d27a3e52-49c5-7645-884c-6793ebffc270

Library/Makefile
Makefile

index d0edd5bdb67c6f2ce0a96021a984642bb62a6b98..1cc127617208bf3e34fed479ef02e3632f64c7be 100644 (file)
@@ -3,7 +3,7 @@
 
 ifdef WINDOWS
 ./w3.dll: ./Core.o ./Util.o ./DNS.o ./HTTP.o
-       $(CC) $(LDFLAGS) -shared -o $@ $^ $(LIBS)
+       $(CC) $(LDFLAGS) -shared -Wl,--out-implib,./w3.lib -o $@ $^ $(LIBS)
 else
 ./libw3.so: ./Core.o ./Util.o ./DNS.o ./HTTP.o
        $(CC) $(LDFLAGS) -shared -o $@ $^ $(LIBS)
@@ -13,7 +13,7 @@ endif
        $(CC) $(CFLAGS) -c -o $@ $<
 
 clean:
-       rm -f *.o *.so *.core *~ *.dll
+       rm -f *.o *.so *.core *~ *.dll *.lib
 
 install: ./libw3.so
        mkdir -p $(PREFIX)/lib
index fe47a24c39f857726ee388ee310d33681c2fad14..24ab9a32a2ecdc278f11c3fb6bc5e9cf53627edc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -87,9 +87,13 @@ archive: $(ALL)
        mkdir -p w3-$(VERSION)/Library
        mkdir -p w3-$(VERSION)/Example
        cp $(ALL) ./Library/*.h w3-$(VERSION)/
+ifdef WINDOWS
+       -cp ./Library/*.lib w3-$(VERSION)/
+endif
        -mv w3-$(VERSION)/*.h w3-$(VERSION)/Library/
        -mv w3-$(VERSION)/*.so w3-$(VERSION)/Library/
        -mv w3-$(VERSION)/*.dll w3-$(VERSION)/Library/
+       -mv w3-$(VERSION)/*.lib w3-$(VERSION)/Library/
        -mv w3-$(VERSION)/fetch.exe w3-$(VERSION)/Example/w3-fetch.exe
        -mv w3-$(VERSION)/fetch w3-$(VERSION)/Example/w3-fetch
        -cp LICENSE w3-$(VERSION)/