mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Merge from /nmap-exp/luis/nmap-os6.
svn merge --ignore-ancestry svn://svn.insecure.org/nmap@26621 svn://svn.insecure.org/nmap-exp/luis/nmap-os6 This is the IPv6 OS detection branch. "nmap -6 -O" works now, though at this point it only prints fingerprints and not OS guesses, because we need to collect more submissions.
This commit is contained in:
parent
f41753c4e9
commit
9bf2ec3884
93 changed files with 24665 additions and 222 deletions
36
liblinear/Makefile
Normal file
36
liblinear/Makefile
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
CXX ?= g++
|
||||
CC ?= gcc
|
||||
CFLAGS = -Wall -Wconversion -O3 -fPIC
|
||||
LIBS = blas/blas.a
|
||||
SHVER = 1
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
#LIBS = -lblas
|
||||
|
||||
all: train predict
|
||||
|
||||
lib: linear.o tron.o blas/blas.a
|
||||
$(CXX) -shared -dynamiclib linear.o tron.o blas/blas.a -o liblinear.so.$(SHVER)
|
||||
|
||||
liblinear.a: linear.o tron.o blas/blas.a
|
||||
$(AR) rcv liblinear.a linear.o tron.o blas/*.o
|
||||
$(RANLIB) liblinear.a
|
||||
|
||||
train: tron.o linear.o train.c blas/blas.a
|
||||
$(CXX) $(CFLAGS) -o train train.c tron.o linear.o $(LIBS)
|
||||
|
||||
predict: tron.o linear.o predict.c blas/blas.a
|
||||
$(CXX) $(CFLAGS) -o predict predict.c tron.o linear.o $(LIBS)
|
||||
|
||||
tron.o: tron.cpp tron.h
|
||||
$(CXX) $(CFLAGS) -c -o tron.o tron.cpp
|
||||
|
||||
linear.o: linear.cpp linear.h
|
||||
$(CXX) $(CFLAGS) -c -o linear.o linear.cpp
|
||||
|
||||
blas/blas.a:
|
||||
cd blas; make OPTFLAGS='$(CFLAGS)' CC='$(CC)';
|
||||
|
||||
clean:
|
||||
cd blas; make clean
|
||||
rm -f *~ tron.o linear.o train predict liblinear.so.$(SHVER) liblinear.a
|
||||
Loading…
Add table
Add a link
Reference in a new issue