mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
merge soc07 r4821 - fix nse build system issues
This commit is contained in:
parent
3e38a10dda
commit
cb8101dbcc
10 changed files with 10 additions and 28 deletions
13
Makefile.in
13
Makefile.in
|
|
@ -52,11 +52,17 @@ TARGETNMAPFE=@TARGETNMAPFE@
|
|||
INSTALLNMAPFE=@INSTALLNMAPFE@
|
||||
INSTALLNSE=@INSTALLNSE@
|
||||
|
||||
export SRCS = main.cc nmap.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc osscan.cc osscan2.cc output.cc scan_engine.cc timing.cc charpool.cc services.cc protocols.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc Target.cc FingerPrintResults.cc service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc nmap_dns.cc nse_main.cc nse_auxiliar.cc nse_nsock.cc nse_init.cc nse_nmaplib.cc nse_debug.cc nse_bitlib.cc nse_pcrelib.cc nse_string.cc traceroute.cc reason.cc @COMPAT_SRCS@
|
||||
ifneq (@LIBLUA_LIBS@,)
|
||||
NSE_SRC=nse_main.cc nse_auxiliar.cc nse_nsock.cc nse_init.cc nse_nmaplib.cc nse_debug.cc nse_bitlib.cc nse_pcrelib.cc nse_string.cc
|
||||
NSE_HDRS=nse_main.h nse_auxiliar.h nse_nsock.h nse_init.h nse_nmaplib.h nse_debug.h nse_macros.h nse_bitlib.h nse_pcrelib.h nse_string.h
|
||||
NSE_OBJS=nse_main.o nse_auxiliar.o nse_nsock.o nse_init.o nse_nmaplib.o nse_debug.o nse_bitlib.o nse_pcrelib.o nse_string.o
|
||||
endif
|
||||
|
||||
export HDRS = charpool.h FingerPrintResults.h global_structures.h idle_scan.h MACLookup.h nmap_amigaos.h nmap_dns.h nmap_error.h nmap.h NmapOps.h NmapOutputTable.h nmap_rpc.h nmap_tty.h nmap_winconfig.h osscan.h osscan2.h output.h portlist.h protocols.h scan_engine.h service_scan.h services.h TargetGroup.h Target.h targets.h tcpip.h timing.h utils.h nse_main.h nse_auxiliar.h nse_nsock.h nse_init.h nse_nmaplib.h nse_debug.h nse_macros.h nse_bitlib.h nse_pcrelib.h nse_string.h traceroute.h reason.h
|
||||
export SRCS = main.cc nmap.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc osscan.cc osscan2.cc output.cc scan_engine.cc timing.cc charpool.cc services.cc protocols.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc Target.cc FingerPrintResults.cc service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc nmap_dns.cc traceroute.cc reason.cc $(NSE_SRC) @COMPAT_SRCS@
|
||||
|
||||
OBJS = main.o nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o osscan2.o output.o scan_engine.o timing.o charpool.o services.o protocols.o nmap_rpc.o portlist.o NmapOps.o TargetGroup.o Target.o FingerPrintResults.o service_scan.o NmapOutputTable.o MACLookup.o nmap_tty.o nmap_dns.o nse_main.o nse_auxiliar.o nse_nsock.o nse_init.o nse_nmaplib.o nse_debug.o nse_bitlib.o nse_pcrelib.o nse_string.o traceroute.o reason.o @COMPAT_OBJS@
|
||||
export HDRS = charpool.h FingerPrintResults.h global_structures.h idle_scan.h MACLookup.h nmap_amigaos.h nmap_dns.h nmap_error.h nmap.h NmapOps.h NmapOutputTable.h nmap_rpc.h nmap_tty.h nmap_winconfig.h osscan.h osscan2.h output.h portlist.h protocols.h scan_engine.h service_scan.h services.h TargetGroup.h Target.h targets.h tcpip.h timing.h utils.h traceroute.h reason.h $(NSE_HDRS)
|
||||
|
||||
OBJS = main.o nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o osscan2.o output.o scan_engine.o timing.o charpool.o services.o protocols.o nmap_rpc.o portlist.o NmapOps.o TargetGroup.o Target.o FingerPrintResults.o service_scan.o NmapOutputTable.o MACLookup.o nmap_tty.o nmap_dns.o traceroute.o reason.o $(NSE_OBJS) @COMPAT_OBJS@
|
||||
|
||||
# %.o : %.cc -- nope this is a GNU extension
|
||||
.cc.o:
|
||||
|
|
@ -95,6 +101,7 @@ $(LIBLUADIR)/liblua.a: $(LIBLUADIR)/Makefile FORCE
|
|||
#$(LIBPCAPDIR)/Makefile:
|
||||
# @echo Configuring libpcap; cd $(LIBPCAPDIR); ./configure
|
||||
|
||||
|
||||
nmapfe/nmapfe:
|
||||
# @echo "FAILURES HERE ARE OK -- THEY JUST MEAN YOU CANNOT USE nmapfe"
|
||||
# -rm -f nmapfe/Makefile
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef NOLUA
|
||||
|
||||
/*=========================================================================*\
|
||||
* Auxiliar routines for class hierarchy manipulation
|
||||
* LuaSocket toolkit
|
||||
|
|
@ -132,4 +130,3 @@ void *auxiliar_getclassudata(lua_State *L, const char *classname, int objidx) {
|
|||
return luaL_checkudata(L, objidx, classname);
|
||||
}
|
||||
|
||||
#endif /* NOLUA */
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
* warranty.
|
||||
* the most recent copy can be found at http://rrt.sc3d.org/Software/Lua/
|
||||
**/
|
||||
#ifndef NOLUA
|
||||
|
||||
extern "C" {
|
||||
#include "lauxlib.h"
|
||||
|
|
@ -74,4 +73,3 @@ LUALIB_API int luaopen_bitlib (lua_State *L) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
#endif /* NOLUA */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef NOLUA
|
||||
|
||||
#include "nse_debug.h"
|
||||
|
||||
void l_dumpStack(lua_State* l) {
|
||||
|
|
@ -58,4 +56,3 @@ void l_dumpFunction(lua_State* l, int index) {
|
|||
fflush(stdout);
|
||||
}
|
||||
|
||||
#endif /* NOLUA */
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef NOLUA
|
||||
|
||||
#include "nse_init.h"
|
||||
#include "nse_nmaplib.h"
|
||||
#include "nse_macros.h"
|
||||
|
|
@ -650,4 +648,3 @@ int init_loadfile(lua_State* l, char* filename) {
|
|||
return SCRIPT_ENGINE_SUCCESS;
|
||||
}
|
||||
|
||||
#endif /* NOLUA */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef NOLUA
|
||||
|
||||
#include "nse_main.h"
|
||||
|
||||
extern "C" {
|
||||
|
|
@ -588,4 +586,3 @@ int process_preparethread(lua_State* l, struct run_record rr, struct thread_reco
|
|||
}
|
||||
|
||||
|
||||
#endif /* NOLUA */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef NOLUA
|
||||
|
||||
#include "nse_nmaplib.h"
|
||||
#include "nse_nsock.h"
|
||||
#include "nse_macros.h"
|
||||
|
|
@ -439,4 +437,3 @@ static int l_exc_newtry(lua_State *l) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
#endif /* NOLUA */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef NOLUA
|
||||
|
||||
#include "nse_nsock.h"
|
||||
#include "nse_auxiliar.h"
|
||||
#include "nse_macros.h"
|
||||
|
|
@ -426,4 +424,3 @@ static int l_nsock_set_timeout(lua_State* l) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
#endif /* NOLUA */
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
/* Reuben Thomas nov00-18dec04 */
|
||||
/* Shmuel Zeigerman may04-18dec04 */
|
||||
|
||||
#ifndef NOLUA
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -374,4 +373,3 @@ LUALIB_API int luaopen_pcrelib(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
#endif /* NOLUA */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef NOLUA
|
||||
|
||||
#include "nse_string.h"
|
||||
|
||||
#include "nbase.h"
|
||||
|
|
@ -81,4 +79,3 @@ char* nse_hexify(const void *data, unsigned int data_len) {
|
|||
return strdup(osDump.str().c_str());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue