mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
32 lines
887 B
Makefile
32 lines
887 B
Makefile
# Makefile for libpcap
|
|
# $Id: Makefile,v 1.2 1995/02/21 10:46:25 olah Exp $
|
|
|
|
LIB= pcap
|
|
|
|
SRCS= \
|
|
pcap-bpf.c \
|
|
pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c savefile.c \
|
|
bpf_filter.c bpf_image.c \
|
|
grammar.y scanner.l
|
|
|
|
CLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.c
|
|
# CFLAGS+=-Wall -I. -I${.CURDIR} -DFDDI -Dyylval=pcap_lval
|
|
CFLAGS+=-DFDDI -I. -I${.CURDIR}
|
|
MAN3= pcap.3
|
|
|
|
beforeinstall:
|
|
-cmp -s ${.CURDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h || \
|
|
( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
${.CURDIR}/pcap.h ${DESTDIR}/usr/include; )
|
|
-cmp -s ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include/pcap-namedb.h || \
|
|
( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include; )
|
|
|
|
scanner.o: tokdefs.h
|
|
|
|
tokdefs.h: grammar.c
|
|
mv y.tab.h tokdefs.h
|
|
|
|
|
|
.include <bsd.lib.mk>
|