File: Makefile.am

package info (click to toggle)
guessnet 0.56
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 1,064 kB
  • ctags: 863
  • sloc: cpp: 5,355; sh: 1,432; makefile: 168; perl: 118
file content (107 lines) | stat: -rw-r--r-- 2,254 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#DEFINES := $(shell libnet-config --defines)
#LIBS := $(shell libnet-config --libs) -lpcap -lpthread -lpopt
#CFLAGS := $(shell libnet-config --cflags) $(CFLAGS)

#SUBDIRS = gnparser ifparser .
#SUBDIRS = ipexpr

sbin_PROGRAMS = guessnet
# guessnet-scan

noinst_PROGRAMS = testscan

noinst_LIBRARIES = libguessnet.a
libguessnet_a_SOURCES = \
	nettypes.cc \
	util/output.cc \
	util/starter.cc \
	util/processrunner.cc \
	util/packetmaker.cc \
	util/netsender.cc \
	util/netwatcher.cc \
	scanner/scan.cc \
	scanner/scanbag.cc \
	scanner/script.cc \
	scanner/peer.cc \
	scanner/dhcp.cc \
	scanner/linkbeat.cc \
	scanner/iwscan.cc

testscan_SOURCES = testscan.cc
testscan_LDADD = -liw

guessnet_SOURCES = \
	parser.cc \
	IFace.cc \
	options.cc \
	GuessnetParser.cc \
	IfaceParser.cc \
	runner/runner.cc \
	runner/fake.cc \
	runner/main.cc \
	guessnet.cc
guessnet_LDADD = libguessnet.a @LIBNET_LIBS@ @LIBWIBBLE_LIBS@

#guessnet_scan_SOURCES = \
#	IFace.cc \
#	options.cc \
#	nettypes.cc \
#	scanner/TrafficScanner.cc \
#	guessnet-scan.cc
#guessnet_scan_LDADD = libguessnet.a @LIBNET_LIBS@ @LIBWIBBLE_LIBS@

#install-exec-hook:
#	ln -s guessnet $(sbindir)/guessnet-ifupdown

INCLUDES=@LIBNET_CFLAGS@ @LIBWIBBLE_CFLAGS@ -DSCRIPTDIR=\"@scriptdir@\"

EXTRA_DIST = \
	util/output.h \
	util/processrunner.h \
	util/starter.h \
	util/netsender.h \
	util/netwatcher.h \
	util/packetmaker.h \
	scanner/scan.h \
	scanner/scanbag.h \
	scanner/TrafficScanner.h \
	scanner/TrafficScanner.cc \
	scanner/dhcp.h \
	scanner/peer.h \
	scanner/script.h \
	scanner/iwscan.h \
	scanner/linkbeat.h \
	runner/runner.h \
	runner/fake.h \
	runner/main.h \
	tests/test-utils.h \
	options.h \
	ethtool-kernel.h \
	ethtool-local.h \
	GuessnetParser.h \
	IFace.h \
	IfaceParser.h \
	nettypes.h \
	parser.h \
	guessnet-scan.cc \
	runtest


# Tests
TESTS_ENVIRONMENT = $(top_srcdir)/src/runtest
check_PROGRAMS = tests/guessnet-test
tests_guessnet_test_SOURCES = \
	IFace.cc \
	options.cc \
	GuessnetParser.cc \
	IfaceParser.cc \
	util/starter-tut.cc \
	util/processrunner-tut.cc \
	scanner/scanbag-tut.cc \
	tests/tut-main.cpp
tests_guessnet_test_LDADD = libguessnet.a @LIBNET_LIBS@ @LIBWIBBLE_LIBS@

check-local:
	for test in $(check_PROGRAMS); do \
		$(TESTS_ENVIRONMENT) $$test ; \
	done