source: lib/Makefile.orig @ bf7018a

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

adding original makefile in for reference

  • Property mode set to 100644
File size: 1.3 KB
Line 
1
2PREFIX=/usr/local/
3
4#if using debian Woody, you probably want to use gcc-3.0 here
5#CC=gcc-3.0
6CC=gcc
7CFLAGS= -Wall -Wimplicit -Wformat -pipe -g -O3
8
9CFLAGS += -I../include -I$(PREFIX)/include
10CFLAGS += -D_FILE_OFFSET_BITS=64
11LDFLAGS = -L$(PREFIX)/lib/ -lpcap -lz
12
13
14CURRENT=2
15AGE=1
16REVISION=0
17
18.PHONY: all clean distclean install depend
19
20all: libtrace.lo libtrace.la
21
22
23libfifo.lo:     fifo.c
24        libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libfifo.lo
25
26libtrace.lo:    trace.c
27        libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libtrace.lo
28
29libtrace.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
35clean:
36        $(RM) *~ *.o *.a *.lo *.la *.so .libs/*.*
37
38distclean:
39        $(RM) *~ *.o
40
41
42install-profile: libtrace-prof.la
43        libtool --mode=install install -c libtrace-prof.la $(PREFIX)/lib/libtrace-prof.la
44        libtool --finish $(PREFIX)/lib/
45
46install: 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
54docs:
55        cd ..
56        doxygen
57
58# vim: noet ts=8 sw=8
Note: See TracBrowser for help on using the repository browser.