Changeset 9135f43


Ignore:
Timestamp:
05/06/04 10:36:44 (17 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
167adf2
Parents:
2c060e3
Message:

added versioning information to the Makefil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Makefile

    r2c060e3 r9135f43  
    55CFLAGS += -D_FILE_OFFSET_BITS=64
    66CFLAGS += $(INCLUDE)
    7 LDFLAGS = -L/usr/local/wand/lib/
    8 LDLIBS = $(LDFLAGS) -lpcapl -lzl
     7libdir = -L/usr/local/wand/lib/
     8LDLIBS = $(libdir) -lpcapl -lzl
    99
    1010
    11 LIBRT=libtrace.so
    12 LIBRTM=libtrace.so.1
    13 LIBRTV=libtrace.so.1.0.6
     11CURRENT=1
     12REVISION=1
     13AGE=0
    1414
    1515INCLIBS=/usr/local/wand/lib/libzl.a /usr/local/wand/lib/libpcapl.a
     
    2727
    2828libtrace.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 
    31 libtrace.so: trace.o fifo.o
    32         gcc -shared -Wl,-soname,$(LIBRTM) -o $(LIBRTV) $^ $(INCLIBS) $(LDFLAGS)
    33 
    34 libtrace.a: libtrace.a(trace.o) libtrace.a(fifo.o)
     29        libtool --mode=link $(CC) $(CFLAGS) -o libtrace.la \
     30        libtrace.lo libfifo.lo -rpath /usr/local/wand/lib $(LDLIBS) \
     31        -version-info $(CURRENT):$(REVISION):$(AGE)
    3532
    3633
    3734clean:
    38         $(RM) *~ *.o libtrace.a *.lo *.la libtrace.so.* .libs/*
     35        $(RM) *~ *.o libtrace.a *.lo *.la libtrace.so.* .libs/*.*
    3936
    4037distclean:
    4138        $(RM) *~ *.o
    4239
    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
    5140
    5241install: libtrace.la
     
    5443        libtool --finish /usr/local/wand/lib/
    5544        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/
    5845
    5946# vim: noet ts=8 sw=8
Note: See TracChangeset for help on using the changeset viewer.