# $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
--- /dev/null
+id ICON "../w3.ico"
+VS_VERSION_INFO VERSIONINFO
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "041104B0"
+ BEGIN
+ VALUE "FileDescription", "LibW3 Fetch"
+ END
+ END
+END
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
$(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 > $@