mirror of
https://github.com/nmap/nmap.git
synced 2026-02-06 05:26:34 +00:00
Added dummy rules to inhibit GNU Make's implicit yacc/lex creation of scanner.c and grammar.c - was causing trouble with the new upgraded libpcap
This commit is contained in:
@@ -303,6 +303,15 @@ EXTRA_DIST = \
|
||||
Win32/Src/inet_net.c \
|
||||
Win32/Src/inet_pton.c
|
||||
|
||||
# Inihibit implicit rule Make seems to have for using yacc/lex to
|
||||
# recompile new scanner.c/grammar.c -- we ship ones which we want to
|
||||
# use instead.
|
||||
grammar.c:
|
||||
echo "Not rebuilding grammar.c or scanner.c"
|
||||
|
||||
scanner.c:
|
||||
echo "Not rebuilding grammar.c or scanner.c"
|
||||
|
||||
all: libpcap.a pcap-config
|
||||
|
||||
libpcap.a: $(OBJ)
|
||||
@@ -320,6 +329,9 @@ libpcap.so: $(OBJ)
|
||||
@rm -f $@
|
||||
$(CC) -shared -Wl,-soname,$@.1 -o $@.`cat $(srcdir)/VERSION` $(OBJ) $(DAGLIBS)
|
||||
|
||||
grammar.c scanner.c:
|
||||
echo
|
||||
|
||||
#
|
||||
# The following rule succeeds, but the result is untested.
|
||||
#
|
||||
|
||||
@@ -1,5 +1,39 @@
|
||||
o Included this file, renamed directory from libpcap-1.0.0 to libpcap.
|
||||
|
||||
o Added dummy rules to inhibit GNU Make's implicit yacc/lex creation
|
||||
of scanner.c and grammar.c:
|
||||
Index: Makefile.in
|
||||
===================================================================
|
||||
--- Makefile.in (revision 15981)
|
||||
+++ Makefile.in (working copy)
|
||||
@@ -303,6 +303,15 @@
|
||||
Win32/Src/inet_net.c \
|
||||
Win32/Src/inet_pton.c
|
||||
|
||||
+# Inihibit implicit rule Make seems to have for using yacc/lex to
|
||||
+# recompile new scanner.c/grammar.c -- we ship ones which we want to
|
||||
+# use instead.
|
||||
+grammar.c:
|
||||
+ echo "Not rebuilding grammar.c or scanner.c"
|
||||
+
|
||||
+scanner.c:
|
||||
+ echo "Not rebuilding grammar.c or scanner.c"
|
||||
+
|
||||
all: libpcap.a pcap-config
|
||||
|
||||
libpcap.a: $(OBJ)
|
||||
@@ -320,6 +329,9 @@
|
||||
@rm -f $@
|
||||
$(CC) -shared -Wl,-soname,$@.1 -o $@.`cat $(srcdir)/VERSION` $(OBJ) $(DAGLIBS)
|
||||
|
||||
+grammar.c scanner.c:
|
||||
+ echo
|
||||
+
|
||||
#
|
||||
# The following rule succeeds, but the result is untested.
|
||||
#
|
||||
|
||||
|
||||
o Removed these files and directories:
|
||||
packaging/
|
||||
config.guess
|
||||
|
||||
Reference in New Issue
Block a user