mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
merge soc07 r4819 - Put NMAP_VERSION in nmap.h only and have the makefiles grep it from there
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export NMAP_VERSION = 4.21ALPHA5
|
||||
# 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')
|
||||
NMAP_NAME= Nmap
|
||||
NMAP_URL= http://insecure.org
|
||||
NMAP_PLATFORM=@host@
|
||||
@@ -22,7 +23,7 @@ DBGFLAGS =
|
||||
LIBPCAPDIR = @libpcapdir@
|
||||
LIBPCREDIR = @LIBPCREDIR@
|
||||
export LIBDNETDIR = @LIBDNETDIR@
|
||||
DEFS = @DEFS@ -DNMAP_VERSION=\"$(NMAP_VERSION)\" -DNMAP_NAME=\"$(NMAP_NAME)\" -DNMAP_URL=\"$(NMAP_URL)\" -DNMAP_PLATFORM=\"$(NMAP_PLATFORM)\" -DNMAPDATADIR=\"$(nmapdatadir)\"
|
||||
DEFS = @DEFS@ -DNMAP_NAME=\"$(NMAP_NAME)\" -DNMAP_URL=\"$(NMAP_URL)\" -DNMAP_PLATFORM=\"$(NMAP_PLATFORM)\" -DNMAPDATADIR=\"$(nmapdatadir)\"
|
||||
# For mtrace debugging -- see MTRACE define in main.cc for instructions
|
||||
# Should only be enabled during debugging and not in any real release.
|
||||
# DEFS += -DMTRACE=1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MAKENSIS=/c/apps/NSIS/makensis.exe
|
||||
VCEXPRESS="/c/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"
|
||||
NMAP_VERSION:=$(shell grep "export NMAP_VERSION " ../Makefile.in | cut "-d " -f4)
|
||||
export NMAP_VERSION := $(shell grep '^\#[ \t]*define[ \t]\+NMAP_VERSION' ../nmap.h | sed -e 's/.*"\(.*\)".*/\1/' -e 'q')
|
||||
LOGLOC=c:nmapbuild.log
|
||||
|
||||
winbuild:
|
||||
|
||||
6
nmap.h
6
nmap.h
@@ -250,6 +250,12 @@ void *realloc();
|
||||
|
||||
/******* DEFINES ************/
|
||||
|
||||
#ifndef NMAP_VERSION
|
||||
/* Edit this definition only within the quotes, because it is read from this
|
||||
file by the makefiles. */
|
||||
#define NMAP_VERSION "4.21ALPHA5"
|
||||
#endif
|
||||
|
||||
/* User configurable #defines: */
|
||||
#ifndef VERSION
|
||||
#define VERSION "1.60-Beta"
|
||||
|
||||
@@ -106,7 +106,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_VERSION "4.21ALPHA5"
|
||||
#define NMAP_NAME "Nmap"
|
||||
#define NMAP_URL "http://insecure.org"
|
||||
#define NMAP_PLATFORM "i686-pc-windows-windows"
|
||||
|
||||
@@ -428,6 +428,7 @@ GtkAdjustment *adjust;
|
||||
#ifdef WIN32
|
||||
opt.isr00t = 1;
|
||||
/* for nmap version */
|
||||
#include "nmap.h"
|
||||
#include "nmap_winconfig.h"
|
||||
#define VERSION NMAP_VERSION
|
||||
#else
|
||||
|
||||
@@ -109,8 +109,8 @@
|
||||
* Long live Aol and pr: Phreak. <grins>
|
||||
*/
|
||||
|
||||
#ifndef NMAP_H
|
||||
#define NMAP_H
|
||||
#ifndef NMAPFE_H
|
||||
#define NMAPFE_H
|
||||
|
||||
#if MISSING_GTK
|
||||
#error "Your system does not appear to have GTK (www.gtk.org) installed. Thus the Nmap X Front End will not compile. You should still be able to use Nmap the normal way (via text console). GUIs are for wimps anyway :)"
|
||||
@@ -307,4 +307,4 @@ GtkWidget* create_main_win (void);
|
||||
GtkWidget* create_fileSelection(const char *title, char *filename, void (*action)(), GtkEntry *entry);
|
||||
GtkWidget* create_helpDialog(void);
|
||||
|
||||
#endif /* NMAP_H */
|
||||
#endif /* NMAPFE_H */
|
||||
|
||||
Reference in New Issue
Block a user