Changeset 76b5ae9


Ignore:
Timestamp:
08/06/04 11:21:53 (16 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:
64ef531
Parents:
724e958
Message:

added PREFIX support to the makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Makefile

    r724e958 r76b5ae9  
     1
     2PREFIX=/usr/local/wand
     3
    14CC=gcc-3.0
    25CFLAGS= -Wall -Wimplicit -Wpedantic -Wformat -pipe -g -O3
    3 PROFCFLAGS= -Wall -Wimplicit -Wformat -pipe -g -pg -fprofile-arcs -a
    46
    5 INCLUDE = -I../include -I/usr/local/wand/include
     7CFLAGS += -I../include -I$(PREFIX)/include
    68CFLAGS += -D_FILE_OFFSET_BITS=64
    7 CFLAGS += $(INCLUDE)
    8 PROFCFLAGS += -D_FILE_OFFSET_BITS=64
    9 PROFCFLAGS += $(INCLUDE)
    10 libdir = -L/usr/local/wand/lib/
    11 LDLIBS = $(libdir) -lpcapl -lzl
     9LDFLAGS = -L$(PREFIX)/lib/ -lpcapl -lzl
    1210
    1311
     
    1614REVISION=0
    1715
    18 INCLIBS=/usr/local/wand/lib/libzl.a /usr/local/wand/lib/libpcapl.a
    19 
    2016.PHONY: all clean distclean install depend
    2117
    2218all: libtrace.lo libtrace.la
    23 
    24 profile: clean libtrace-prof.lo libtrace-prof.la
    25 
    26 libfifo-prof.lo:        fifo.c
    27         libtool --mode=compile $(CC) $(PROFCFLAGS) -c $< -o libfifo-prof.lo
    28 
    29 libtrace-prof.lo:       trace.c
    30         libtool --mode=compile $(CC) $(PROFCFLAGS) -c $< -o libtrace-prof.lo
    31 
    32 libtrace-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 
    3719
    3820
     
    4527libtrace.la:    libtrace.lo libfifo.lo
    4628        libtool --mode=link $(CC) $(CFLAGS) -o libtrace.la \
    47         libtrace.lo libfifo.lo -rpath /usr/local/wand/lib $(LDLIBS) \
     29        libtrace.lo libfifo.lo -rpath $(PREFIX)/lib $(LDLIBS) \
    4830        -version-info $(CURRENT):$(REVISION):$(AGE)
    4931
     
    5739
    5840install-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/
     41        libtool --mode=install install -c libtrace-prof.la $(PREFIX)/lib/libtrace-prof.la
     42        libtool --finish $(PREFIX)/lib/
    6143
    6244install: 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         cp ../include/dagformat.h /usr/local/wand/include/dagformat.h
     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
    6755
    6856# vim: noet ts=8 sw=8
Note: See TracChangeset for help on using the changeset viewer.