1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-08 19:02:07 +03:00

More MinGW makefile tweaks.

Renamed *.mingw makefiles to GNUmakefile since GNU make picks these
up automatically, and therefore win32/Makefile removed.
This commit is contained in:
Guenter Knauf
2011-09-10 14:10:45 +02:00
parent 2e12cfaa23
commit c75ae587c0
4 changed files with 13 additions and 22 deletions

View File

@@ -1,9 +1,9 @@
#########################################################################
#
## Makefile for building libssh2 (Win32 version - gnu make)
## Use: make -f Makefile.mingw [help|all|clean|dev|devclean|dist|distclean|dll|objclean]
## Use: make -f GNUmakefile [help|all|clean|dev|devclean|dist|distclean|dll|objclean]
##
## Comments to: Guenter Knauf http://www.gknw.net/phpbb
## Hacked by: Guenter Knauf
#
#########################################################################
@@ -160,7 +160,7 @@ prebuild: $(OBJDIR) $(OBJDIR)/version.inc
# libssh2_config.h
test: all
$(MAKE) -C test -f Makefile.mingw
$(MAKE) -C test -f GNUmakefile
$(OBJDIR)/%.o: %.c
# @echo Compiling $<
@@ -205,7 +205,7 @@ objclean: all
-$(RD) $(OBJDIR)
testclean: clean
$(MAKE) -C test -f Makefile.win32 clean
$(MAKE) -C test -f GNUmakefile clean
clean:
# -$(RM) libssh2_config.h
@@ -240,7 +240,7 @@ $(OBJDIR)/%.res: %.rc
@$(RC) $(RCFLAGS) $< -o $@
$(DISTDIR)/readme.txt: Makefile.win32
$(DISTDIR)/readme.txt: GNUmakefile
@echo Creating $@
@echo $(DL)This is a binary distribution for Win32 platform.$(DL) > $@
@echo $(DL)libssh version $(LIBSSH2_VERSION_STR)$(DL) >> $@
@@ -248,7 +248,7 @@ $(DISTDIR)/readme.txt: Makefile.win32
@echo $(DL)any further documentation:$(DL) >> $@
@echo $(DL)$(WWWURL)$(DL) >> $@
$(DEVLDIR)/readme.txt: Makefile.win32
$(DEVLDIR)/readme.txt: GNUmakefile
@echo Creating $@
@echo $(DL)This is a development distribution for Win32 platform.$(DL) > $@
@echo $(DL)libssh version $(LIBSSH2_VERSION_STR)$(DL) >> $@

View File

@@ -1 +0,0 @@
include Makefile.mingw

View File

@@ -1,9 +1,9 @@
#########################################################################
#
## Makefile for building libssh2 samples (Win32 version - gnu make)
## Use: make -f Makefile.mingw [help]
## Use: make -f GNUmakefile [help]
##
## Comments to: Guenter Knauf http://www.gknw.net/phpbb
## Hacked by: Guenter Knauf
#
#########################################################################
@@ -76,12 +76,6 @@ ifdef METROWERKS
else
CC = $(CROSSPREFIX)gcc
endif
CP = cp -afv
# RM = rm -f
# Here you can find a native Win32 binary of the original awk:
# http://www.gknw.net/development/prgtools/awk-20070501.zip
AWK = awk
ZIP = zip -qzr9
# Global flags for all compilers
CFLAGS = $(OPT) -D$(DB) -DWIN32 -DLIBSSH2_WIN32 # -DHAVE_CONFIG_H
@@ -177,7 +171,7 @@ $(OBJDIR)/%.res: $(OBJDIR)/%.rc
@echo Creating $@
@$(RC) $(RCFLAGS) $< -o $@
$(OBJDIR)/%.rc: Makefile.win32 $(OBJDIR)/version.inc
$(OBJDIR)/%.rc: GNUmakefile $(OBJDIR)/version.inc
@echo $(DL)1 VERSIONINFO$(DL) > $@
@echo $(DL) FILEVERSION $(LIBSSH2_VERSION),0$(DL) >> $@
@echo $(DL) PRODUCTVERSION $(LIBSSH2_VERSION),0$(DL) >> $@