1 # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
2 # The Regents of the University of California. All rights reserved.
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
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.
21 # Various configurable paths (remember to edit Makefile.in, not Makefile)
26 exec_prefix = @
exec_prefix@
27 datarootdir
= @datarootdir@
28 # Pathname of directory to install the binary
30 # Pathname of directory to install the man page
38 # You shouldn't need to edit anything below here.
47 DEFS
= @DEFS@ @CPPFLAGS@ @V_DEFS@
51 FULL_CFLAGS
= $(CCOPT
) $(DEFS
) $(INCLS
) $(CFLAGS
)
60 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
61 INSTALL_DATA
= @INSTALL_DATA@
64 DEPENDENCY_CFLAG
= @DEPENDENCY_CFLAG@
66 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
67 # Also, gcc does not remove the .o before forking 'as', which can be a
68 # problem if you don't own the file but can write to the directory.
71 $(CC
) $(FULL_CFLAGS
) -c
$(srcdir)/$*.c
184 print-openflow-1.0.c \
244 LOCALSRC
= @LOCALSRC@
247 LIBNETDISSECT_OBJ
=$(LIBNETDISSECT_SRC
:.c
=.o
) ${LOCALSRC
:.c
=.o
} ${LIBOBJS}
248 LIBNETDISSECT
=libnetdissect.a
251 SRC
= $(CSRC
) $(GENSRC
) $(LOCALSRC
)
253 # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
254 # hack the extra indirection
255 OBJ
= $(CSRC
:.c
=.o
) $(GENSRC
:.c
=.o
)
284 netdissect-stdinc.h \
299 status-exit-codes.h \
302 timeval-operations.h \
307 /usr
/include/arpa
/tftp.h \
308 /usr
/include/net
/if_arp.h \
309 /usr
/include/netinet
/if_ether.h \
310 /usr
/include/netinet
/in.h \
311 /usr
/include/netinet
/ip_icmp.h \
312 /usr
/include/netinet
/tcp.h \
313 /usr
/include/netinet
/udp.h \
314 /usr
/include/protocols
/routed.h
316 TAGFILES
= $(SRC
) $(HDR
) $(TAGHDR
) $(LIBNETDISSECT_SRC
)
318 CLEANFILES
= $(PROG
) $(OBJ
) $(GENSRC
) $(LIBNETDISSECT_OBJ
)
328 Makefile-devel-adds \
337 cmake_uninstall.cmake.in \
339 cmake
/Modules
/FindCRYPTO.cmake \
340 cmake
/Modules
/FindPCAP.cmake \
341 cmake
/Modules
/FindSMI.cmake \
354 missing
/datalinks.c \
355 missing
/getopt_long.h \
356 missing
/getopt_long.c \
357 missing
/getservent.c \
358 missing
/pcap_dump_ftell.c \
364 missing
/win_ether_ntohost.c \
365 missing
/win_ether_ntohost.h \
374 win32
/prj
/GNUmakefile \
375 win32
/prj
/WinDump.dsp \
376 win32
/prj
/WinDump.dsw \
377 win32
/prj
/WinDump.sln \
378 win32
/prj
/WinDump.vcproj
380 TEST_DIST
= `find tests \( -name 'DIFF' -prune \) -o \( -name NEW -prune \) -o -type f \! -name '.*' \! -name '*~' -print`
384 $(PROG
): $(OBJ
) @V_PCAPDEP@
$(LIBNETDISSECT
)
386 $(CC
) $(FULL_CFLAGS
) $(LDFLAGS
) -o
$@
$(OBJ
) $(LIBNETDISSECT
) $(LIBS
)
388 $(LIBNETDISSECT
): $(LIBNETDISSECT_OBJ
)
390 $(AR
) cr
$@
$(LIBNETDISSECT_OBJ
)
393 datalinks.o
: $(srcdir)/missing
/datalinks.c
394 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/datalinks.c
395 dlnames.o
: $(srcdir)/missing
/dlnames.c
396 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/dlnames.c
397 getservent.o
: $(srcdir)/missing
/getservent.c
398 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/getservent.c
399 getopt_long.o
: $(srcdir)/missing
/getopt_long.c
400 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/getopt_long.c
401 snprintf.o
: $(srcdir)/missing
/snprintf.c
402 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/snprintf.c
403 strdup.o
: $(srcdir)/missing
/strdup.c
404 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/strdup.c
405 strlcat.o
: $(srcdir)/missing
/strlcat.c
406 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/strlcat.c
407 strlcpy.o
: $(srcdir)/missing
/strlcpy.c
408 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/strlcpy.c
409 strsep.o
: $(srcdir)/missing
/strsep.c
410 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/strsep.c
411 pcap_dump_ftell.o
: $(srcdir)/missing
/pcap_dump_ftell.c
412 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/pcap_dump_ftell.c
415 [ -d
$(DESTDIR
)$(sbindir
) ] || \
416 (mkdir
-p
$(DESTDIR
)$(sbindir
); chmod
755 $(DESTDIR
)$(sbindir
))
417 $(INSTALL_PROGRAM
) $(PROG
) $(DESTDIR
)$(sbindir
)/$(PROG
)
418 $(INSTALL_PROGRAM
) $(PROG
) $(DESTDIR
)$(sbindir
)/$(PROG
).
`cat ${srcdir}/VERSION`
419 [ -d
$(DESTDIR
)$(mandir)/man1
] || \
420 (mkdir
-p
$(DESTDIR
)$(mandir)/man1
; chmod
755 $(DESTDIR
)$(mandir)/man1
)
421 $(INSTALL_DATA
) $(PROG
).1 $(DESTDIR
)$(mandir)/man1
/$(PROG
).1
424 rm -f
$(DESTDIR
)$(sbindir
)/$(PROG
)
425 rm -f
$(DESTDIR
)$(mandir)/man1
/$(PROG
).1
428 lint
-hbxn
$(SRC
) $(LIBNETDISSECT_SRC
) | \
429 grep
-v
'struct/union .* never defined' | \
430 grep
-v
'possible pointer alignment problem'
433 rm -f
$(CLEANFILES
) $(PROG
)-`cat VERSION`.
tar.gz
436 rm -f
$(CLEANFILES
) Makefile config.cache config.log config.status \
437 config.h gnuc.h os-proto.h stamp-h stamp-h.in
$(PROG
).1 \
438 libnetdissect.a tests
/.failed tests
/.passed \
439 tests
/failure-outputs.txt
440 rm -rf autom4te.cache tests
/DIFF tests
/NEW
443 (cd tests
&& .
/TESTrun.sh
)
449 ctags
-wtd
$(TAGFILES
)
455 @cwd
=`pwd` ; dir=`basename $$cwd` ; name
=$(PROG
)-`cat VERSION` ; \
457 tar cf
- $(CSRC
) $(HDR
) $(LIBNETDISSECT_SRC
) $(EXTRA_DIST
) $(TEST_DIST
) |
(cd
$$name; tar xf
-); \
458 tar -c
-z
-f
$$name.
tar.gz
$$name; \
465 $(MKDEP
) -c
"$(CC)" -m
"$(DEPENDENCY_CFLAG)" $(DEFS
) $(INCLS
) $(SRC
) $(LIBNETDISSECT_SRC
)