diff options
| author | Keith Packard <keithp@keithp.com> | 2015-03-29 12:08:42 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-03-29 12:08:42 -0700 |
| commit | fe76229618643f0af7eae965e7a8fc6c70410d27 (patch) | |
| tree | 4110da17fc2afb64aafba1591ae260db2996358a /icon/Makefile.am | |
| parent | b1b69c8b73cbffb56c688f6a968d144b642cdff2 (diff) | |
icon: Convert windows stub into launcher program
Instead of an empty windows stub that exists only to hold icons, add
useful code that allows it to find and run the related java
application. This also adds more resources to that application to
provide more information to Windows too.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'icon/Makefile.am')
| -rw-r--r-- | icon/Makefile.am | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/icon/Makefile.am b/icon/Makefile.am index c08e9236..af238ac4 100644 --- a/icon/Makefile.am +++ b/icon/Makefile.am @@ -150,14 +150,21 @@ SUFFIXES=.svg .build .icns .ico .rc .o .exe icotool -c -o $@ $(shell for i in $(WIN_RES); do echo $*-$$i.png; done) .ico.rc: - echo '101 ICON "$*.ico"' > $@ + ./make-rc "$*" $(VERSION) > $@ MINGCC32=i686-w64-mingw32-gcc MINGWINDRES=i686-w64-mingw32-windres +MINGFLAGS=-Wall -DWINDOWS -mwindows +MINGLIBS=-lshlwapi .rc.o: $(MINGWINDRES) $*.rc $@ .o.exe: - $(MINGCC32) -o $@ windows-stub.c $*.o + $(MINGCC32) -o $@ $(MINGFLAGS) windows-stub.o $*.o $(MINGLIBS) + +$(EXE_FILES): windows-stub.o make-rc + +windows-stub.o: windows-stub.c + $(MINGCC32) -c $(MINGFLAGS) windows-stub.c |
