source: lib/Makefile @ 2c060e3

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 
1CC=gcc-3.0
2CFLAGS= -Wall -Wimplicit -Wformat -pipe -g -O3
3
4INCLUDE = -I../include -I/usr/local/wand/include
5CFLAGS += -D_FILE_OFFSET_BITS=64
6CFLAGS += $(INCLUDE)
7LDFLAGS = -L/usr/local/wand/lib/
8LDLIBS = $(LDFLAGS) -lpcapl -lzl
9
10
11LIBRT=libtrace.so
12LIBRTM=libtrace.so.1
13LIBRTV=libtrace.so.1.0.6
14
15INCLIBS=/usr/local/wand/lib/libzl.a /usr/local/wand/lib/libpcapl.a
16
17.PHONY: all clean distclean install depend
18
19all: libtrace.lo libtrace.la
20
21
22libfifo.lo:     fifo.c
23        libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libfifo.lo
24
25libtrace.lo:    trace.c
26        libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libtrace.lo
27
28libtrace.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
31libtrace.so: trace.o fifo.o
32        gcc -shared -Wl,-soname,$(LIBRTM) -o $(LIBRTV) $^ $(INCLIBS) $(LDFLAGS) 
33
34libtrace.a: libtrace.a(trace.o) libtrace.a(fifo.o)
35
36
37clean:
38        $(RM) *~ *.o libtrace.a *.lo *.la libtrace.so.* .libs/*
39
40distclean:
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
52install: 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.