]> Nishi Git Mirror - tewi.git/commitdiff
add resources
authorNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 10:14:25 +0000 (10:14 +0000)
committerNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 10:14:25 +0000 (10:14 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@48 8739d7e6-ffea-ec47-b151-bdff447c6205

Platform/win32.mk
Platform/win64.mk
Server/Makefile
Server/tewi.ico [new file with mode: 0644]
Server/tewi.rc [new file with mode: 0644]

index 2b0f554862755a4af829d485a533826d1e379a6b..d40fb64d38e8f7996f67b910063fc1271516390c 100644 (file)
@@ -4,8 +4,10 @@ PREFIX = C:/Tewi
 
 CC = i686-w64-mingw32-gcc
 AR = i686-w64-mingw32-ar
+WINDRES = i686-w64-mingw32-windres
 CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC
 LDFLAGS =
 LIBS = -lws2_32
 EXEC = .exe
 LIB = .dll
+PREOBJS = tewi.res
index f3faf76fd8d397dfe6d2636fed84355cdc8b93b8..187462ad4283eb5d51ecd5793146711bdb941efd 100644 (file)
@@ -4,8 +4,10 @@ PREFIX = C:/Tewi
 
 CC = x86_64-w64-mingw32-gcc
 AR = x86_64-w64-mingw32-ar
+WINDRES = x86_64-w64-mingw32-windres
 CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC
 LDFLAGS =
 LIBS = -lws2_32
 EXEC = .exe
 LIB = .dll
+PREOBJS = tewi.res
index 78109d947e1184fba35d5fa2eb1b579982d0e763..c746f1d415a32f2f505d05a3380a251559039a34 100644 (file)
@@ -5,7 +5,7 @@ include $(PWD)/Platform/$(PLATFORM).mk
 .PHONY: all clean
 .SUFFIXES: .c .o
 
-OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS)
+OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS)
 
 all: tewi$(EXEC)
 
@@ -15,5 +15,8 @@ tewi$(EXEC): $(OBJS) ../Common/common.a
 .c.o:
        $(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $<
 
+tewi.res: tewi.rc tewi.ico
+       $(WINDRES) tewi.rc -O coff -o $@
+
 clean:
        rm -f *.o tewi *.exe
diff --git a/Server/tewi.ico b/Server/tewi.ico
new file mode 100644 (file)
index 0000000..0d2abef
Binary files /dev/null and b/Server/tewi.ico differ
diff --git a/Server/tewi.rc b/Server/tewi.rc
new file mode 100644 (file)
index 0000000..e021640
--- /dev/null
@@ -0,0 +1,11 @@
+id ICON "./tewi.ico"
+VS_VERSION_INFO VERSIONINFO
+BEGIN
+       BLOCK "StringFileInfo"
+       BEGIN
+               BLOCK "040904E4"
+               BEGIN
+                       VALUE "ProductName", "Tewi HTTPd\0"
+               END
+       END
+END