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
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
.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)
.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
--- /dev/null
+id ICON "./tewi.ico"
+VS_VERSION_INFO VERSIONINFO
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904E4"
+ BEGIN
+ VALUE "ProductName", "Tewi HTTPd\0"
+ END
+ END
+END