Changeset f20b30e for examples


Ignore:
Timestamp:
10/31/05 16:28:10 (15 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:
edca0b8
Parents:
96ddd3c
Message:

Add new makefile/tracedump program

Location:
examples/tracedump
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • examples/tracedump/Makefile

    rb4cb91f rf20b30e  
    1 CXX=g++
     1
    22PREFIX?=/usr/local
    3 INCLUDES=-I$(PREFIX)/include
    4 # Directory to search for plugins
    5 LIBDIR="./"
    6 CXXFLAGS=-g -Wall $(INCLUDES) -rdynamic
    7 LDFLAGS=-L$(PREFIX)/lib
    8 LDLIBS=-ltrace -ldl
    9 LINK_LAYERS=$(addsuffix .so,$(basename $(wildcard link_*.cc)))
    10 ETH_LAYERS=$(addsuffix .so,$(basename $(wildcard eth_*.cc)))
    11 IP_LAYERS=$(addsuffix .so,$(basename $(wildcard ip_*.cc)))
    12 TCP_LAYERS=$(addsuffix .so,$(basename $(wildcard tcp_*.cc)))
    13 PLUGINS=$(LINK_LAYERS) $(ETH_LAYERS) $(IP_LAYERS) $(TCP_LAYERS)
     3CC=gcc
    144
    15 all: tracedump $(PLUGINS) links
     5INCLUDE = -I$(PREFIX)/include -I../../libpacketdump
     6CFLAGS = -Wall -Wimplicit -Wformat -pipe -g -O2
     7CFLAGS += $(INCLUDE)
     8libdir = -L$(PREFIX)/lib -L../../libpacketdump
     9LDLIBS = $(libdir) -ltrace -lpacketdump -ldl
    1610
    17 tracedump: tracedump.cc tracedump-libtrace.o tracedump-lib.o
     11BINS = tracedump
     12.PHONY: all clean distclean install depend
    1813
    19 tracedump-lib.o: CXXFLAGS+=-DLIBDIR=$(LIBDIR)
    20 
    21 tcp_1720.so:
    22 
    23 %.so:%.cc
    24         $(CXX) $(CXXFLAGS) -fpic -shared $^ -o $@
    25 
    26 asn1-test: CXXFLAGS+=-DTEST
    27 asn1-test: asn1.cc
    28         $(CXX) $(CXXFLAGS) $^ -o $@
    29 
    30 links: links.txt
    31         ./make_links
     14all: $(BINS)
    3215
    3316clean:
    34         rm -f *.o tracedump *.so
     17        $(RM) $(BINS) $(OBJS) core *.o
     18
     19distclean:
     20        $(RM) $(BINS) $(OBJS)  core *.o
    3521
    3622install:
    37         cp *.so $(LIBDIR)
     23        @true
    3824
    39 .PHONY: clean all links
    4025
     26# vim: noet ts=8 sw=8
Note: See TracChangeset for help on using the changeset viewer.