source: lib/Makefile @ a257602

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

removed some bad debugging stuff i left in. assert(0) doesn't play nice in random places

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