xref: /freebsd/lib/libpcap/Makefile (revision 8a695f765cb666712b9029b2a97b1ab80f2e8fa3)
1609c8587SJordan K. Hubbard# Makefile for libpcap
28a695f76SAndras Olah# $Id: Makefile,v 1.1.1.1 1995/01/20 04:13:07 jkh Exp $
3609c8587SJordan K. Hubbard
4609c8587SJordan K. HubbardLIB=    pcap
5609c8587SJordan K. Hubbard
6609c8587SJordan K. HubbardSRCS=	\
7609c8587SJordan K. Hubbard        pcap-bpf.c \
8609c8587SJordan K. Hubbard        pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c savefile.c \
9609c8587SJordan K. Hubbard        bpf_filter.c bpf_image.c \
108a695f76SAndras Olah        grammar.y scanner.l
11609c8587SJordan K. Hubbard
12609c8587SJordan K. HubbardCLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.c
138a695f76SAndras Olah# CFLAGS+=-Wall -I. -I${.CURDIR} -DFDDI -Dyylval=pcap_lval
148a695f76SAndras OlahCFLAGS+=-DFDDI -I. -I${.CURDIR}
15609c8587SJordan K. HubbardMAN3=	pcap.3
16609c8587SJordan K. Hubbard
17609c8587SJordan K. Hubbardbeforeinstall:
18609c8587SJordan K. Hubbard	-cmp -s ${.CURDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h.h || \
19609c8587SJordan K. Hubbard	  ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
20609c8587SJordan K. Hubbard	    ${.CURDIR}/pcap.h ${DESTDIR}/usr/include; )
21609c8587SJordan K. Hubbard	-cmp -s ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include/pcap-namedb.h || \
22609c8587SJordan K. Hubbard	  ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
23609c8587SJordan K. Hubbard	    ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include; )
24609c8587SJordan K. Hubbard
258a695f76SAndras Olahscanner.o: tokdefs.h
26609c8587SJordan K. Hubbard
27609c8587SJordan K. Hubbardtokdefs.h: grammar.c
28609c8587SJordan K. Hubbard	mv y.tab.h tokdefs.h
29609c8587SJordan K. Hubbard
30609c8587SJordan K. Hubbard
31609c8587SJordan K. Hubbard.include <bsd.lib.mk>
32