1# Copyright (c) 1993, 1994, 1995, 1996 2# The Regents of the University of California. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that: (1) source code distributions 6# retain the above copyright notice and this paragraph in its entirety, (2) 7# distributions including binary code include the above copyright notice and 8# this paragraph in its entirety in the documentation or other materials 9# provided with the distribution, and (3) all advertising materials mentioning 10# features or use of this software display the following acknowledgement: 11# ``This product includes software developed by the University of California, 12# Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 13# the University nor the names of its contributors may be used to endorse 14# or promote products derived from this software without specific prior 15# written permission. 16# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 17# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 18# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19# |
20# @(#) $Header: /tcpdump/master/libpcap/Makefile.in,v 1.99.2.2 2007/07/24 02:35:15 mcr Exp $ (LBL) |
21 22# 23# Various configurable paths (remember to edit Makefile.in, not Makefile) 24# 25 26# Top level hierarchy 27prefix = @prefix@ 28exec_prefix = @exec_prefix@ --- 12 unchanged lines hidden (view full) --- 41# You shouldn't need to edit anything below. 42# 43 44CC = @CC@ 45CCOPT = @V_CCOPT@ 46INCLS = -I. @V_INCLS@ 47DEFS = @DEFS@ @V_DEFS@ 48LIBS = @V_LIBS@ |
49DAGLIBS = @DAGLIBS@ |
50DYEXT = @DYEXT@ |
51PROG=libpcap |
52 53# Standard CFLAGS 54CFLAGS = $(CCOPT) $(INCLS) $(DEFS) 55 56INSTALL = @INSTALL@ 57INSTALL_PROGRAM = @INSTALL_PROGRAM@ 58INSTALL_DATA = @INSTALL_DATA@ 59RANLIB = @RANLIB@ --- 49 unchanged lines hidden (view full) --- 109shared: libpcap.$(DYEXT) 110 111# 112# XXX - this works with GNU ld, but won't necessarily work with native 113# ld on, for example, various SVR4-flavored platforms, or Digital UNIX. 114# 115libpcap.so: $(OBJ) 116 @rm -f $@ |
117 $(CC) -shared -o $@.`cat VERSION` $(OBJ) $(DAGLIBS) |
118 119# the following rule succeeds, but the result is untested. 120libpcap.dylib: $(OBJ) 121 rm -f libpcap*.dylib 122 $(CC) -dynamiclib -undefined error -o libpcap.`cat VERSION`.dylib $(OBJ) \ 123 -install_name $(libdir)/libpcap.0.dylib -compatibility_version `cat VERSION` \ 124 -current_version `cat VERSION` 125 --- 87 unchanged lines hidden (view full) --- 213 214tags: $(TAGFILES) 215 ctags -wtd $(TAGFILES) 216 217packaging/pcap.spec: packaging/pcap.spec.in VERSION 218 RPMVERSION=`cat VERSION | sed s/-.*//g`; \ 219 sed -e s/@VERSION@/$$RPMVERSION/ -e s/@NAME@/libpcap-`cat VERSION`/ $< > $@ 220 |
221releasetar: 222 @cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \ 223 list="" ; make distclean; cd ..; mkdir -p n; cd n; ln -s ../$$dir $$name; \ 224 tar -c -z -f $$name.tar.gz $$name/. ; |
225 226depend: $(GENSRC) $(GENHDR) bpf_filter.c 227 ./mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC) 228 229Makefile: Makefile.in config.status 230 ./config.status 231 @echo your Makefile was out of date, now run $(MAKE) again 232 exit 1 |