Deleted Added
full compact
Makefile.in (17683) Makefile.in (26175)
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: Makefile.in,v 1.67 96/07/23 22:59:40 leres Exp $ (LBL)
20# @(#) $Header: Makefile.in,v 1.68 96/09/26 21:53:37 leres 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@
29# Pathname of directory to install the include files
30INCLDEST = @includedir@
31# Pathname of directory to install the library
32LIBDEST = @libdir@
33# Pathname of directory to install the man page
34MANDEST = @mandir@
35
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@
29# Pathname of directory to install the include files
30INCLDEST = @includedir@
31# Pathname of directory to install the library
32LIBDEST = @libdir@
33# Pathname of directory to install the man page
34MANDEST = @mandir@
35
36# VPATH
37srcdir = @srcdir@
38VPATH = @srcdir@
39
36#
37# You shouldn't need to edit anything below.
38#
39
40CC = @CC@
41CCOPT = @V_CCOPT@
42INCLS = -I. @V_INCLS@
43DEFS = @DEFS@

--- 12 unchanged lines hidden (view full) ---

56LEX = @V_LEX@
57YACC = @V_YACC@
58
59# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
60# Also, gcc does not remove the .o before forking 'as', which can be a
61# problem if you don't own the file but can write to the directory.
62.c.o:
63 @rm -f $@
40#
41# You shouldn't need to edit anything below.
42#
43
44CC = @CC@
45CCOPT = @V_CCOPT@
46INCLS = -I. @V_INCLS@
47DEFS = @DEFS@

--- 12 unchanged lines hidden (view full) ---

60LEX = @V_LEX@
61YACC = @V_YACC@
62
63# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
64# Also, gcc does not remove the .o before forking 'as', which can be a
65# problem if you don't own the file but can write to the directory.
66.c.o:
67 @rm -f $@
64 $(CC) $(CFLAGS) -c $*.c
68 $(CC) $(CFLAGS) -c $(srcdir)/$*.c
65
66PSRC = pcap-@V_PCAP@.c
67CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c \
68 etherent.c savefile.c bpf_filter.c bpf_image.c
69GENSRC = scanner.c grammar.c
70
71SRC = $(PSRC) $(CSRC) $(GENSRC)
72

--- 9 unchanged lines hidden (view full) ---

82 bpf/net/bpf.h
83
84TAGFILES = \
85 $(SRC) $(HDR) $(TAGHDR)
86
87CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
88
89libpcap.a: $(OBJ)
69
70PSRC = pcap-@V_PCAP@.c
71CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c \
72 etherent.c savefile.c bpf_filter.c bpf_image.c
73GENSRC = scanner.c grammar.c
74
75SRC = $(PSRC) $(CSRC) $(GENSRC)
76

--- 9 unchanged lines hidden (view full) ---

86 bpf/net/bpf.h
87
88TAGFILES = \
89 $(SRC) $(HDR) $(TAGHDR)
90
91CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
92
93libpcap.a: $(OBJ)
90 rm -f libpcap.a
94 @rm -f $@
91 ar rc $@ $(OBJ)
92 $(RANLIB) $@
93
95 ar rc $@ $(OBJ)
96 $(RANLIB) $@
97
94scanner.c: scanner.l
95 rm -f $@; $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
98scanner.c: $(srcdir)/scanner.l
99 @rm -f $@
100 $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
96
97scanner.o: scanner.c tokdefs.h
101
102scanner.o: scanner.c tokdefs.h
98 rm -f $@; $(CC) $(CFLAGS) -c $*.c
99
100tokdefs.h: grammar.c
103tokdefs.h: grammar.c
101grammar.c: grammar.y
102 rm -f grammar.c tokdefs.h
104grammar.c: $(srcdir)/grammar.y
105 @rm -f grammar.c tokdefs.h
103 $(YACC) -d $<
104 mv y.tab.c grammar.c
105 mv y.tab.h tokdefs.h
106
107grammar.o: grammar.c
106 $(YACC) -d $<
107 mv y.tab.c grammar.c
108 mv y.tab.h tokdefs.h
109
110grammar.o: grammar.c
108 $(CC) -c $(CFLAGS) -Dyylval=pcap_lval grammar.c
111 @rm -f $@
112 $(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c
109
110install: force
111 $(INSTALL) -m 444 -o bin -g bin libpcap.a $(DESTDIR)$(LIBDEST)
112 $(RANLIB) $(DESTDIR)$(LIBDEST)/libpcap.a
113
114install-incl: force
113
114install: force
115 $(INSTALL) -m 444 -o bin -g bin libpcap.a $(DESTDIR)$(LIBDEST)
116 $(RANLIB) $(DESTDIR)$(LIBDEST)/libpcap.a
117
118install-incl: force
115 $(INSTALL) -m 444 -o bin -g bin pcap.h $(DESTDIR)$(INCLDEST)
116 $(INSTALL) -m 444 -o bin -g bin pcap-namedb.h $(DESTDIR)$(INCLDEST)
117 $(INSTALL) -m 444 -o bin -g bin net/bpf.h $(DESTDIR)$(INCLDEST)/net
119 $(INSTALL) -m 444 -o bin -g bin $(srcdir)/pcap.h $(DESTDIR)$(INCLDEST)
120 $(INSTALL) -m 444 -o bin -g bin $(srcdir)/pcap-namedb.h $(DESTDIR)$(INCLDEST)
121 $(INSTALL) -m 444 -o bin -g bin $(srcdir)/net/bpf.h $(DESTDIR)$(INCLDEST)/net
118
119install-man: force
122
123install-man: force
120 $(INSTALL) -m 444 -o bin -g bin pcap.3 $(DESTDIR)$(MANDEST)/man3
124 $(INSTALL) -m 444 -o bin -g bin $(srcdir)/pcap.3 $(DESTDIR)$(MANDEST)/man3
121
122clean:
123 rm -f $(CLEANFILES)
124
125distclean:
126 rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
127 gnuc.h os-proto.h bpf_filter.c net
128

--- 20 unchanged lines hidden ---
125
126clean:
127 rm -f $(CLEANFILES)
128
129distclean:
130 rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
131 gnuc.h os-proto.h bpf_filter.c net
132

--- 20 unchanged lines hidden ---