f5c1a0d98b
Commit d512b25f69a1b6778881f6b4b5ff9cfc6023be42 added automake conditionals to Makefile.inc but since Makefile.inc is included from Makefile for all other build systems that does not work. This commit instead adds Makefile.OpenSSL.inc and Makefile.libgcrypt.inc and moves the automake conditional to its proper place, src/Makefile.am. The automake conditional includes the correct Makefile.$name.inc per the crypto library selection/detection done by configure. All non-autotools build system files in libssh2 are hardcoded to use OpenSSL and do not get a conditional but at least there is some reuse because they can all include the new Makefile.OpenSSL.inc.
31 lines
654 B
Plaintext
31 lines
654 B
Plaintext
!include "win32/config.mk"
|
|
|
|
# only OpenSSL is supported with this build system
|
|
!include "Makefile.OpenSSL.inc"
|
|
!include "Makefile.inc"
|
|
|
|
OBJECTS=$(CSOURCES:.c=.obj)
|
|
|
|
# SUBDIRS=src example
|
|
SUBDIRS=src
|
|
|
|
all-sub: win32\objects.mk
|
|
-for %D in ($(SUBDIRS)) do $(MAKE) /nologo /f %D/NMakefile BUILD=$(BUILD) SUBDIR=%D all-sub
|
|
|
|
clean:
|
|
-rmdir 2>NUL /s/q $(TARGET)
|
|
|
|
real-clean vclean: clean
|
|
-del 2>NUL libssh2.dll
|
|
-del 2>NUL libssh2.exp
|
|
-del 2>NUL libssh2.ilk
|
|
-del 2>NUL libssh2.lib
|
|
-del 2>NUL *.pdb
|
|
-del 2>NUL win32\objects.mk
|
|
|
|
win32\objects.mk: Makefile.inc
|
|
@echo OBJECTS = \>$@
|
|
@for %O in ($(OBJECTS)) do @echo $$(INTDIR)\%O \>>$@
|
|
@echo $$(EOL)>>$@
|
|
|