It appears that creating an executable with an icon resource is the
only way to display icons for files. Fortunately, that's not all that
hard.
Signed-off-by: Keith Packard <keithp@keithp.com>
cd libaltos && $(MAKE) all
cd altoslib && $(MAKE) all
cd altosuilib && $(MAKE) all
cd libaltos && $(MAKE) all
cd altoslib && $(MAKE) all
cd altosuilib && $(MAKE) all
cd altosui && $(MAKE) fat
cd micropeak && $(MAKE) fat
cd telegps && $(MAKE) fat
cd altosui && $(MAKE) fat
cd micropeak && $(MAKE) fat
cd telegps && $(MAKE) fat
all-local: $(ICO_FILES) $(ICNS_FILES)
clean-local:
all-local: $(ICO_FILES) $(ICNS_FILES)
clean-local:
- $(RM) altus-metrum-*.png telegps-*.png micropeak-*.png *.build *.ico *.icns
+ $(RM) altus-metrum-*.png telegps-*.png micropeak-*.png *.build *.ico *.icns *.o *.exe
$(AM_FILES): altusmetrum.build
$(AM_FILES): altusmetrum.build
MicroPeak.icns: $(MAC_MP_FILES)
png2icns $@ $(MAC_MP_FILES)
MicroPeak.icns: $(MAC_MP_FILES)
png2icns $@ $(MAC_MP_FILES)
+
+MINGCC32=i686-w64-mingw32-gcc
+MINGWINDRES=i686-w64-mingw32-windres
+
+SUFFIXES=.rc .exe
+
+fat: all micro-peak.exe altus-metrum.exe telegps.exe
+
+altus-metrum.o: altus-metrum.ico
+micro-peak.o: micro-peak.ico
+telegps.o: telegps.ico
+
+.rc.o:
+ $(MINGWINDRES) $*.rc $@
+
+.o.exe:
+ $(MINGCC32) -o $@ windows-stub.c $*.o
--- /dev/null
+101 ICON "altus-metrum.ico"
--- /dev/null
+101 ICON "micro-peak.ico"
--- /dev/null
+__stdcall
+WinMain(int a, int b, int c, int d) { return 0; }