1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00

pws/Andrej: 12594, 12661: Windows resources and icon

This commit is contained in:
Peter Stephenson 2000-08-16 13:23:37 +00:00
parent 505a3e3a30
commit c0ab630768
5 changed files with 24 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2000-08-16 Peter Stephenson <pws@csr.com>
* pws/Andrej: 12594, 12661: Src/zsh.rc, Src/zsh.ico, Src/Makefile.in,
configure.in: basic support for Windows resources including icon,
will be built in for cygwin.
* Andrej: 12658: .cvsignore, Src/.cvsignore: cscope ignorance.
2000-08-16 Sven Wischnowsky <wischnow@zsh.org>

View file

@ -78,14 +78,19 @@ NNTRYOBJ =
LDRUNPATH = LD_RUN_PATH=$(libdir)/$(tzsh)
NDRUNPATH =
zsh$(EXEEXT): $(@L@IBZSH) $(@L@STMP) $(MAIN_OBJS) zsh.export
EXTRAZSHOBJS = @EXTRAZSHOBJS@
zsh$(EXEEXT): $(@L@IBZSH) $(@L@STMP) $(MAIN_OBJS) zsh.export $(EXTRAZSHOBJS)
rm -f $@
$(@L@DRUNPATH) $(LINK) $(MAIN_OBJS) $(@L@LIST) $(ZSH_@E@XPORT) $(@L@IBZSH) $(LIBS)
$(@L@DRUNPATH) $(LINK) $(MAIN_OBJS) $(EXTRAZSHOBJS) $(@L@LIST) $(ZSH_@E@XPORT) $(@L@IBZSH) $(LIBS)
$(LIBZSH): $(LIBOBJS) $(NSTMP)
rm -f $@
$(DLLINK) $(LIBOBJS) $(NLIST) $(LIBS)
zsh.res.o: $(sdir)/zsh.rc $(sdir)/zsh.ico
windres -O coff --include-dir $(sdir) -i $(sdir)/zsh.rc -o zsh.res.o
stamp-modobjs: modobjs
@if cmp -s stamp-modobjs.tmp stamp-modobjs; then \
rm -f stamp-modobjs.tmp; \

BIN
Src/zsh.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

8
Src/zsh.rc Normal file
View file

@ -0,0 +1,8 @@
// Use this file as follows
//
// myapp.exe : myapp.o myapp.res
// gcc -mwindows myapp.o myapp.res -o $@
//
// myapp.res : myapp.rc resource.h
// windres $< -O coff -o $@
IDR_MAINFRAME ICON DISCARDABLE "zsh.ico"

View file

@ -1693,6 +1693,10 @@ fi
AC_SUBST(INSTLIB)dnl
AC_SUBST(UNINSTLIB)dnl
if test x"$ac_cv_cygwin" = xyes; then
EXTRAZSHOBJS="$EXTRAZSHOBJS zsh.res.o"
fi
AC_DEFINE_UNQUOTED(DL_EXT, "$DL_EXT")dnl
AC_SUBST(D)dnl
AC_SUBST(DL_EXT)dnl
@ -1708,6 +1712,7 @@ AC_SUBST(LINKMODS)dnl
AC_SUBST(MOD_EXPORT)dnl
AC_SUBST(MOD_IMPORT_VARIABLE)dnl
AC_SUBST(MOD_IMPORT_FUNCTION)dnl
AC_SUBST(EXTRAZSHOBJS)dnl
CLEAN_MK="${srcdir}/Config/clean.mk"
CONFIG_MK="${srcdir}/Config/config.mk"