Deleted Added
full compact
Makefile.in (146768) Makefile.in (172677)
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#
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 2003/12/15 01:35:03 guy Exp $ (LBL)
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@
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@
49DYEXT = @DYEXT@
50DYEXT = @DYEXT@
51PROG=libpcap
50
51# Standard CFLAGS
52CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
53
54INSTALL = @INSTALL@
55INSTALL_PROGRAM = @INSTALL_PROGRAM@
56INSTALL_DATA = @INSTALL_DATA@
57RANLIB = @RANLIB@

--- 49 unchanged lines hidden (view full) ---

107shared: libpcap.$(DYEXT)
108
109#
110# XXX - this works with GNU ld, but won't necessarily work with native
111# ld on, for example, various SVR4-flavored platforms, or Digital UNIX.
112#
113libpcap.so: $(OBJ)
114 @rm -f $@
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 $@
115 ld -shared -o $@.`cat VERSION` $(OBJ)
117 $(CC) -shared -o $@.`cat VERSION` $(OBJ) $(DAGLIBS)
116
117# the following rule succeeds, but the result is untested.
118libpcap.dylib: $(OBJ)
119 rm -f libpcap*.dylib
120 $(CC) -dynamiclib -undefined error -o libpcap.`cat VERSION`.dylib $(OBJ) \
121 -install_name $(libdir)/libpcap.0.dylib -compatibility_version `cat VERSION` \
122 -current_version `cat VERSION`
123

--- 87 unchanged lines hidden (view full) ---

211
212tags: $(TAGFILES)
213 ctags -wtd $(TAGFILES)
214
215packaging/pcap.spec: packaging/pcap.spec.in VERSION
216 RPMVERSION=`cat VERSION | sed s/-.*//g`; \
217 sed -e s/@VERSION@/$$RPMVERSION/ -e s/@NAME@/libpcap-`cat VERSION`/ $< > $@
218
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
219tar: Makefile packaging/pcap.spec
220 @cwd=`pwd` ; dir=`basename $$cwd` ; name=libpcap-`cat VERSION` ; \
221 list="" ; tar="tar chf" ; \
222 for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
223 echo \
224 "rm -f ../$$name; ln -s $$dir ../$$name" ; \
225 rm -f ../$$name; ln -s $$dir ../$$name ; \
226 echo \
227 "(cd .. ; $$tar - [lots of files]) | gzip -c > /tmp/$$name.tar.gz" ; \
228 (cd .. ; $$tar - $$list) | gzip -c > /tmp/$$name.tar.gz ; \
229 echo \
230 "rm -f ../$$name" ; \
231 rm -f ../$$name
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/. ;
232
233depend: $(GENSRC) $(GENHDR) bpf_filter.c
234 ./mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)
235
236Makefile: Makefile.in config.status
237 ./config.status
238 @echo your Makefile was out of date, now run $(MAKE) again
239 exit 1
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