]> The Tcpdump Group git mirrors - libpcap/blob - testprogs/Makefile.in
Fix building without protochain support. (GH #852)
[libpcap] / testprogs / 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 top_srcdir = @top_srcdir@
42 VPATH = @srcdir@
43
44 #
45 # You shouldn't need to edit anything below.
46 #
47
48 LD = /usr/bin/ld
49 CC = @CC@
50 AR = @AR@
51 LN_S = @LN_S@
52 MKDEP = @MKDEP@
53 CCOPT = @V_CCOPT@
54 INCLS = -I. -I.. -I@srcdir@ -I@srcdir@/.. @V_INCLS@
55 DEFS = @DEFS@ @V_DEFS@
56 ADDLOBJS = @ADDLOBJS@
57 ADDLARCHIVEOBJS = @ADDLARCHIVEOBJS@
58 LIBS = @LIBS@
59 PTHREAD_LIBS = @PTHREAD_LIBS@
60 CROSSFLAGS=
61 CFLAGS = @CFLAGS@ ${CROSSFLAGS}
62 LDFLAGS = @LDFLAGS@ ${CROSSFLAGS}
63 DYEXT = @DYEXT@
64 V_RPATH_OPT = @V_RPATH_OPT@
65 DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
66
67 # Standard CFLAGS for building test programs
68 FULL_CFLAGS = $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS)
69
70 INSTALL = @INSTALL@
71 INSTALL_PROGRAM = @INSTALL_PROGRAM@
72 INSTALL_DATA = @INSTALL_DATA@
73
74 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
75 # Also, gcc does not remove the .o before forking 'as', which can be a
76 # problem if you don't own the file but can write to the directory.
77 .c.o:
78 @rm -f $@
79 $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
80
81 SRC = @VALGRINDTEST_SRC@ \
82 can_set_rfmon_test.c \
83 capturetest.c \
84 filtertest.c \
85 findalldevstest-perf.c \
86 findalldevstest.c \
87 opentest.c \
88 reactivatetest.c \
89 selpolltest.c \
90 threadsignaltest.c \
91 writecaptest.c
92
93 TESTS = $(SRC:.c=)
94
95 TAGFILES = \
96 $(SRC) $(HDR)
97
98 CLEANFILES = $(OBJ) $(TESTS)
99
100 all: $(TESTS)
101
102 capturetest: $(srcdir)/capturetest.c ../libpcap.a
103 $(CC) $(FULL_CFLAGS) -I. -L. -o capturetest $(srcdir)/capturetest.c \
104 ../libpcap.a $(LIBS)
105
106 can_set_rfmon_test: $(srcdir)/can_set_rfmon_test.c ../libpcap.a
107 $(CC) $(FULL_CFLAGS) -I. -L. -o can_set_rfmon_test \
108 $(srcdir)/can_set_rfmon_test.c \
109 ../libpcap.a $(LIBS)
110
111 filtertest: $(srcdir)/filtertest.c ../libpcap.a
112 $(CC) $(FULL_CFLAGS) -I. -L. -o filtertest $(srcdir)/filtertest.c \
113 ../libpcap.a $(LIBS)
114
115 findalldevstest: $(srcdir)/findalldevstest.c ../libpcap.a
116 $(CC) $(FULL_CFLAGS) -I. -L. -o findalldevstest \
117 $(srcdir)/findalldevstest.c \
118 ../libpcap.a $(LIBS)
119
120 findalldevstest-perf: $(srcdir)/findalldevstest-perf.c ../libpcap.a
121 $(CC) $(FULL_CFLAGS) -I. -L. -o findalldevstest-perf \
122 $(srcdir)/findalldevstest-perf.c \
123 ../libpcap.a $(LIBS)
124
125 opentest: $(srcdir)/opentest.c ../libpcap.a
126 $(CC) $(FULL_CFLAGS) -I. -L. -o opentest $(srcdir)/opentest.c \
127 ../libpcap.a $(LIBS)
128
129 reactivatetest: $(srcdir)/reactivatetest.c ../libpcap.a
130 $(CC) $(FULL_CFLAGS) -I. -L. -o reactivatetest \
131 $(srcdir)/reactivatetest.c ../libpcap.a $(LIBS)
132
133 selpolltest: $(srcdir)/selpolltest.c ../libpcap.a
134 $(CC) $(FULL_CFLAGS) -I. -L. -o selpolltest $(srcdir)/selpolltest.c \
135 ../libpcap.a $(LIBS)
136
137 threadsignaltest: $(srcdir)/threadsignaltest.c ../libpcap.a
138 $(CC) $(FULL_CFLAGS) -I. -L. -o threadsignaltest \
139 $(srcdir)/threadsignaltest.c \
140 ../libpcap.a $(LIBS) $(PTHREAD_LIBS)
141
142 valgrindtest: $(srcdir)/valgrindtest.c ../libpcap.a
143 $(CC) $(FULL_CFLAGS) -I. -L. -o valgrindtest $(srcdir)/valgrindtest.c \
144 ../libpcap.a $(LIBS)
145
146 writecaptest: $(srcdir)/writecaptest.c ../libpcap.a
147 $(CC) $(FULL_CFLAGS) -I. -L. -o writecaptest $(srcdir)/writecaptest.c \
148 ../libpcap.a $(LIBS)
149
150 clean:
151 rm -f $(CLEANFILES)
152 rm -rf *.dSYM
153
154 distclean: clean
155 rm -f Makefile config.cache config.log config.status \
156 config.h stamp-h stamp-h.in
157 rm -rf autom4te.cache
158
159 install:
160
161 uninstall:
162
163 tags: $(TAGFILES)
164 ctags -wtd $(TAGFILES)
165
166 depend:
167 $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(CFLAGS) $(DEFS) $(INCLS) $(SRC)