1
1
Этот коммит содержится в:
Guenter Knauf 2007-04-21 20:15:33 +00:00
родитель 91c8715da4
Коммит 6cd1c7528e
4 изменённых файлов: 36 добавлений и 18 удалений

Просмотреть файл

@ -1,11 +1,13 @@
################################################################# #########################################################################
# #
## Makefile for building libssh2 (NetWare version - gnu make) ## 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 <eflash@gmx.net> ## Comments to: Guenter Knauf <eflash@gmx.net>
##
## $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. # Edit the path below to point to the base of your Novell NDK.
ifndef NDKBASE ifndef NDKBASE
@ -51,14 +53,17 @@ LIBARCH = LIBC
endif endif
# must be equal to DEBUG or NDEBUG # must be equal to DEBUG or NDEBUG
DB = NDEBUG ifndef DB
# DB = DEBUG DB = NDEBUG
# DB = DEBUG
endif
# Optimization: -O<n> or debugging: -g # Optimization: -O<n> or debugging: -g
ifeq ($(DB),NDEBUG) ifeq ($(DB),NDEBUG)
OPT = -O2 OPT = -O2
OBJDIR = release OBJDIR = release
else else
OPT = -g OPT = -g
OPT += -DLIBSSH2DEBUG
OBJDIR = debug OBJDIR = debug
endif endif
@ -73,16 +78,17 @@ else
endif endif
CP = cp -afv CP = cp -afv
# RM = rm -f # 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 AWK = awk
ZIP = zip -qzr9
# if you want to mark the target as MTSAFE you will need a tool for # 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: # 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 MPKXDC = mkxdc
ZIP = zip -qzr9
# Global flags for all compilers # Global flags for all compilers
CFLAGS = $(OPT) -D$(DB) -DNETWARE -nostdinc # -DHAVE_CONFIG_H CFLAGS = $(OPT) -D$(DB) -DNETWARE -nostdinc # -DHAVE_CONFIG_H
CFLAGS += -DLIBSSH2DEBUG
ifeq ($(CC),mwccnlm) ifeq ($(CC),mwccnlm)
LD = mwldnlm LD = mwldnlm
@ -531,7 +537,7 @@ help: $(OBJDIR)/version.inc
@echo $(DL)===========================================================$(DL) @echo $(DL)===========================================================$(DL)
@echo $(DL)libssh $(LIBSSH2_VERSION_STR) - available targets are:$(DL) @echo $(DL)libssh $(LIBSSH2_VERSION_STR) - available targets are:$(DL)
@echo $(DL)$(MAKE) all$(DL) @echo $(DL)$(MAKE) all$(DL)
@echo $(DL)$(MAKE) dll$(DL) @echo $(DL)$(MAKE) nlm$(DL)
@echo $(DL)$(MAKE) lib$(DL) @echo $(DL)$(MAKE) lib$(DL)
@echo $(DL)$(MAKE) clean$(DL) @echo $(DL)$(MAKE) clean$(DL)
@echo $(DL)$(MAKE) dev$(DL) @echo $(DL)$(MAKE) dev$(DL)
@ -539,6 +545,7 @@ help: $(OBJDIR)/version.inc
@echo $(DL)$(MAKE) dist$(DL) @echo $(DL)$(MAKE) dist$(DL)
@echo $(DL)$(MAKE) distclean$(DL) @echo $(DL)$(MAKE) distclean$(DL)
@echo $(DL)$(MAKE) objclean$(DL) @echo $(DL)$(MAKE) objclean$(DL)
@echo $(DL)$(MAKE) test$(DL)
@echo $(DL)===========================================================$(DL) @echo $(DL)===========================================================$(DL)

Просмотреть файл

@ -1,11 +1,13 @@
################################################################# #########################################################################
# #
## Makefile for building libssh2 (NetWare version - gnu make) ## Makefile for building libssh2 (NetWare version - gnu make)
## Use: make -f Makefile.netware ## Use: make -f Makefile.netware
## ##
## Comments to: Guenter Knauf <eflash@gmx.net> ## Comments to: Guenter Knauf <eflash@gmx.net>
##
## $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. # Edit the path below to point to the base of your Novell NDK.
ifndef NDKBASE ifndef NDKBASE
@ -44,8 +46,10 @@ LIBARCH = LIBC
endif endif
# must be equal to DEBUG or NDEBUG # must be equal to DEBUG or NDEBUG
DB = NDEBUG ifndef DB
# DB = DEBUG DB = NDEBUG
# DB = DEBUG
endif
# Optimization: -O<n> or debugging: -g # Optimization: -O<n> or debugging: -g
ifeq ($(DB),NDEBUG) ifeq ($(DB),NDEBUG)
OPT = -O2 OPT = -O2
@ -66,10 +70,12 @@ else
endif endif
CP = cp -afv CP = cp -afv
# RM = rm -f # 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 AWK = awk
# if you want to mark the target as MTSAFE you will need a tool for # 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: # 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 MPKXDC = mkxdc
# Global flags for all compilers # Global flags for all compilers

Просмотреть файл

@ -38,14 +38,17 @@ DESCR = libssh2 $(LIBSSH2_VERSION_STR)
#STACK = 64000 #STACK = 64000
# must be equal to DEBUG or NDEBUG # must be equal to DEBUG or NDEBUG
DB = NDEBUG ifndef DB
# DB = DEBUG DB = NDEBUG
# DB = DEBUG
endif
# Optimization: -O<n> or debugging: -g # Optimization: -O<n> or debugging: -g
ifeq ($(DB),NDEBUG) ifeq ($(DB),NDEBUG)
OPT = -O2 OPT = -O2
OBJDIR = release OBJDIR = release
else else
OPT = -g OPT = -g
OPT += -DLIBSSH2DEBUG
OBJDIR = debug OBJDIR = debug
endif endif

Просмотреть файл

@ -29,8 +29,10 @@ DESCR = libssh2 $(subst .def,,$(notdir $@)) $(LIBSSH2_VERSION_STR)
#STACK = 64000 #STACK = 64000
# must be equal to DEBUG or NDEBUG # must be equal to DEBUG or NDEBUG
DB = NDEBUG ifndef DB
# DB = DEBUG DB = NDEBUG
# DB = DEBUG
endif
# Optimization: -O<n> or debugging: -g # Optimization: -O<n> or debugging: -g
ifeq ($(DB),NDEBUG) ifeq ($(DB),NDEBUG)
OPT = -O2 OPT = -O2