From c21f9f0065482cc068aaa2c3b0c93572dc0d2919 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 9 Nov 2018 18:21:18 -0200 Subject: [PATCH] Ajustes para compilação em windows. --- Makefile.in | 15 +++++++++++++++ configure.ac | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 491fd06..e1d8c2c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -46,6 +46,7 @@ INSTALL_DATA=@INSTALL_DATA@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ XGETTEXT=@XGETTEXT@ MSGCAT=@MSGCAT@ +WINDRES=@WINDRES@ #---[ Paths ]---------------------------------------------------------------------------- @@ -108,6 +109,13 @@ $(OBJDBG)/%.o: \ -DDEBUG=1 \ -o $@ -c $< +$(OBJDBG)/%.o: \ + %.rc + + @echo $< ... + @$(MKDIR) `dirname $@` + @$(WINDRES) $< -O coff -o $@ + #---[ Release Rules ]-------------------------------------------------------------------- $(OBJRLS)/%.o: \ @@ -121,6 +129,13 @@ $(OBJRLS)/%.o: \ -DNDEBUG=1 \ -o $@ -c $< +$(OBJRLS)/%.o: \ + %.rc + + @echo $< ... + @$(MKDIR) `dirname $@` + @$(WINDRES) $< -O coff -o $@ + #---[ Misc Rules ]----------------------------------------------------------------------- $(POTDIR)/%.pot: \ diff --git a/configure.ac b/configure.ac index 911ce04..56de946 100644 --- a/configure.ac +++ b/configure.ac @@ -72,6 +72,8 @@ dnl --------------------------------------------------------------------------- dnl Check for OS specifics dnl --------------------------------------------------------------------------- +DLLPREFIX="lib" + case "$host" in *-mingw32) app_cv_osname="windows" @@ -103,7 +105,6 @@ case "$host" in app_cv_osname="linux" LOGDIR="/var/log" DLLEXT=".so" - DLLPREFIX="lib" esac -- libgit2 0.21.2