From: Nishi Date: Wed, 18 Sep 2024 10:14:25 +0000 (+0000) Subject: add resources X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=791c4232861dc97f021aed2172107c543cdad017;p=tewi.git add resources git-svn-id: file:///raid/svn-personal/tewi/trunk@48 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Platform/win32.mk b/Platform/win32.mk index 2b0f554..d40fb64 100644 --- a/Platform/win32.mk +++ b/Platform/win32.mk @@ -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 diff --git a/Platform/win64.mk b/Platform/win64.mk index f3faf76..187462a 100644 --- a/Platform/win64.mk +++ b/Platform/win64.mk @@ -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 diff --git a/Server/Makefile b/Server/Makefile index 78109d9..c746f1d 100644 --- a/Server/Makefile +++ b/Server/Makefile @@ -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 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 index 0000000..e021640 --- /dev/null +++ b/Server/tewi.rc @@ -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