Changeset 7ecfe7f


Ignore:
Timestamp:
08/18/06 17:27:30 (14 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
0a22046
Parents:
09d3bef
Message:

Moving to new automake infrastructure, and replacing c++ varients with C versions if trivial

Location:
libpacketdump
Files:
7 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/Makefile.am

    r26c6be8 r7ecfe7f  
    11lib_LTLIBRARIES = libpacketdump.la
    2 include_HEADERS = libpacketdump.h 
     2include_HEADERS = libpacketdump.h
    33
    4 LINK_LAYERS=$(wildcard link_*.cc)
    5 ETH_LAYERS=$(wildcard eth_*.cc)
    6 IP_LAYERS=$(wildcard ip_*.cc)
    7 TCP_LAYERS=$(wildcard tcp_*.cc)
    8 TEXT_PROTOCOLS=$(wildcard *.protocol)
     4plugindir = $(libdir)/libpacketdump
    95
    10 PLUGINSOURCES=$(LINK_LAYERS) $(ETH_LAYERS) $(IP_LAYERS) $(TCP_LAYERS)
    11 PLUGINS=$(addsuffix .so,$(basename $(PLUGINSOURCES)))
    12 ALLPLUGINS=$(PLUGINS) $(TEXT_PROTOCOLS)
     6BIN_PROTOCOLS=
     7TXT_PROTOCOLS=
     8
     9# Link layers supported
     10BIN_PROTOCOLS+=link_0.la        # Legacy
     11#                               # HDLC_POS
     12BIN_PROTOCOLS+=link_2.la        # Ethernet
     13TXT_PROTOCOLS+=link_3.protocol  # ATM
     14BIN_PROTOCOLS+=link_4.la        # 802.11
     15#                               # NONE
     16BIN_PROTOCOLS+=link_6.la        # Linux SLL
     17TXT_PROTOCOLS+=link_7.protocol  # PFLog
     18#                               # Obsolete legacy
     19BIN_PROTOCOLS+=link_9.la        # POS
     20#                               # Obsolete Legacy ATM
     21BIN_PROTOCOLS+=link_10.la       # Obsolete Legacy Ethernet
     22BIN_PROTOCOLS+=link_11.la       # 802.11 Prism
     23#                               # AAL5
     24#                               # Duck
     25
     26# Decoders for various ethertypes (in decimal)
     27BIN_PROTOCOLS+=eth_2048.la
     28BIN_PROTOCOLS+=eth_2054.la
     29TXT_PROTOCOLS+=eth_33024.protocol
     30
     31# IP Protocol decoders
     32BIN_PROTOCOLS+=ip_1.la  # ICMP
     33BIN_PROTOCOLS+=ip_6.la  # TCP
     34BIN_PROTOCOLS+=ip_17.la # UDP
     35BIN_PROTOCOLS+=ip_33.la # DCCP
     36TXT_PROTOCOLS+=ip_41.protocol # IPv6
     37TXT_PROTOCOLS+=ip_58.protocol # ICMP6
     38BIN_PROTOCOLS+=ip_132.la        # SCTP
     39
     40# TCP protocol decoders
     41# (tcp_*.la)
     42
     43# UDP protocol decoders
     44# (udp_*.la)
     45
     46# I shouldn't need to do this
     47link_0_la_LDFLAGS=-module
     48link_2_la_LDFLAGS=-module
     49link_4_la_LDFLAGS=-module
     50link_6_la_LDFLAGS=-module
     51link_9_la_LDFLAGS=-module
     52link_10_la_LDFLAGS=-module
     53link_11_la_LDFLAGS=-module
    1354
    1455SUBDIRS = parser
    1556
    16 libpacketdump_la_SOURCES = libpacketdump.cc $(PLUGINSOURCES)
     57libpacketdump_la_SOURCES = libpacketdump.cc $(BIN_PROTOCOLS)
    1758
    18 PLUGINDIR=$(libdir)/libpacketdump
     59plugin_LTLIBRARIES = $(BIN_PROTOCOLS)
     60plugin_DATA = $(TXT_PROTOCOLS))
    1961
    2062INCLUDES= @ADD_INCLS@ -I../lib -I../
    2163libpacketdump_la_LIBADD = @ADD_LIBS@ -lparser
    2264libpacketdump_la_LDFLAGS=\
    23         -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
    24         @ADD_LDFLAGS@ \
    25         -L./parser
     65        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
     66        @ADD_LDFLAGS@ \
     67        -L./parser
    2668
    27 AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(PLUGINDIR)\" -rdynamic $(INCLUDES)
     69AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(plugindir)\" $(INCLUDES)
    2870
    29 
    30 
    31 %.so: %.cc
    32         $(CXX) $(AM_CXXFLAGS) -fpic -shared $^ -o $@
    33 
    34 all-local: $(ALLPLUGINS)
    35        
    36 clean-local:
    37         rm -f $(PLUGINS)
    38 
    39 install-exec-local:
    40         mkdir -p $(DESTDIR)$(PLUGINDIR); for plugin in $(ALLPLUGINS); do install -m 755 $$plugin $(DESTDIR)$(PLUGINDIR)/$$plugin; done
    41 
    42 uninstall-local:
    43         for plugin in $(PLUGINS); do rm -f $(PLUGINDIR)/$$plugin; done
    44         rmdir $(PLUGINDIR)
Note: See TracChangeset for help on using the changeset viewer.