File: Makefile.inc

package info (click to toggle)
aircrack-ng 1%3A1.6%2Bgit20210130.91820bc-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,056 kB
  • sloc: ansic: 67,045; cs: 5,392; sh: 3,773; python: 2,565; pascal: 1,074; asm: 570; makefile: 253; cpp: 46
file content (120 lines) | stat: -rw-r--r-- 3,922 bytes parent folder | download | duplicates (3)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
# Aircrack-ng
#
# Copyright (C) 2018 Joseph Benden <joe@benden.us>
#
# Autotool support was written by: Joseph Benden <joe@benden.us>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
#
# In addition, as a special exception, the copyright holders give
# permission to link the code of portions of this program with the
# OpenSSL library under certain conditions as described in each
# individual source file, and distribute linked combinations
# including the two.
#
# You must obey the GNU General Public License in all respects
# for all of the code used other than OpenSSL.
#
# If you modify file(s) with this exception, you may extend this
# exception to your dnl version of the file(s), but you are not obligated
# to do so.
#
# If you dnl do not wish to do so, delete this exception statement from your
# version.
#
# If you delete this exception statement from all source files in the
# program, then also delete it here.

SRCS_COMMON = %D%/network.c %D%/file.c
SRCS        = %D%/osdep.c $(SRCS_COMMON)
SRCS_APCAP  = %D%/airpcap.c
SRCS_OBSD   = $(SRCS) %D%/openbsd.c %D%/openbsd_tap.c %D%/common.c
SRCS_NBSD	= $(SRCS) %D%/netbsd.c %D%/netbsd_tap.c %D%/common.c
SRCS_FBSD	= $(SRCS) %D%/freebsd.c %D%/freebsd_tap.c %D%/common.c
SRCS_LINUX	= $(SRCS) %D%/linux.c %D%/linux_tap.c %D%/common.c
SRCS_DUMMY	= $(SRCS) %D%/dummy.c %D%/dummy_tap.c %D%/common.c
SRCS_CYGWIN	= $(SRCS) %D%/cygwin.c %D%/cygwin_tap.c %D%/common.c
SRCS_DARWIN = $(SRCS) %D%/darwin.c %D%/darwin_tap.c %D%/common.c

if AIRPCAP
SRCS_CYGWIN    += $(SRCS_APCAP)
endif

if CYGWIN
if AIRPCAP
libaircrack_osdep_la_SOURCES = $(SRCS_CYGWIN)
libaircrack_osdep_la_CFLAGS = $(AIRPCAP_CFLAGS)
libaircrack_osdep_la_LIBADD = $(AIRPCAP_LIBS) $(LIBRADIOTAP_LIBS) -lsetupapi -liphlpapi
else
libaircrack_osdep_la_SOURCES = $(SRCS_CYGWIN)
endif
endif

if DARWIN
libaircrack_osdep_la_SOURCES = $(SRCS_DARWIN)
endif

if DUMMY
libaircrack_osdep_la_SOURCES = $(SRCS_DUMMY)
endif

if FREEBSD
libaircrack_osdep_la_SOURCES = $(SRCS_FBSD)
endif

if LINUX
libaircrack_osdep_la_SOURCES = $(SRCS_LINUX)
libaircrack_osdep_la_CFLAGS  = $(LIBNL_CFLAGS)
libaircrack_osdep_la_LIBADD = $(LIBNL_LIBS) $(LIBRADIOTAP_LIBS)
endif

if NETBSD
libaircrack_osdep_la_SOURCES = $(SRCS_NBSD)
endif

if OPENBSD
libaircrack_osdep_la_SOURCES = $(SRCS_OBSD)
endif

if !AIRPCAP
libaircrack_osdep_la_LIBADD = $(LIBRADIOTAP_LIBS)
if CYGWIN
libaircrack_osdep_la_LIBADD += -lsetupapi -liphlpapi
endif
endif

lib_LTLIBRARIES += libaircrack-osdep.la
libaircrack_osdep_la_LDFLAGS = -release $(LT_VER) -no-undefined
libaircrack_osdep_la_CPPFLAGS = -I$(top_srcdir)/include/aircrack-ng/osdep $(AM_CPPFLAGS)

EXTRA_DIST +=     %D%/openbsd.c \
                  %D%/darwin.c \
                  %D%/common.c \
                  %D%/darwin_tap.c \
                  %D%/cygwin.c \
                  %D%/linux.c \
                  %D%/file.c \
                  %D%/linux_tap.c \
                  %D%/airpcap.c \
                  %D%/netbsd.c \
                  %D%/freebsd_tap.c \
                  %D%/freebsd.c \
                  %D%/osdep.c \
                  %D%/dummy_tap.c \
                  %D%/openbsd_tap.c \
                  %D%/dummy.c \
                  %D%/netbsd_tap.c \
                  %D%/network.c \
                  %D%/cygwin_tap.c