source: lib/Makefile @ 724e958

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

fixed Makefile to install dagformat.h correctly

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[2c060e3]1CC=gcc-3.0
[2137b49]2CFLAGS= -Wall -Wimplicit -Wpedantic -Wformat -pipe -g -O3
[be54c88]3PROFCFLAGS= -Wall -Wimplicit -Wformat -pipe -g -pg -fprofile-arcs -a
[2c060e3]4
5INCLUDE = -I../include -I/usr/local/wand/include
6CFLAGS += -D_FILE_OFFSET_BITS=64
7CFLAGS += $(INCLUDE)
[be54c88]8PROFCFLAGS += -D_FILE_OFFSET_BITS=64
9PROFCFLAGS += $(INCLUDE)
[9135f43]10libdir = -L/usr/local/wand/lib/
11LDLIBS = $(libdir) -lpcapl -lzl
[2c060e3]12
13
[2137b49]14CURRENT=2
15AGE=1
16REVISION=0
[2c060e3]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
[be54c88]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
[2c060e3]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
[9135f43]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)
[2c060e3]49
50
51clean:
[be54c88]52        $(RM) *~ *.o *.a *.lo *.la *.so .libs/*.*
[2c060e3]53
54distclean:
55        $(RM) *~ *.o
56
57
[be54c88]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
[2c060e3]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
[724e958]66        cp ../include/dagformat.h /usr/local/wand/include/dagformat.h
[2c060e3]67
68# vim: noet ts=8 sw=8
Note: See TracBrowser for help on using the repository browser.