4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change
on this file since 2c060e3 was
2c060e3,
checked in by Daniel Lawson <dlawson@…>, 18 years ago
|
Initial revision
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | CC=gcc-3.0 |
---|
2 | CFLAGS= -Wall -Wimplicit -Wformat -pipe -g -O3 |
---|
3 | |
---|
4 | INCLUDE = -I../include -I/usr/local/wand/include |
---|
5 | CFLAGS += -D_FILE_OFFSET_BITS=64 |
---|
6 | CFLAGS += $(INCLUDE) |
---|
7 | LDFLAGS = -L/usr/local/wand/lib/ |
---|
8 | LDLIBS = $(LDFLAGS) -lpcapl -lzl |
---|
9 | |
---|
10 | |
---|
11 | LIBRT=libtrace.so |
---|
12 | LIBRTM=libtrace.so.1 |
---|
13 | LIBRTV=libtrace.so.1.0.6 |
---|
14 | |
---|
15 | INCLIBS=/usr/local/wand/lib/libzl.a /usr/local/wand/lib/libpcapl.a |
---|
16 | |
---|
17 | .PHONY: all clean distclean install depend |
---|
18 | |
---|
19 | all: libtrace.lo libtrace.la |
---|
20 | |
---|
21 | |
---|
22 | libfifo.lo: fifo.c |
---|
23 | libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libfifo.lo |
---|
24 | |
---|
25 | libtrace.lo: trace.c |
---|
26 | libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libtrace.lo |
---|
27 | |
---|
28 | libtrace.la: libtrace.lo libfifo.lo |
---|
29 | libtool --mode=link $(CC) $(CFLAGS) -o libtrace.la libtrace.lo libfifo.lo -rpath /usr/local/wand/lib $(LDLIBS) |
---|
30 | |
---|
31 | libtrace.so: trace.o fifo.o |
---|
32 | gcc -shared -Wl,-soname,$(LIBRTM) -o $(LIBRTV) $^ $(INCLIBS) $(LDFLAGS) |
---|
33 | |
---|
34 | libtrace.a: libtrace.a(trace.o) libtrace.a(fifo.o) |
---|
35 | |
---|
36 | |
---|
37 | clean: |
---|
38 | $(RM) *~ *.o libtrace.a *.lo *.la libtrace.so.* .libs/* |
---|
39 | |
---|
40 | distclean: |
---|
41 | $(RM) *~ *.o |
---|
42 | |
---|
43 | #install: |
---|
44 | # @true |
---|
45 | |
---|
46 | #install-libtrace: libtrace.a libtrace.so |
---|
47 | # cp libtrace.a /usr/local/wand/lib |
---|
48 | # cp $(LIBRTV) /usr/local/wand/lib |
---|
49 | # cp ../include/libtrace.h /usr/local/wand/include/libtrace.h |
---|
50 | # ldconfig |
---|
51 | |
---|
52 | install: libtrace.la |
---|
53 | libtool --mode=install install -c libtrace.la /usr/local/wand/lib/libtrace.la |
---|
54 | libtool --finish /usr/local/wand/lib/ |
---|
55 | cp ../include/libtrace.h /usr/local/wand/include/libtrace.h |
---|
56 | #libtool --mode=install install -c libtrace.la /usr/local/wand/lib/libtrace.la |
---|
57 | #libtool --finish /usr/local/wand/lib/ |
---|
58 | |
---|
59 | # vim: noet ts=8 sw=8 |
---|
Note: See
TracBrowser
for help on using the repository browser.