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
35 top_srcdir
= @top_srcdir@
39 # You shouldn't need to edit anything below here.
48 DEFS
= @DEFS@ @CPPFLAGS@ @V_DEFS@
52 FULL_CFLAGS
= $(CCOPT
) $(DEFS
) $(INCLS
) $(CFLAGS
)
61 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
62 INSTALL_DATA
= @INSTALL_DATA@
65 DEPENDENCY_CFLAG
= @DEPENDENCY_CFLAG@
67 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
68 # Also, gcc does not remove the .o before forking 'as', which can be a
69 # problem if you don't own the file but can write to the directory.
72 $(CC
) $(FULL_CFLAGS
) -c
$(srcdir)/$*.c
74 CSRC
= fptype.c tcpdump.c
190 print-openflow-1.0.c \
191 print-openflow-1.3.c \
238 print-unsupported.c \
255 LOCALSRC
= @LOCALSRC@
258 LIBNETDISSECT_OBJ
=$(LIBNETDISSECT_SRC
:.c
=.o
) ${LOCALSRC
:.c
=.o
} ${LIBOBJS}
259 LIBNETDISSECT
=libnetdissect.a
262 SRC
= $(CSRC
) $(GENSRC
) $(LOCALSRC
)
264 # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
265 # hack the extra indirection
266 OBJ
= $(CSRC
:.c
=.o
) $(GENSRC
:.c
=.o
)
297 netdissect-stdinc.h \
313 status-exit-codes.h \
316 timeval-operations.h \
321 /usr
/include/arpa
/tftp.h \
322 /usr
/include/net
/if_arp.h \
323 /usr
/include/netinet
/if_ether.h \
324 /usr
/include/netinet
/in.h \
325 /usr
/include/netinet
/ip_icmp.h \
326 /usr
/include/netinet
/tcp.h \
327 /usr
/include/netinet
/udp.h \
328 /usr
/include/protocols
/routed.h
330 TAGFILES
= $(SRC
) $(HDR
) $(TAGHDR
) $(LIBNETDISSECT_SRC
) \
331 print-pflog.c print-smb.c smbutil.c
333 CLEANFILES
= $(PROG
) $(OBJ
) $(GENSRC
) $(LIBNETDISSECT_OBJ
)
343 Makefile-devel-adds \
352 cmake_uninstall.cmake.in \
354 cmake
/Modules
/FindCRYPTO.cmake \
355 cmake
/Modules
/FindPCAP.cmake \
356 cmake
/Modules
/FindSMI.cmake \
362 doc
/README.Win32.md \
370 missing
/datalinks.c \
371 missing
/getopt_long.h \
372 missing
/getopt_long.c \
373 missing
/getservent.c \
374 missing
/pcap_dump_ftell.c \
380 missing
/win_ether_ntohost.c \
381 missing
/win_ether_ntohost.h \
391 TEST_DIST
= `git ls-files tests | grep -v 'tests/\..*'`
395 $(PROG
): $(OBJ
) @V_PCAPDEP@
$(LIBNETDISSECT
)
397 $(CC
) $(FULL_CFLAGS
) $(LDFLAGS
) -o
$@
$(OBJ
) $(LIBNETDISSECT
) $(LIBS
)
399 $(LIBNETDISSECT
): $(LIBNETDISSECT_OBJ
)
401 $(AR
) cr
$@
$(LIBNETDISSECT_OBJ
)
404 datalinks.o
: $(srcdir)/missing
/datalinks.c
405 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/datalinks.c
406 dlnames.o
: $(srcdir)/missing
/dlnames.c
407 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/dlnames.c
408 getservent.o
: $(srcdir)/missing
/getservent.c
409 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/getservent.c
410 getopt_long.o
: $(srcdir)/missing
/getopt_long.c
411 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/getopt_long.c
412 snprintf.o
: $(srcdir)/missing
/snprintf.c
413 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/snprintf.c
414 strdup.o
: $(srcdir)/missing
/strdup.c
415 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/strdup.c
416 strlcat.o
: $(srcdir)/missing
/strlcat.c
417 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/strlcat.c
418 strlcpy.o
: $(srcdir)/missing
/strlcpy.c
419 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/strlcpy.c
420 strsep.o
: $(srcdir)/missing
/strsep.c
421 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/strsep.c
422 pcap_dump_ftell.o
: $(srcdir)/missing
/pcap_dump_ftell.c
423 $(CC
) $(FULL_CFLAGS
) -o
$@
-c
$(srcdir)/missing
/pcap_dump_ftell.c
426 [ -d
$(DESTDIR
)$(bindir) ] || \
427 (mkdir
-p
$(DESTDIR
)$(bindir); chmod
755 $(DESTDIR
)$(bindir))
428 $(INSTALL_PROGRAM
) $(PROG
) $(DESTDIR
)$(bindir)/$(PROG
)
429 $(INSTALL_PROGRAM
) $(PROG
) $(DESTDIR
)$(bindir)/$(PROG
).
`cat ${srcdir}/VERSION`
430 [ -d
$(DESTDIR
)$(mandir)/man1
] || \
431 (mkdir
-p
$(DESTDIR
)$(mandir)/man1
; chmod
755 $(DESTDIR
)$(mandir)/man1
)
432 $(INSTALL_DATA
) $(PROG
).1 $(DESTDIR
)$(mandir)/man1
/$(PROG
).1
435 rm -f
$(DESTDIR
)$(bindir)/$(PROG
)
436 rm -f
$(DESTDIR
)$(mandir)/man1
/$(PROG
).1
439 lint
-hbxn
$(SRC
) $(LIBNETDISSECT_SRC
) | \
440 grep
-v
'struct/union .* never defined' | \
441 grep
-v
'possible pointer alignment problem'
444 rm -f
$(CLEANFILES
) $(PROG
)-`cat VERSION`.
tar.gz
447 rm -f
$(CLEANFILES
) Makefile config.cache config.log config.status \
448 config.h gnuc.h os-proto.h stamp-h stamp-h.in
$(PROG
).1 \
449 libnetdissect.a tests
/.failed tests
/.passed \
450 tests
/failure-outputs.txt
451 rm -rf autom4te.cache tests
/DIFF tests
/NEW
454 $(srcdir)/tests
/TESTrun
460 ctags
-wtd
$(TAGFILES
)
466 @name
=$(PROG
)-`cat VERSION` ; \
468 tar cf
- $(CSRC
) $(HDR
) $(LIBNETDISSECT_SRC
) $(EXTRA_DIST
) $(TEST_DIST
) |
(cd
$$name; tar xf
-); \
469 tar -c
-z
-f
$$name.
tar.gz
$$name; \
476 $(MKDEP
) -c
"$(CC)" -m
"$(DEPENDENCY_CFLAG)" -s
"$(srcdir)" $(DEFS
) $(INCLS
) $(SRC
) $(LIBNETDISSECT_SRC
)