Changeset 6ad8afc


Ignore:
Timestamp:
08/10/04 12:55:56 (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:
47accf2
Parents:
1bbf3ee
Message:

adding common.h

Location:
lib
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Makefile

    rcf86a61 r6ad8afc  
    1 
    2 PREFIX=/usr/local/
    3 
    4 #if using debian Woody, you probably want to use gcc-3.0 here
    5 #CC=gcc-3.0
    6 CC=gcc
    7 CFLAGS= -Wall -Wimplicit -Wformat -pipe -g -O3
    8 
    9 CFLAGS += -I../include -I$(PREFIX)/include
    10 CFLAGS += -D_FILE_OFFSET_BITS=64
    11 LDFLAGS = -L$(PREFIX)/lib/ -lpcap -lz
    12 
    13 
    14 CURRENT=2
    15 AGE=1
    16 REVISION=0
    17 
    18 .PHONY: all clean distclean install depend
    19 
    20 all: libtrace.lo libtrace.la
    21 
    22 
    23 libfifo.lo:     fifo.c
    24         libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libfifo.lo
    25 
    26 libtrace.lo:    trace.c
    27         libtool --mode=compile $(CC) $(CFLAGS) -c $< -o libtrace.lo
    28 
    29 libtrace.la:    libtrace.lo libfifo.lo
    30         libtool --mode=link $(CC) $(CFLAGS) -o libtrace.la \
    31         libtrace.lo libfifo.lo -rpath $(PREFIX)/lib $(LDFLAGS) \
    32         -version-info $(CURRENT):$(REVISION):$(AGE)
    33 
    34 
    35 clean:
    36         $(RM) *~ *.o *.a *.lo *.la *.so .libs/*.*
    37 
    38 distclean:
    39         $(RM) *~ *.o
    40 
    41 
    42 install-profile: libtrace-prof.la
    43         libtool --mode=install install -c libtrace-prof.la $(PREFIX)/lib/libtrace-prof.la
    44         libtool --finish $(PREFIX)/lib/
    45 
    46 install: libtrace.la
    47         mkdir -p $(PREFIX)/lib
    48         libtool --mode=install install -c libtrace.la $(PREFIX)/lib/libtrace.la
    49         libtool --finish $(PREFIX)/lib/
    50         mkdir -p $(PREFIX)/include
    51         cp ../include/libtrace.h $(PREFIX)/include/libtrace.h
    52         cp ../include/dagformat.h $(PREFIX)/include/dagformat.h
    53 
    54 docs:
    55         cd ..
    56         doxygen
    57 
    58 # vim: noet ts=8 sw=8
     1# Makefile.in generated automatically by automake 1.5 from Makefile.am.
     2
     3# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     4# Free Software Foundation, Inc.
     5# This Makefile.in is free software; the Free Software Foundation
     6# gives unlimited permission to copy and/or distribute it,
     7# with or without modifications, as long as this notice is preserved.
     8
     9# This program is distributed in the hope that it will be useful,
     10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     12# PARTICULAR PURPOSE.
     13
     14
     15
     16SHELL = /bin/sh
     17
     18srcdir = .
     19top_srcdir = ..
     20
     21prefix = /usr/local
     22exec_prefix = ${prefix}
     23
     24bindir = ${exec_prefix}/bin
     25sbindir = ${exec_prefix}/sbin
     26libexecdir = ${exec_prefix}/libexec
     27datadir = ${prefix}/share
     28sysconfdir = ${prefix}/etc
     29sharedstatedir = ${prefix}/com
     30localstatedir = ${prefix}/var
     31libdir = ${exec_prefix}/lib
     32infodir = ${prefix}/info
     33mandir = ${prefix}/man
     34includedir = ${prefix}/include
     35oldincludedir = /usr/include
     36pkgdatadir = $(datadir)/libtrace
     37pkglibdir = $(libdir)/libtrace
     38pkgincludedir = $(includedir)/libtrace
     39top_builddir = ..
     40
     41ACLOCAL = ${SHELL} /home/daniel/libtrace/missing --run aclocal
     42AUTOCONF = ${SHELL} /home/daniel/libtrace/missing --run autoconf
     43AUTOMAKE = ${SHELL} /home/daniel/libtrace/missing --run automake
     44AUTOHEADER = ${SHELL} /home/daniel/libtrace/missing --run autoheader
     45
     46INSTALL = /bin/install -c
     47INSTALL_PROGRAM = ${INSTALL}
     48INSTALL_DATA = ${INSTALL} -m 644
     49INSTALL_SCRIPT = ${INSTALL}
     50INSTALL_HEADER = $(INSTALL_DATA)
     51transform = s,x,x,
     52NORMAL_INSTALL = :
     53PRE_INSTALL = :
     54POST_INSTALL = :
     55NORMAL_UNINSTALL = :
     56PRE_UNINSTALL = :
     57POST_UNINSTALL = :
     58host_alias =
     59host_triplet = i686-pc-linux-gnu
     60AMTAR = ${SHELL} /home/daniel/libtrace/missing --run tar
     61AR = ar
     62AS = @AS@
     63AWK = gawk
     64CC = gcc
     65CXX = g++
     66CXXCPP = g++ -E
     67DEPDIR = .deps
     68DLLTOOL = @DLLTOOL@
     69ECHO = echo
     70EGREP = grep -E
     71EXEEXT =
     72F77 =
     73GCJ = @GCJ@
     74GCJFLAGS = @GCJFLAGS@
     75INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
     76LIBTOOL = $(SHELL) $(top_builddir)/libtool
     77LN_S = ln -s
     78OBJDUMP = @OBJDUMP@
     79OBJEXT = o
     80PACKAGE = libtrace
     81RANLIB = ranlib
     82RC = @RC@
     83STRIP = strip
     84VERSION = 1.1.0
     85am__include = include
     86am__quote =
     87install_sh = /home/daniel/libtrace/install-sh
     88
     89lib_LTLIBRARIES = libtrace.la
     90libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h
     91lib_HEADERS = libtrace.h dagformat.h wag.h
     92libtrace_la_LIBADD = -lpcap -lz
     93libtrace_la_LDFLAGS = -version-info=2:1:0
     94subdir = lib
     95mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
     96CONFIG_HEADER = $(top_builddir)/config.h
     97CONFIG_CLEAN_FILES =
     98LTLIBRARIES = $(lib_LTLIBRARIES)
     99
     100libtrace_la_DEPENDENCIES =
     101am_libtrace_la_OBJECTS = trace.lo fifo.lo
     102libtrace_la_OBJECTS = $(am_libtrace_la_OBJECTS)
     103
     104DEFS = -DHAVE_CONFIG_H
     105DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
     106CPPFLAGS =
     107LDFLAGS =
     108LIBS = -lz -lpcap
     109depcomp = $(SHELL) $(top_srcdir)/depcomp
     110DEP_FILES = $(DEPDIR)/fifo.Plo $(DEPDIR)/trace.Plo
     111COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
     112        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     113LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
     114        $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     115CCLD = $(CC)
     116LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
     117        $(AM_LDFLAGS) $(LDFLAGS) -o $@
     118CFLAGS = -g -O2
     119DIST_SOURCES = $(libtrace_la_SOURCES)
     120HEADERS = $(lib_HEADERS)
     121
     122DIST_COMMON = $(lib_HEADERS) Makefile.am Makefile.in
     123SOURCES = $(libtrace_la_SOURCES)
     124
     125all: all-am
     126
     127.SUFFIXES:
     128.SUFFIXES: .c .lo .o .obj
     129
     130mostlyclean-libtool:
     131        -rm -f *.lo
     132
     133clean-libtool:
     134        -rm -rf .libs _libs
     135
     136distclean-libtool:
     137        -rm -f libtool
     138$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
     139        cd $(top_srcdir) && \
     140          $(AUTOMAKE) --gnu  lib/Makefile
     141Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
     142        cd $(top_builddir) && \
     143          CONFIG_HEADERS= CONFIG_LINKS= \
     144          CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
     145install-libLTLIBRARIES: $(lib_LTLIBRARIES)
     146        @$(NORMAL_INSTALL)
     147        $(mkinstalldirs) $(DESTDIR)$(libdir)
     148        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     149          if test -f $$p; then \
     150            echo " $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p"; \
     151            $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p; \
     152          else :; fi; \
     153        done
     154
     155uninstall-libLTLIBRARIES:
     156        @$(NORMAL_UNINSTALL)
     157        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     158          echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
     159          $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
     160        done
     161
     162clean-libLTLIBRARIES:
     163        -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
     164libtrace.la: $(libtrace_la_OBJECTS) $(libtrace_la_DEPENDENCIES)
     165        $(LINK) -rpath $(libdir) $(libtrace_la_LDFLAGS) $(libtrace_la_OBJECTS) $(libtrace_la_LIBADD) $(LIBS)
     166
     167mostlyclean-compile:
     168        -rm -f *.$(OBJEXT) core *.core
     169
     170distclean-compile:
     171        -rm -f *.tab.c
     172
     173include $(DEPDIR)/fifo.Plo
     174include $(DEPDIR)/trace.Plo
     175
     176distclean-depend:
     177        -rm -rf $(DEPDIR)
     178
     179.c.o:
     180        source='$<' object='$@' libtool=no \
     181        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
     182        $(CCDEPMODE) $(depcomp) \
     183        $(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<
     184
     185.c.obj:
     186        source='$<' object='$@' libtool=no \
     187        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
     188        $(CCDEPMODE) $(depcomp) \
     189        $(COMPILE) -c `cygpath -w $<`
     190
     191.c.lo:
     192        source='$<' object='$@' libtool=yes \
     193        depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' \
     194        $(CCDEPMODE) $(depcomp) \
     195        $(LTCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
     196CCDEPMODE = depmode=gcc3
     197uninstall-info-am:
     198install-libHEADERS: $(lib_HEADERS)
     199        @$(NORMAL_INSTALL)
     200        $(mkinstalldirs) $(DESTDIR)$(libdir)
     201        @list='$(lib_HEADERS)'; for p in $$list; do \
     202          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     203          f="`echo $$p | sed -e 's|^.*/||'`"; \
     204          echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(libdir)/$$f"; \
     205          $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(libdir)/$$f; \
     206        done
     207
     208uninstall-libHEADERS:
     209        @$(NORMAL_UNINSTALL)
     210        @list='$(lib_HEADERS)'; for p in $$list; do \
     211          f="`echo $$p | sed -e 's|^.*/||'`"; \
     212          echo " rm -f $(DESTDIR)$(libdir)/$$f"; \
     213          rm -f $(DESTDIR)$(libdir)/$$f; \
     214        done
     215
     216tags: TAGS
     217
     218ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     219        list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
     220        unique=`for i in $$list; do \
     221            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     222          done | \
     223          $(AWK) '    { files[$$0] = 1; } \
     224               END { for (i in files) print i; }'`; \
     225        mkid -fID $$unique $(LISP)
     226
     227TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     228                $(TAGS_FILES) $(LISP)
     229        tags=; \
     230        here=`pwd`; \
     231        list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
     232        unique=`for i in $$list; do \
     233            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     234          done | \
     235          $(AWK) '    { files[$$0] = 1; } \
     236               END { for (i in files) print i; }'`; \
     237        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     238          || etags $(ETAGS_ARGS) $$tags  $$unique $(LISP)
     239
     240GTAGS:
     241        here=`CDPATH=: && cd $(top_builddir) && pwd` \
     242          && cd $(top_srcdir) \
     243          && gtags -i $(GTAGS_ARGS) $$here
     244
     245distclean-tags:
     246        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
     247
     248DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
     249
     250top_distdir = ..
     251distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
     252
     253distdir: $(DISTFILES)
     254        @for file in $(DISTFILES); do \
     255          if test -f $$file; then d=.; else d=$(srcdir); fi; \
     256          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
     257          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
     258            $(mkinstalldirs) "$(distdir)/$$dir"; \
     259          fi; \
     260          if test -d $$d/$$file; then \
     261            cp -pR $$d/$$file $(distdir) \
     262            || exit 1; \
     263          else \
     264            test -f $(distdir)/$$file \
     265            || cp -p $$d/$$file $(distdir)/$$file \
     266            || exit 1; \
     267          fi; \
     268        done
     269check-am: all-am
     270check: check-am
     271all-am: Makefile $(LTLIBRARIES) $(HEADERS)
     272
     273installdirs:
     274        $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)
     275
     276install: install-am
     277install-exec: install-exec-am
     278install-data: install-data-am
     279uninstall: uninstall-am
     280
     281install-am: all-am
     282        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     283
     284installcheck: installcheck-am
     285install-strip:
     286        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
     287          `test -z '$(STRIP)' || \
     288            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
     289mostlyclean-generic:
     290
     291clean-generic:
     292
     293distclean-generic:
     294        -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
     295
     296maintainer-clean-generic:
     297        @echo "This command is intended for maintainers to use"
     298        @echo "it deletes files that may require special tools to rebuild."
     299clean: clean-am
     300
     301clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
     302        mostlyclean-am
     303
     304distclean: distclean-am
     305
     306distclean-am: clean-am distclean-compile distclean-depend \
     307        distclean-generic distclean-libtool distclean-tags
     308
     309dvi: dvi-am
     310
     311dvi-am:
     312
     313info: info-am
     314
     315info-am:
     316
     317install-data-am:
     318
     319install-exec-am: install-libHEADERS install-libLTLIBRARIES
     320
     321install-info: install-info-am
     322
     323install-man:
     324
     325installcheck-am:
     326
     327maintainer-clean: maintainer-clean-am
     328
     329maintainer-clean-am: distclean-am maintainer-clean-generic
     330
     331mostlyclean: mostlyclean-am
     332
     333mostlyclean-am: mostlyclean-compile mostlyclean-generic \
     334        mostlyclean-libtool
     335
     336uninstall-am: uninstall-info-am uninstall-libHEADERS \
     337        uninstall-libLTLIBRARIES
     338
     339.PHONY: GTAGS all all-am check check-am clean clean-generic \
     340        clean-libLTLIBRARIES clean-libtool distclean distclean-compile \
     341        distclean-depend distclean-generic distclean-libtool \
     342        distclean-tags distdir dvi dvi-am info info-am install \
     343        install-am install-data install-data-am install-exec \
     344        install-exec-am install-info install-info-am install-libHEADERS \
     345        install-libLTLIBRARIES install-man install-strip installcheck \
     346        installcheck-am installdirs maintainer-clean \
     347        maintainer-clean-generic mostlyclean mostlyclean-compile \
     348        mostlyclean-generic mostlyclean-libtool tags uninstall \
     349        uninstall-am uninstall-info-am uninstall-libHEADERS \
     350        uninstall-libLTLIBRARIES
     351
     352# Tell versions [3.59,3.63) of GNU make to not export all variables.
     353# Otherwise a system limit (for SysV at least) may be exceeded.
     354.NOEXPORT:
Note: See TracChangeset for help on using the changeset viewer.