mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Avoid rebuilding nmap every time "make" is run. The target "all" takes
care of building all prerequisites. One downside is that you can't do "make nmap" in an clean tree any more, if anyone ever did that. You have to do "make" once to build the prerequisites. This is how Automake does it. I'll keep thinking about this.
This commit is contained in:
parent
b41c987471
commit
8725d37b47
1 changed files with 4 additions and 2 deletions
|
|
@ -76,8 +76,10 @@ OBJS = main.o nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o
|
|||
.cc.o:
|
||||
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
||||
|
||||
all: $(TARGET) $(TARGETNMAPFE) $(BUILDUMIT)
|
||||
$(TARGET): @LUA_DEPENDS@ @PCAP_DEPENDS@ @PCRE_DEPENDS@ @DNET_DEPENDS@ $(NBASEDIR)/libnbase.a $(NSOCKDIR)/src/libnsock.a $(NSESTDLIB) $(OBJS)
|
||||
all: @LUA_DEPENDS@ @PCAP_DEPENDS@ @PCRE_DEPENDS@ @DNET_DEPENDS@ $(NBASEDIR)/libnbase.a $(NSOCKDIR)/src/libnsock.a $(NSESTDLIB)
|
||||
$(MAKE) $(TARGET) $(TARGETNMAPFE) $(BUILDUMIT)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
echo Compiling nmap
|
||||
rm -f $@
|
||||
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue