mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Add initial configure.ac and Makefile.in for nmap-update.
This commit is contained in:
parent
b55263be4e
commit
cefbbb961a
5 changed files with 4120 additions and 5 deletions
38
nmap-update/Makefile.in
Normal file
38
nmap-update/Makefile.in
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
top_srcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPPFLAGS = @CPPFLAGS@ $(DEFS) $$($(APR_CONFIG) --cppflags --includes)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
DEFS = @DEFS@ -D_FORTIFY_SOURCE=2
|
||||
|
||||
APR_CONFIG = @APR_CONFIG@
|
||||
|
||||
SOURCES = nmap-update
|
||||
C_FILES = $(addsuffix .c,$(SOURCES))
|
||||
O_FILES = $(addsuffix .o,$(SOURCES))
|
||||
|
||||
all: nmap-update
|
||||
|
||||
nmap-update: $(O_FILES)
|
||||
$(CC) -o $@ $(LIBS) $^
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $<
|
||||
|
||||
clean:
|
||||
rm -f nmap-update *.o makefile.dep
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile
|
||||
|
||||
Makefile: Makefile.in
|
||||
./config.status
|
||||
|
||||
makefile.dep:
|
||||
$(CC) -MM $(CPPFLAGS) $(C_FILES) > $@
|
||||
include makefile.dep
|
||||
|
||||
.PHONY: all clean
|
||||
28
nmap-update/config.h.in
Normal file
28
nmap-update/config.h.in
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the `apr-1' library (-lapr-1). */
|
||||
#undef HAVE_LIBAPR_1
|
||||
|
||||
/* Define to 1 if you have the `svn_client-1' library (-lsvn_client-1). */
|
||||
#undef HAVE_LIBSVN_CLIENT_1
|
||||
|
||||
/* Define to 1 if you have the `svn_subr-1' library (-lsvn_subr-1). */
|
||||
#undef HAVE_LIBSVN_SUBR_1
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#undef PACKAGE_URL
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
4023
nmap-update/configure
vendored
Executable file
4023
nmap-update/configure
vendored
Executable file
File diff suppressed because it is too large
Load diff
26
nmap-update/configure.ac
Normal file
26
nmap-update/configure.ac
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.68])
|
||||
AC_INIT([nmap-update.c])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_CHECK_PROGS([APR_CONFIG], [apr-1-config])
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([svn_client-1], [svn_client_create_context])
|
||||
AC_CHECK_LIB([svn_subr-1], [svn_handle_error2])
|
||||
AC_CHECK_LIB([apr-1], [apr_pool_destroy])
|
||||
|
||||
# Checks for header files.
|
||||
# AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
# AC_TYPE_SIZE_T
|
||||
|
||||
# Checks for library functions.
|
||||
# AC_CHECK_FUNCS([mkdir strerror strtoul])
|
||||
|
||||
AC_OUTPUT(Makefile)
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
/* See the file tools/examples/minimal_client.c in the Subversion source
|
||||
directory for an example of using the svn_client API. */
|
||||
|
||||
#include "svn_client.h"
|
||||
#include "svn_cmdline.h"
|
||||
#include "svn_opt.h"
|
||||
#include "svn_pools.h"
|
||||
#include "svn_types.h"
|
||||
#include <subversion-1/svn_client.h>
|
||||
#include <subversion-1/svn_cmdline.h>
|
||||
#include <subversion-1/svn_opt.h>
|
||||
#include <subversion-1/svn_pools.h>
|
||||
#include <subversion-1/svn_types.h>
|
||||
|
||||
#define NMAP_VERSION "5.61TEST2"
|
||||
#define NMAP_DATADIR "/usr/local/share/nmap"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue