summaryrefslogtreecommitdiffstats
path: root/nsock/tests/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'nsock/tests/Makefile.in')
-rw-r--r--nsock/tests/Makefile.in43
1 files changed, 43 insertions, 0 deletions
diff --git a/nsock/tests/Makefile.in b/nsock/tests/Makefile.in
new file mode 100644
index 0000000..6fa8342
--- /dev/null
+++ b/nsock/tests/Makefile.in
@@ -0,0 +1,43 @@
+#
+# nsock regression test suite
+# Same license as nmap -- see https://nmap.org/book/man-legal.html
+##
+
+NBASEDIR=@NBASEDIR@
+NSOCKLIB=../src/libnsock.a
+NBASELIB=$(NBASEDIR)/libnbase.a
+
+CC = @CC@
+CPPFLAGS = @CPPFLAGS@ -I../include
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @OPENSSL_LIBS@ @LIBPCAP_LIBS@ @LIBS@
+
+SRC = tests_main.c \
+ basic.c \
+ timer.c \
+ logs.c \
+ connect.c \
+ ghlists.c \
+ ghheaps.c \
+ proxychain.c \
+ cancel.c
+
+OBJ = $(SRC:.c=.o)
+
+EXE = tests_main
+
+all: $(SRC) $(EXE)
+
+$(EXE): $(OBJ)
+ $(CC) $(LDFLAGS) $(OBJ) -o $@ $(NSOCKLIB) $(NBASELIB) $(LIBS)
+
+.c.o:
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
+
+clean:
+ $(RM) $(OBJ) $(EXE)
+
+rebuild: clean $(EXE)
+
+.PHONY: clean rebuild