diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:42:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:42:04 +0000 |
commit | 0d47952611198ef6b1163f366dc03922d20b1475 (patch) | |
tree | 3d840a3b8c0daef0754707bfb9f5e873b6b1ac13 /nsock/examples/Makefile | |
parent | Initial commit. (diff) | |
download | nmap-0d47952611198ef6b1163f366dc03922d20b1475.tar.xz nmap-0d47952611198ef6b1163f366dc03922d20b1475.zip |
Adding upstream version 7.94+git20230807.3be01efb1+dfsg.upstream/7.94+git20230807.3be01efb1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'nsock/examples/Makefile')
-rw-r--r-- | nsock/examples/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nsock/examples/Makefile b/nsock/examples/Makefile new file mode 100644 index 0000000..de40593 --- /dev/null +++ b/nsock/examples/Makefile @@ -0,0 +1,29 @@ +CC = gcc +CCOPT = +DEFS = +NBASEDIR=../../nbase +NSOCKLIB=../src/libnsock.a +NBASELIB=$(NBASEDIR)/libnbase.a +OPENSSLLIB=-lssl -lpcap -lcrypto +INCLS = -I../include -I$(NBASEDIR) +CFLAGS = -I/usr/local/include -Wall -g $(CCOPT) $(DEFS) $(INCLS) +LDFLAGS = +PCAPBASEDIR=../../libpcap +PCAPLIB=$(PCAPBASEDIR)/libpcap.a +RM = rm -f + +TARGETS = nsock_test_timers nsock_telnet + +all: $(TARGETS) + +nsock_telnet: nsock_telnet.o $(NSOCKLIB) + $(CC) -o $@ $(CFLAGS) nsock_telnet.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB) + +nsock_test_timers: nsock_test_timers.o $(NSOCKLIB) + $(CC) -o $@ $(CFLAGS) nsock_test_timers.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB) + +nsock_pcap: nsock_pcap.o $(NSOCKLIB) $(PCAPLIB) + $(CC) -o $@ $(CFLAGS) nsock_pcap.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB) $(PCAPLIB) + +clean: + $(RM) *.o $(TARGETS) |