source: examples/sample/Makefile @ 05e83dc

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 05e83dc was 05e83dc, checked in by Daniel Lawson <dlawson@…>, 16 years ago

some assorted fixes in the examples tree, to support building under freebsd. Isn't quite there yet.

Changed trace_read_packet to use pcap_next_ex, and to set a timeout of 1ms on pcap_open. This fixes the blocking under freebsd, it seems

  • Property mode set to 100644
File size: 368 bytes
Line 
1
2PREFIX=/usr/local
3CC=gcc
4
5INCLUDE = -I$(PREFIX)/include
6CFLAGS = -Wall -Wimplicit -Wformat -pipe -g -O2
7CFLAGS += $(INCLUDE)
8libdir = -L$(PREFIX)/lib
9LDLIBS = $(libdir) -ltrace
10
11BINS = sample printip
12.PHONY: all clean distclean install depend
13
14all: $(BINS) 
15
16clean:
17        $(RM) $(BINS) $(OBJS) 
18
19distclean:
20        $(RM) $(BINS) $(OBJS) 
21
22install:
23        @true
24
25
26# vim: noet ts=8 sw=8
Note: See TracBrowser for help on using the repository browser.