1
0
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:
fyodor
2009-11-03 21:41:43 +00:00
parent 1eb02ba70d
commit a759174b84
2 changed files with 46 additions and 0 deletions

View File

@@ -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.
#

View File

@@ -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