Makefile.in (127664) | Makefile.in (146768) |
---|---|
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.96.2.1 2003/12/15 01:42:23 guy Exp $ (LBL) | 20# @(#) $Header: /tcpdump/master/libpcap/Makefile.in,v 1.99 2003/12/15 01:35:03 guy 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@ |
49DYEXT = @DYEXT@ |
|
49 50# Standard CFLAGS 51CFLAGS = $(CCOPT) $(INCLS) $(DEFS) 52 53INSTALL = @INSTALL@ 54INSTALL_PROGRAM = @INSTALL_PROGRAM@ 55INSTALL_DATA = @INSTALL_DATA@ 56RANLIB = @RANLIB@ --- 41 unchanged lines hidden (view full) --- 98 99all: libpcap.a 100 101libpcap.a: $(OBJ) 102 @rm -f $@ 103 ar rc $@ $(OBJ) $(LIBS) 104 $(RANLIB) $@ 105 | 50 51# Standard CFLAGS 52CFLAGS = $(CCOPT) $(INCLS) $(DEFS) 53 54INSTALL = @INSTALL@ 55INSTALL_PROGRAM = @INSTALL_PROGRAM@ 56INSTALL_DATA = @INSTALL_DATA@ 57RANLIB = @RANLIB@ --- 41 unchanged lines hidden (view full) --- 99 100all: libpcap.a 101 102libpcap.a: $(OBJ) 103 @rm -f $@ 104 ar rc $@ $(OBJ) $(LIBS) 105 $(RANLIB) $@ 106 |
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 $@ 115 ld -shared -o $@.`cat VERSION` $(OBJ) 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 124 |
|
106scanner.c: $(srcdir)/scanner.l 107 @rm -f $@ 108 $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@ 109 110scanner.o: scanner.c tokdefs.h 111 $(CC) $(CFLAGS) -c scanner.c 112 113pcap.o: version.h --- 32 unchanged lines hidden (view full) --- 146 147bpf_filter.c: $(srcdir)/bpf/net/bpf_filter.c 148 rm -f bpf_filter.c 149 ln -s $(srcdir)/bpf/net/bpf_filter.c bpf_filter.c 150 151bpf_filter.o: bpf_filter.c 152 $(CC) $(CFLAGS) -c bpf_filter.c 153 | 125scanner.c: $(srcdir)/scanner.l 126 @rm -f $@ 127 $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@ 128 129scanner.o: scanner.c tokdefs.h 130 $(CC) $(CFLAGS) -c scanner.c 131 132pcap.o: version.h --- 32 unchanged lines hidden (view full) --- 165 166bpf_filter.c: $(srcdir)/bpf/net/bpf_filter.c 167 rm -f bpf_filter.c 168 ln -s $(srcdir)/bpf/net/bpf_filter.c bpf_filter.c 169 170bpf_filter.o: bpf_filter.c 171 $(CC) $(CFLAGS) -c bpf_filter.c 172 |
154install: | 173install: libpcap.a |
155 [ -d $(DESTDIR)$(libdir) ] || \ 156 (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir)) 157 $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a 158 $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a 159 [ -d $(DESTDIR)$(includedir) ] || \ 160 (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir)) 161 $(INSTALL_DATA) $(srcdir)/pcap.h $(DESTDIR)$(includedir)/pcap.h 162 $(INSTALL_DATA) $(srcdir)/pcap-bpf.h \ 163 $(DESTDIR)$(includedir)/pcap-bpf.h 164 $(INSTALL_DATA) $(srcdir)/pcap-namedb.h \ 165 $(DESTDIR)$(includedir)/pcap-namedb.h 166 [ -d $(DESTDIR)$(mandir)/man3 ] || \ 167 (mkdir -p $(DESTDIR)$(mandir)/man3; chmod 755 $(DESTDIR)$(mandir)/man3) 168 $(INSTALL_DATA) $(srcdir)/pcap.3 \ 169 $(DESTDIR)$(mandir)/man3/pcap.3 170 | 174 [ -d $(DESTDIR)$(libdir) ] || \ 175 (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir)) 176 $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a 177 $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a 178 [ -d $(DESTDIR)$(includedir) ] || \ 179 (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir)) 180 $(INSTALL_DATA) $(srcdir)/pcap.h $(DESTDIR)$(includedir)/pcap.h 181 $(INSTALL_DATA) $(srcdir)/pcap-bpf.h \ 182 $(DESTDIR)$(includedir)/pcap-bpf.h 183 $(INSTALL_DATA) $(srcdir)/pcap-namedb.h \ 184 $(DESTDIR)$(includedir)/pcap-namedb.h 185 [ -d $(DESTDIR)$(mandir)/man3 ] || \ 186 (mkdir -p $(DESTDIR)$(mandir)/man3; chmod 755 $(DESTDIR)$(mandir)/man3) 187 $(INSTALL_DATA) $(srcdir)/pcap.3 \ 188 $(DESTDIR)$(mandir)/man3/pcap.3 189 |
190install-shared: install-shared-$(DYEXT) 191install-shared-so: libpcap.so 192 $(INSTALL_PROGRAM) libpcap.so.`cat VERSION` $(DESTDIR)$(libdir)/libpcap.so.`cat VERSION` 193install-shared-dylib: libpcap.dylib 194 $(INSTALL_PROGRAM) libpcap.`cat VERSION`.dylib $(DESTDIR)$(libdir)/libpcap.`cat VERSION`.dylib 195 VER=`cat VERSION`; cd $(DESTDIR)$(libdir) && ln -sf libpcap.$$VER.dylib libpcap.0.dylib; ln -sf libpcap.0.dylib libpcap.dylib 196 |
|
171uninstall: 172 rm -f $(DESTDIR)$(libdir)/libpcap.a 173 rm -f $(DESTDIR)$(includedir)/pcap.h 174 rm -f $(DESTDIR)$(includedir)/pcap-bpf.h 175 rm -f $(DESTDIR)$(includedir)/pcap-namedb.h 176 rm -f $(DESTDIR)$(mandir)/man3/pcap.3 177 178clean: | 197uninstall: 198 rm -f $(DESTDIR)$(libdir)/libpcap.a 199 rm -f $(DESTDIR)$(includedir)/pcap.h 200 rm -f $(DESTDIR)$(includedir)/pcap-bpf.h 201 rm -f $(DESTDIR)$(includedir)/pcap-namedb.h 202 rm -f $(DESTDIR)$(mandir)/man3/pcap.3 203 204clean: |
179 rm -f $(CLEANFILES) | 205 rm -f $(CLEANFILES) libpcap*.dylib libpcap.so* |
180 | 206 |
181distclean: 182 rm -f $(CLEANFILES) Makefile config.cache config.log config.status \ | 207distclean: clean 208 rm -f Makefile config.cache config.log config.status \ |
183 config.h gnuc.h os-proto.h bpf_filter.c stamp-h stamp-h.in | 209 config.h gnuc.h os-proto.h bpf_filter.c stamp-h stamp-h.in |
210 rm -rf autom4te.cache |
|
184 185tags: $(TAGFILES) 186 ctags -wtd $(TAGFILES) 187 | 211 212tags: $(TAGFILES) 213 ctags -wtd $(TAGFILES) 214 |
188tar: | 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 219tar: Makefile packaging/pcap.spec |
189 @cwd=`pwd` ; dir=`basename $$cwd` ; name=libpcap-`cat VERSION` ; \ 190 list="" ; tar="tar chf" ; \ 191 for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \ 192 echo \ 193 "rm -f ../$$name; ln -s $$dir ../$$name" ; \ 194 rm -f ../$$name; ln -s $$dir ../$$name ; \ 195 echo \ | 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 \ |
196 "(cd .. ; $$tar - [lots of files]) | compress > /tmp/$$name.tar.Z" ; \ 197 (cd .. ; $$tar - $$list) | compress > /tmp/$$name.tar.Z ; \ | 227 "(cd .. ; $$tar - [lots of files]) | gzip -c > /tmp/$$name.tar.gz" ; \ 228 (cd .. ; $$tar - $$list) | gzip -c > /tmp/$$name.tar.gz ; \ |
198 echo \ 199 "rm -f ../$$name" ; \ 200 rm -f ../$$name 201 202depend: $(GENSRC) $(GENHDR) bpf_filter.c 203 ./mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC) | 229 echo \ 230 "rm -f ../$$name" ; \ 231 rm -f ../$$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 |
|