]> The Tcpdump Group git mirrors - libpcap/blob - rpcapd/Makefile.in
Clean up the ether_hostton() stuff.
[libpcap] / rpcapd / Makefile.in
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 #
21 # Various configurable paths (remember to edit Makefile.in, not Makefile)
22 #
23
24 # Top level hierarchy
25 prefix = @prefix@
26 exec_prefix = @exec_prefix@
27 datarootdir = @datarootdir@
28 # Pathname of directory to install the configure program
29 bindir = @bindir@
30 # Pathname of directory to install the rpcapd daemon
31 sbindir = @sbindir@
32 # Pathname of directory to install the include files
33 includedir = @includedir@
34 # Pathname of directory to install the library
35 libdir = @libdir@
36 # Pathname of directory to install the man pages
37 mandir = @mandir@
38
39 # VPATH
40 srcdir = @srcdir@
41 VPATH = @srcdir@
42
43 #
44 # You shouldn't need to edit anything below.
45 #
46
47 LD = /usr/bin/ld
48 CC = @CC@
49 AR = @AR@
50 LN_S = @LN_S@
51 MKDEP = @MKDEP@
52 CCOPT = @V_CCOPT@
53 INCLS = -I. -I.. -I@srcdir@ -I@srcdir@/.. @V_INCLS@
54 DEFS = -DBUILDING_PCAP @DEFS@ @V_DEFS@
55 ADDLOBJS = @ADDLOBJS@
56 ADDLARCHIVEOBJS = @ADDLARCHIVEOBJS@
57 LIBS = @LIBS@
58 CROSSFLAGS=
59 CFLAGS = @CFLAGS@ ${CROSSFLAGS}
60 LDFLAGS = @LDFLAGS@ ${CROSSFLAGS}
61 DYEXT = @DYEXT@
62 V_RPATH_OPT = @V_RPATH_OPT@
63 DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
64 PROG=libpcap
65
66 # Standard CFLAGS
67 FULL_CFLAGS = $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS)
68
69 INSTALL = @INSTALL@
70 INSTALL_PROGRAM = @INSTALL_PROGRAM@
71 INSTALL_DATA = @INSTALL_DATA@
72
73 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
74 # Also, gcc does not remove the .o before forking 'as', which can be a
75 # problem if you don't own the file but can write to the directory.
76 .c.o:
77 @rm -f $@
78 $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
79
80 SRC = daemon.c \
81 fileconf.c \
82 rpcapd.c \
83 utils.c
84
85 OBJ = $(SRC:.c=.o)
86 PUBHDR =
87
88 HDR = $(PUBHDR)
89
90 TAGFILES = \
91 $(SRC) $(HDR)
92
93 CLEANFILES = $(OBJ) rpcapd
94
95 MAN8 =
96
97
98 EXTRA_DIST = \
99 CMakeLists.txt \
100 Makefile.in \
101 Makefile-devel-adds
102
103 rpcapd: $(OBJ) ../libpcap.a
104 $(CC) $(LDFLAGS) -o $@ $(OBJ) ../libpcap.a $(LIBS)
105 clean:
106 rm -f $(CLEANFILES)
107
108 distclean: clean
109 rm -f Makefile config.cache config.log config.status \
110 config.h stamp-h stamp-h.in
111 rm -rf autom4te.cache
112
113 install: rpcapd
114 [ -d $(DESTDIR)$(sbindir) ] || \
115 (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir))
116 $(INSTALL_PROGRAM) rpcapd $(DESTDIR)$(sbindir)/rpcapd
117
118 uninstall:
119 rm -f $(DESTDIR)$(sbindir)/rpcapd
120
121 tags: $(TAGFILES)
122 ctags -wtd $(TAGFILES)
123
124 depend:
125 ../$(MKDEP) -c $(CC) -m $(CFLAGS) $(DEPENDENCY_CFLAG) $(DEFS) $(INCLS) $(SRC)