From: nishi Date: Wed, 17 Jan 2024 11:40:21 +0000 (+0000) Subject: lib X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=095c3300daa5c1e02121437ffff78ee3594ee194;p=libw3.git lib git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@21 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/Makefile b/Library/Makefile index d0edd5b..1cc1276 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -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 diff --git a/Makefile b/Makefile index fe47a24..24ab9a3 100644 --- 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)/