source: lib/Makefile @ 76b5ae9

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

added PREFIX support to the makefile

  • Property mode set to 100644
File size: 1.2 KB
Line 
1
2PREFIX=/usr/local/wand
3
4CC=gcc-3.0
5CFLAGS= -Wall -Wimplicit -Wpedantic -Wformat -pipe -g -O3
6
7CFLAGS += -I../include -I$(PREFIX)/include
8CFLAGS += -D_FILE_OFFSET_BITS=64
9LDFLAGS = -L$(PREFIX)/lib/ -lpcapl -lzl
10
11
12CURRENT=2
13AGE=1
14REVISION=0
15
16.PHONY: all clean distclean install depend
17
18all: libtrace.lo libtrace.la
19
20
21libfifo.lo:     fifo.c
22        libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libfifo.lo
23
24libtrace.lo:    trace.c
25        libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libtrace.lo
26
27libtrace.la:    libtrace.lo libfifo.lo
28        libtool --mode=link $(CC) $(CFLAGS) -o libtrace.la \
29        libtrace.lo libfifo.lo -rpath $(PREFIX)/lib $(LDLIBS) \
30        -version-info $(CURRENT):$(REVISION):$(AGE)
31
32
33clean:
34        $(RM) *~ *.o *.a *.lo *.la *.so .libs/*.*
35
36distclean:
37        $(RM) *~ *.o
38
39
40install-profile: libtrace-prof.la
41        libtool --mode=install install -c libtrace-prof.la $(PREFIX)/lib/libtrace-prof.la
42        libtool --finish $(PREFIX)/lib/
43
44install: libtrace.la
45        mkdir -p $(PREFIX)/lib
46        libtool --mode=install install -c libtrace.la $(PREFIX)/lib/libtrace.la
47        libtool --finish $(PREFIX)/lib/
48        mkdir -p $(PREFIX)/include
49        cp ../include/libtrace.h $(PREFIX)/include/libtrace.h
50        cp ../include/dagformat.h $(PREFIX)/include/dagformat.h
51
52docs:
53        cd ..
54        doxygen
55
56# vim: noet ts=8 sw=8
Note: See TracBrowser for help on using the repository browser.