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