From: nishi Date: Mon, 22 Jan 2024 00:06:13 +0000 (+0000) Subject: icon X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a9a6f4149d083214390cdea3d06707ac0f895f91;p=libw3.git icon git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@44 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Example/Makefile b/Example/Makefile index 5b11d93..4742441 100644 --- a/Example/Makefile +++ b/Example/Makefile @@ -1,8 +1,11 @@ # $Id$: .PHONY: clean install -./fetch: ./fetch.c - $(CC) -o $@ -I ../Library -L ../Library $< -lw3 +./fetch: ./fetch.c $(RESFILE) + $(CC) -o $@ -I ../Library -L ../Library $^ -lw3 + +./fetch.res: ./fetch.rc + $(WINDRES) $< -O coff -o $@ clean: rm -f fetch *.o *.so *.core *~ *.exe diff --git a/Example/fetch.rc b/Example/fetch.rc new file mode 100644 index 0000000..f3653e7 --- /dev/null +++ b/Example/fetch.rc @@ -0,0 +1,11 @@ +id ICON "../w3.ico" +VS_VERSION_INFO VERSIONINFO +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "041104B0" + BEGIN + VALUE "FileDescription", "LibW3 Fetch" + END + END +END diff --git a/Makefile b/Makefile index 6afceb6..29233ab 100644 --- a/Makefile +++ b/Makefile @@ -16,11 +16,13 @@ endif ifeq ($(WIN32),YES) CC := i686-w64-mingw32-gcc +WINDRES := i686-w64-mingw32-windres WINDOWS := YES endif ifeq ($(WIN64),YES) CC := x86_64-w64-mingw32-gcc +WINDRES := x86_64-w64-mingw32-windres WINDOWS := YES endif @@ -43,7 +45,7 @@ all: ./w3.pc ./Library/W3Version.h $(ALL) $(MAKE) -C ./Library CC=$(CC) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" WINDOWS=YES ./Example/fetch.exe: ./Library/w3.dll - $(MAKE) -C ./Example CC=$(CC) fetch + $(MAKE) -C ./Example CC=$(CC) fetch RESFILE=./fetch.res WINDRES=$(WINDRES) ./Library/W3Version.h: m4 -DSUFFIX=\"W\" ./W3Version.h.p > $@ diff --git a/w3.ico b/w3.ico new file mode 100644 index 0000000..a84c23d Binary files /dev/null and b/w3.ico differ