source: libpacketdump/Makefile.am @ f83e07e

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since f83e07e was f83e07e, checked in by Perry Lorier <perry@…>, 14 years ago

The directory may not exist yet, so make sure it's created.

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