diff --git a/nw/Makefile.netware b/nw/Makefile.netware index 90d6f62..53ab7c9 100644 --- a/nw/Makefile.netware +++ b/nw/Makefile.netware @@ -1,11 +1,13 @@ -################################################################# +######################################################################### # ## Makefile for building libssh2 (NetWare version - gnu make) -## Use: make -f Makefile.netware [help|all|clean|dev|devclean|dist|distclean|objclean] +## Use: make -f Makefile.netware [help|all|clean|dev|devclean|dist|distclean|lib|nlm|objclean] ## ## Comments to: Guenter Knauf +## +## $Id: Makefile.netware,v 1.6 2007/04/21 20:15:33 gknauf Exp $ # -################################################################# +######################################################################### # Edit the path below to point to the base of your Novell NDK. ifndef NDKBASE @@ -51,14 +53,17 @@ LIBARCH = LIBC endif # must be equal to DEBUG or NDEBUG -DB = NDEBUG -# DB = DEBUG +ifndef DB + DB = NDEBUG + # DB = DEBUG +endif # Optimization: -O or debugging: -g ifeq ($(DB),NDEBUG) OPT = -O2 OBJDIR = release else OPT = -g + OPT += -DLIBSSH2DEBUG OBJDIR = debug endif @@ -73,16 +78,17 @@ else 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.zip AWK = awk -ZIP = zip -qzr9 # if you want to mark the target as MTSAFE you will need a tool for # generating the xdc data for the linker; here's a minimal tool: -# http://www.gknw.de/development/prgtools/mkxdc.zip +# http://www.gknw.net/development/prgtools/mkxdc.zip MPKXDC = mkxdc +ZIP = zip -qzr9 # Global flags for all compilers CFLAGS = $(OPT) -D$(DB) -DNETWARE -nostdinc # -DHAVE_CONFIG_H -CFLAGS += -DLIBSSH2DEBUG ifeq ($(CC),mwccnlm) LD = mwldnlm @@ -531,7 +537,7 @@ help: $(OBJDIR)/version.inc @echo $(DL)===========================================================$(DL) @echo $(DL)libssh $(LIBSSH2_VERSION_STR) - available targets are:$(DL) @echo $(DL)$(MAKE) all$(DL) - @echo $(DL)$(MAKE) dll$(DL) + @echo $(DL)$(MAKE) nlm$(DL) @echo $(DL)$(MAKE) lib$(DL) @echo $(DL)$(MAKE) clean$(DL) @echo $(DL)$(MAKE) dev$(DL) @@ -539,6 +545,7 @@ help: $(OBJDIR)/version.inc @echo $(DL)$(MAKE) dist$(DL) @echo $(DL)$(MAKE) distclean$(DL) @echo $(DL)$(MAKE) objclean$(DL) + @echo $(DL)$(MAKE) test$(DL) @echo $(DL)===========================================================$(DL) diff --git a/nw/test/Makefile.netware b/nw/test/Makefile.netware index c86badb..41ad049 100644 --- a/nw/test/Makefile.netware +++ b/nw/test/Makefile.netware @@ -1,11 +1,13 @@ -################################################################# +######################################################################### # ## Makefile for building libssh2 (NetWare version - gnu make) ## Use: make -f Makefile.netware ## ## Comments to: Guenter Knauf +## +## $Id: Makefile.netware,v 1.4 2007/04/21 20:15:33 gknauf Exp $ # -################################################################# +######################################################################### # Edit the path below to point to the base of your Novell NDK. ifndef NDKBASE @@ -44,8 +46,10 @@ LIBARCH = LIBC endif # must be equal to DEBUG or NDEBUG -DB = NDEBUG -# DB = DEBUG +ifndef DB + DB = NDEBUG + # DB = DEBUG +endif # Optimization: -O or debugging: -g ifeq ($(DB),NDEBUG) OPT = -O2 @@ -66,10 +70,12 @@ else 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.zip AWK = awk # if you want to mark the target as MTSAFE you will need a tool for # generating the xdc data for the linker; here's a minimal tool: -# http://www.gknw.de/development/prgtools/mkxdc.zip +# http://www.gknw.net/development/prgtools/mkxdc.zip MPKXDC = mkxdc # Global flags for all compilers diff --git a/win32/Makefile.win32 b/win32/Makefile.win32 index 73550e2..a446340 100644 --- a/win32/Makefile.win32 +++ b/win32/Makefile.win32 @@ -38,14 +38,17 @@ DESCR = libssh2 $(LIBSSH2_VERSION_STR) #STACK = 64000 # must be equal to DEBUG or NDEBUG -DB = NDEBUG -# DB = DEBUG +ifndef DB + DB = NDEBUG + # DB = DEBUG +endif # Optimization: -O or debugging: -g ifeq ($(DB),NDEBUG) OPT = -O2 OBJDIR = release else OPT = -g + OPT += -DLIBSSH2DEBUG OBJDIR = debug endif diff --git a/win32/test/Makefile.win32 b/win32/test/Makefile.win32 index 6806e90..46a82a5 100644 --- a/win32/test/Makefile.win32 +++ b/win32/test/Makefile.win32 @@ -29,8 +29,10 @@ DESCR = libssh2 $(subst .def,,$(notdir $@)) $(LIBSSH2_VERSION_STR) #STACK = 64000 # must be equal to DEBUG or NDEBUG -DB = NDEBUG -# DB = DEBUG +ifndef DB + DB = NDEBUG + # DB = DEBUG +endif # Optimization: -O or debugging: -g ifeq ($(DB),NDEBUG) OPT = -O2