]> Nishi Git Mirror - libw3.git/commitdiff
icon
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Mon, 22 Jan 2024 00:06:13 +0000 (00:06 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Mon, 22 Jan 2024 00:06:13 +0000 (00:06 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@44 d27a3e52-49c5-7645-884c-6793ebffc270

Example/Makefile
Example/fetch.rc [new file with mode: 0644]
Makefile
w3.ico [new file with mode: 0644]

index 5b11d93d08c9d5a502529db208402dbe48420326..474244149d1907166b1eb8e5cd5e5584c4a8631b 100644 (file)
@@ -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 (file)
index 0000000..f3653e7
--- /dev/null
@@ -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
index 6afceb679bcf0737de67c8ed6c7f77cc4451c31a..29233ab5fe0606c159e593424fce0c9406a0024a 100644 (file)
--- 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 (file)
index 0000000..a84c23d
Binary files /dev/null and b/w3.ico differ