1# Makefile for libpcap 2# $Id: Makefile,v 1.1.1.1 1995/01/20 04:13:07 jkh Exp $ 3 4LIB= pcap 5 6SRCS= \ 7 pcap-bpf.c \ 8 pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c savefile.c \ 9 bpf_filter.c bpf_image.c \ 10 grammar.y scanner.l 11 12CLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.c 13# CFLAGS+=-Wall -I. -I${.CURDIR} -DFDDI -Dyylval=pcap_lval 14CFLAGS+=-DFDDI -I. -I${.CURDIR} 15MAN3= pcap.3 16 17beforeinstall: 18 -cmp -s ${.CURDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h.h || \ 19 ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \ 20 ${.CURDIR}/pcap.h ${DESTDIR}/usr/include; ) 21 -cmp -s ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include/pcap-namedb.h || \ 22 ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \ 23 ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include; ) 24 25scanner.o: tokdefs.h 26 27tokdefs.h: grammar.c 28 mv y.tab.h tokdefs.h 29 30 31.include <bsd.lib.mk> 32