mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 03:49:01 +00:00
This prevents nsock from iterating over the whole list of events at each runloop, thus improving performance. It made it necessary to have pointers from the msevents to the event lists they belong to. The patch therefore also changes gh_list from autonomous containers to embedded structures. Added unit tests accordingly and cosmetic changes to make things look more consistent.
40 lines
639 B
Makefile
40 lines
639 B
Makefile
#
|
|
# nsock regression test suite
|
|
# Same license as nmap -- see http://nmap.org/book/man-legal.html
|
|
##
|
|
|
|
NBASEDIR=../../nbase
|
|
NSOCKLIB=../src/libnsock.a
|
|
NBASELIB=$(NBASEDIR)/libnbase.a
|
|
|
|
CC = gcc
|
|
CFLAGS = -Wall -O0 -ggdb -I../include/ -I$(NBASEDIR)
|
|
LDFLAGS = -lssl -lpcap -lcrypto
|
|
|
|
SRC = tests_main.c \
|
|
basic.c \
|
|
timer.c \
|
|
logs.c \
|
|
connect.c \
|
|
ghlists.c \
|
|
ghheaps.c
|
|
|
|
OBJ = $(SRC:.c=.o)
|
|
|
|
EXE = tests_main
|
|
|
|
all: $(SRC) $(EXE)
|
|
|
|
$(EXE): $(OBJ)
|
|
$(CC) $(LDFLAGS) $(OBJ) -o $@ $(NSOCKLIB) $(NBASELIB)
|
|
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
clean:
|
|
$(RM) $(OBJ) $(EXE)
|
|
|
|
rebuild: clean $(EXE)
|
|
|
|
.PHONY: clean rebuild
|