aboutsummaryrefslogtreecommitdiff
path: root/libpcap/Makefile.am
blob: e3c60d5a7cf554c23d675a72538da06c7e566d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
noinst_LIBRARIES=libpcap.a
libpcap_a_SOURCES=pcap.c inet.c gencode.c optimize.c nametoaddr.c \
	        etherent.c savefile.c bpf_filter.c bpf_image.c \
                grammar.c scanner.c \
                pcap-@V_PCAP@.c
noinst_HEADERS=pcap.h pcap-int.h pcap-namedb.h pcap-nit.h pcap-pf.h \
	ethertype.h gencode.h ppp.h tokdefs.h 
INCLUDES = -I$(srcdir)/lbl @INCLUDES@
man_MANS=pcap.3

PCAP_SRC= pcap-bpf.c pcap-dlpi.c pcap-enet.c pcap-linux.c \
          pcap-nit.c pcap-null.c pcap-pf.c pcap-snit.c pcap-snoop.c

BUILT_SOURCES=grammar.c scanner.c
EXTRA_DIST=grammar.y scanner.l $(BUILT_SOURCES) tokdefs.h \
           linux-include CHANGES FILES \
           README VERSION $(PCAP_SRC) lbl net $(man_MANS) \
           COPYING

YLWRAP=$(SHELL) $(top_srcdir)/ylwrap
CLEANFILES=lex.yy.c y.tab.c y.tab.h

grammar.c tokdefs.h: $(srcdir)/grammar.y
	$(YLWRAP) "$(YACC)" $(srcdir)/grammar.y \
                  y.tab.c grammar.c y.tab.h tokdefs.h \
                  -- -yy pcap_ -vd 

scanner.c: $(srcdir)/scanner.l
	$(YLWRAP) "$(LEX)" $(srcdir)/scanner.l \
		  lex.yy.c scanner.c -- -yy pcap_

Return to:

Send suggestions and report system problems to the System administrator.