Changeset 505c421 for examples


Ignore:
Timestamp:
08/23/04 01:06:00 (16 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:
258c1fb
Parents:
dd87dc7
Message:

Make easier to install on other machines

Location:
examples/tracedump
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/tracedump/Makefile

    r5d6ebe1 r505c421  
    11CXX=g++
    22INCLUDES=-I/usr/local/wand/include
     3# Directory to search for plugins
     4LIBDIR="./"
    35CXXFLAGS=-g -Wall $(INCLUDES) -rdynamic
    46LDFLAGS=-L/usr/local/wand/lib
    5 LDLIBS=-ltrace -ldl -lpcap -lz
     7LDLIBS=-ltrace -ldl
    68LINK_LAYERS=$(addsuffix .so,$(basename $(wildcard link_*.cc)))
    79ETH_LAYERS=$(addsuffix .so,$(basename $(wildcard eth_*.cc)))
     
    1315
    1416tracedump: tracedump.cc tracedump-libtrace.o tracedump-lib.o
     17
     18tracedump-lib.o: CXXFLAGS+=-DLIBDIR=$(LIBDIR)
    1519
    1620tcp_1720.so: tcp_1720.cc asn1.o
  • examples/tracedump/tracedump-lib.cc

    rd907ff5 r505c421  
    88#include <ctype.h>
    99#include "tracedump.h"
     10
     11#ifndef DIRNAME
    1012#define DIRNAME "./"
     13#endif
    1114
    1215typedef void (*decode_t)(uint16_t type,char *packet,int len);
Note: See TracChangeset for help on using the changeset viewer.