1 | lib_LTLIBRARIES = libpacketdump.la |
---|
2 | include_HEADERS = libpacketdump.h |
---|
3 | |
---|
4 | plugindir = $(libdir)/libpacketdump |
---|
5 | |
---|
6 | BIN_PROTOCOLS= |
---|
7 | TXT_PROTOCOLS= |
---|
8 | |
---|
9 | # Link layers supported |
---|
10 | # Legacy |
---|
11 | BIN_PROTOCOLS+=link_0.la |
---|
12 | |
---|
13 | # HDLC_POS |
---|
14 | |
---|
15 | # Ethernet |
---|
16 | BIN_PROTOCOLS+=link_2.la |
---|
17 | |
---|
18 | # ATM |
---|
19 | TXT_PROTOCOLS+=link_3.protocol |
---|
20 | |
---|
21 | # 802.11 |
---|
22 | BIN_PROTOCOLS+=link_4.la |
---|
23 | |
---|
24 | # NONE |
---|
25 | # |
---|
26 | |
---|
27 | # Linux SLL |
---|
28 | #TXT_PROTOCOLS+=link_6.protocol |
---|
29 | BIN_PROTOCOLS+=link_6.la |
---|
30 | |
---|
31 | # PFLog |
---|
32 | # |
---|
33 | |
---|
34 | # Obsolete legacy |
---|
35 | # |
---|
36 | |
---|
37 | # Obsolete Legacy ATM |
---|
38 | # |
---|
39 | |
---|
40 | # PoS |
---|
41 | |
---|
42 | # Obsolete Legacy Ethernet |
---|
43 | BIN_PROTOCOLS+=link_10.la |
---|
44 | |
---|
45 | # 802.11 Prism |
---|
46 | BIN_PROTOCOLS+=link_11.la |
---|
47 | |
---|
48 | # 13: AAL5 |
---|
49 | # |
---|
50 | # 14: Duck |
---|
51 | # |
---|
52 | |
---|
53 | # 15: Radiotap |
---|
54 | BIN_PROTOCOLS+=link_15.la |
---|
55 | |
---|
56 | # 16: LLC/SNAP |
---|
57 | # |
---|
58 | # 17: PPP |
---|
59 | TXT_PROTOCOLS+=link_17.protocol |
---|
60 | |
---|
61 | # Decoders for various ethertypes (in decimal) |
---|
62 | # IPv4 |
---|
63 | BIN_PROTOCOLS+=eth_2048.la |
---|
64 | # ARP |
---|
65 | BIN_PROTOCOLS+=eth_2054.la |
---|
66 | # IPv6 |
---|
67 | TXT_PROTOCOLS+=eth_33024.protocol |
---|
68 | # MPLS |
---|
69 | BIN_PROTOCOLS+=eth_34887.la |
---|
70 | # pppoe |
---|
71 | BIN_PROTOCOLS+=eth_34916.la |
---|
72 | # 802.1x |
---|
73 | BIN_PROTOCOLS+=eth_34958.la |
---|
74 | |
---|
75 | # IP Protocol decoders |
---|
76 | # ICMP |
---|
77 | BIN_PROTOCOLS+=ip_1.la |
---|
78 | # TCP |
---|
79 | BIN_PROTOCOLS+=ip_6.la |
---|
80 | # UDP |
---|
81 | BIN_PROTOCOLS+=ip_17.la |
---|
82 | # DCCP |
---|
83 | BIN_PROTOCOLS+=ip_33.la |
---|
84 | # IPv6 |
---|
85 | TXT_PROTOCOLS+=ip_41.protocol |
---|
86 | # GRE |
---|
87 | BIN_PROTOCOLS+=ip_47.la |
---|
88 | # ICMP6 |
---|
89 | TXT_PROTOCOLS+=ip_58.protocol |
---|
90 | # SCTP |
---|
91 | BIN_PROTOCOLS+=ip_132.la |
---|
92 | |
---|
93 | # TCP protocol decoders |
---|
94 | # (tcp_*.la) |
---|
95 | |
---|
96 | # UDP protocol decoders |
---|
97 | # (udp_*.la) |
---|
98 | |
---|
99 | # I shouldn't need to do this |
---|
100 | link_0_la_LDFLAGS=-module |
---|
101 | link_2_la_LDFLAGS=-module |
---|
102 | link_4_la_LDFLAGS=-module |
---|
103 | link_6_la_LDFLAGS=-module |
---|
104 | link_10_la_LDFLAGS=-module |
---|
105 | link_11_la_LDFLAGS=-module |
---|
106 | link_15_la_LDFLAGS=-module |
---|
107 | eth_2048_la_LDFLAGS=-module |
---|
108 | eth_2054_la_LDFLAGS=-module |
---|
109 | eth_34887_la_LDFLAGS=-module |
---|
110 | eth_34916_la_LDFLAGS=-module |
---|
111 | eth_34958_la_LDFLAGS=-module |
---|
112 | |
---|
113 | ip_1_la_LDFLAGS=-module |
---|
114 | ip_6_la_LDFLAGS=-module |
---|
115 | ip_17_la_LDFLAGS=-module |
---|
116 | ip_33_la_LDFLAGS=-module |
---|
117 | ip_47_la_LDFLAGS=-module |
---|
118 | ip_132_la_LDFLAGS=-module |
---|
119 | |
---|
120 | libpacketdump_la_SOURCES = libpacketdump.cc \ |
---|
121 | lexer.l parser.y bitbuffer.c bitbuffer.h grammar.h |
---|
122 | |
---|
123 | plugin_LTLIBRARIES = $(BIN_PROTOCOLS) |
---|
124 | dist_plugin_DATA = $(TXT_PROTOCOLS) |
---|
125 | |
---|
126 | INCLUDES= @ADD_INCLS@ -I../lib |
---|
127 | |
---|
128 | # NOTE: You CANNOT add @LEXLIBS@ here, as they are statically compiled |
---|
129 | # which on non x86_32 platforms means that they cannot be linked into |
---|
130 | # a shared library. |
---|
131 | libpacketdump_la_LIBADD = @ADD_LIBS@ |
---|
132 | libpacketdump_la_LDFLAGS=\ |
---|
133 | -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \ |
---|
134 | @ADD_LDFLAGS@ |
---|
135 | |
---|
136 | AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(plugindir)\" $(INCLUDES) |
---|
137 | BUILT_SOURCES=parser.h |
---|
138 | AM_YFLAGS=-d |
---|
139 | EXTRA_DIST=lexer.l parser.y |
---|
140 | |
---|
141 | install-exec-hook: |
---|
142 | mkdir -p $(DESTDIR)$(plugindir) |
---|
143 | cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so ppp_33.so |
---|
144 | cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so link_5.so |
---|
145 | cd $(DESTDIR)$(plugindir) && $(LN_S) -f ip_41.protocol eth_34525.protocol |
---|