4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change
on this file since 77bd94f was
0d18577,
checked in by Daniel Lawson <dlawson@…>, 18 years ago
|
adding original makefile in for reference
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | |
---|
2 | PREFIX=/usr/local/ |
---|
3 | |
---|
4 | #if using debian Woody, you probably want to use gcc-3.0 here |
---|
5 | #CC=gcc-3.0 |
---|
6 | CC=gcc |
---|
7 | CFLAGS= -Wall -Wimplicit -Wformat -pipe -g -O3 |
---|
8 | |
---|
9 | CFLAGS += -I../include -I$(PREFIX)/include |
---|
10 | CFLAGS += -D_FILE_OFFSET_BITS=64 |
---|
11 | LDFLAGS = -L$(PREFIX)/lib/ -lpcap -lz |
---|
12 | |
---|
13 | |
---|
14 | CURRENT=2 |
---|
15 | AGE=1 |
---|
16 | REVISION=0 |
---|
17 | |
---|
18 | .PHONY: all clean distclean install depend |
---|
19 | |
---|
20 | all: libtrace.lo libtrace.la |
---|
21 | |
---|
22 | |
---|
23 | libfifo.lo: fifo.c |
---|
24 | libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libfifo.lo |
---|
25 | |
---|
26 | libtrace.lo: trace.c |
---|
27 | libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libtrace.lo |
---|
28 | |
---|
29 | libtrace.la: libtrace.lo libfifo.lo |
---|
30 | libtool --mode=link $(CC) $(CFLAGS) -o libtrace.la \ |
---|
31 | libtrace.lo libfifo.lo -rpath $(PREFIX)/lib $(LDFLAGS) \ |
---|
32 | -version-info $(CURRENT):$(REVISION):$(AGE) |
---|
33 | |
---|
34 | |
---|
35 | clean: |
---|
36 | $(RM) *~ *.o *.a *.lo *.la *.so .libs/*.* |
---|
37 | |
---|
38 | distclean: |
---|
39 | $(RM) *~ *.o |
---|
40 | |
---|
41 | |
---|
42 | install-profile: libtrace-prof.la |
---|
43 | libtool --mode=install install -c libtrace-prof.la $(PREFIX)/lib/libtrace-prof.la |
---|
44 | libtool --finish $(PREFIX)/lib/ |
---|
45 | |
---|
46 | install: libtrace.la |
---|
47 | mkdir -p $(PREFIX)/lib |
---|
48 | libtool --mode=install install -c libtrace.la $(PREFIX)/lib/libtrace.la |
---|
49 | libtool --finish $(PREFIX)/lib/ |
---|
50 | mkdir -p $(PREFIX)/include |
---|
51 | cp ../include/libtrace.h $(PREFIX)/include/libtrace.h |
---|
52 | cp ../include/dagformat.h $(PREFIX)/include/dagformat.h |
---|
53 | |
---|
54 | docs: |
---|
55 | cd .. |
---|
56 | doxygen |
---|
57 | |
---|
58 | # vim: noet ts=8 sw=8 |
---|
Note: See
TracBrowser
for help on using the repository browser.