mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
consolidate some definitions (name, url) to nmap.h
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
# Extract the version string from nmap.h.
|
||||
export NMAP_VERSION := $(shell grep '^\#[ \t]*define[ \t]\+NMAP_VERSION' nmap.h | sed -e 's/.*"\(.*\)".*/\1/' -e 'q')
|
||||
export NMAP_UPDATE_CHANNEL := $(shell grep '^\#[ \t]*define[ \t]\+NMAP_UPDATE_CHANNEL' nmap.h | sed -e 's/.*"\(.*\)".*/\1/' -e 'q')
|
||||
NMAP_NAME= Nmap
|
||||
NMAP_URL= https://nmap.org
|
||||
NMAP_PLATFORM=@host@
|
||||
datarootdir = @datarootdir@
|
||||
prefix = @prefix@
|
||||
@@ -37,7 +35,7 @@ ZENMAPDIR = @ZENMAPDIR@
|
||||
NDIFFDIR = @NDIFFDIR@
|
||||
NPINGDIR = @NPINGDIR@
|
||||
PYTHON = @PYTHON@
|
||||
DEFS = @DEFS@ -DNMAP_NAME=\"$(NMAP_NAME)\" -DNMAP_URL=\"$(NMAP_URL)\" -DNMAP_PLATFORM=\"$(NMAP_PLATFORM)\" -DNMAPDATADIR=\"$(nmapdatadir)\"
|
||||
DEFS = @DEFS@ -DNMAP_PLATFORM=\"$(NMAP_PLATFORM)\" -DNMAPDATADIR=\"$(nmapdatadir)\"
|
||||
# With GCC, add extra security checks to source code.
|
||||
# http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html
|
||||
# Level 1 only makes changes that don't affect "conforming" programs,
|
||||
|
||||
9
nmap.h
9
nmap.h
@@ -183,6 +183,15 @@
|
||||
|
||||
/******* DEFINES ************/
|
||||
|
||||
#ifdef NMAP_OEM
|
||||
#include "../nmap-build/nmap-oem.h"
|
||||
#endif
|
||||
|
||||
#ifndef NMAP_NAME
|
||||
#define NMAP_NAME "Nmap"
|
||||
#endif
|
||||
#define NMAP_URL "https://nmap.org"
|
||||
|
||||
#ifndef NMAP_VERSION
|
||||
/* Edit this definition only within the quotes, because it is read from this
|
||||
file by the makefiles. */
|
||||
|
||||
@@ -137,8 +137,6 @@
|
||||
/* Without this, Windows will give us all sorts of crap about using functions
|
||||
like strcpy() even if they are done safely */
|
||||
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||
#define NMAP_NAME "Nmap"
|
||||
#define NMAP_URL "https://nmap.org"
|
||||
#define NMAP_PLATFORM "i686-pc-windows-windows"
|
||||
#define NMAPDATADIR "c:\\nmap" /* FIXME: I really need to make this dynamic */
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ APP_DISPLAY_NAME = "Zenmap"
|
||||
APP_WEB_SITE = "https://nmap.org/zenmap"
|
||||
APP_DOWNLOAD_SITE = "https://nmap.org/download.html"
|
||||
APP_DOCUMENTATION_SITE = "https://nmap.org/docs.html"
|
||||
APP_COPYRIGHT = "Copyright 2005-2018 Insecure.Com LLC"
|
||||
APP_COPYRIGHT = "Copyright 2005-2019 Insecure.Com LLC"
|
||||
|
||||
NMAP_DISPLAY_NAME = u"Nmap"
|
||||
NMAP_WEB_SITE = "https://nmap.org"
|
||||
|
||||
Reference in New Issue
Block a user