Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / contrib / traceroute / Makefile.in
blob3a7e79c8a1a3dbf07d6065f822f5b07341f38894
1 # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1995, 1996, 1997, 1998, 1999, 2000
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
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.
20 # @(#) $Id: Makefile.in,v 1.28 2000/11/23 20:05:14 leres Exp $ (LBL)
23 # Various configurable paths (remember to edit Makefile.in, not Makefile)
26 # Top level hierarchy
27 prefix = @prefix@
28 exec_prefix = @exec_prefix@
29 # Pathname of directory to install the binary
30 BINDEST = @sbindir@
31 # Pathname of directory to install the man page
32 MANDEST = @mandir@
34 # VPATH
35 srcdir = @srcdir@
36 VPATH = @srcdir@
39 # You shouldn't need to edit anything below here.
42 CC = @CC@
43 CCOPT = @V_CCOPT@
44 INCLS = -I. @V_INCLS@
45 DEFS = @DEFS@
47 # Standard CFLAGS
48 CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
50 # Standard LIBS
51 LIBS = @LIBS@
53 INSTALL = @INSTALL@
55 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
56 # Also, gcc does not remove the .o before forking 'as', which can be a
57 # problem if you don't own the file but can write to the directory.
58 .c.o:
59 @rm -f $@
60 $(CC) $(CFLAGS) -c $(srcdir)/$*.c
62 CSRC = traceroute.c ifaddrlist.c @V_FINDSADDR@
63 GENSRC = version.c
65 SRC = $(CSRC) $(GENSRC)
66 HDR = findsaddr.h ifaddrlist.h
68 TAGHDR = \
69 /usr/include/netinet/in.h \
70 /usr/include/netinet/ip_icmp.h \
71 /usr/include/netinet/udp.h
73 TAGFILES = $(SRC) $(HDR) $(TAGHDR)
75 # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
76 # hack the extra indirection
77 OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o) @LIBOBJS@
79 CLEANFILES = $(OBJ) traceroute $(GENSRC)
81 all: traceroute
83 traceroute: $(OBJ)
84 @rm -f $@
85 $(CC) $(CFLAGS) -o $@ $(OBJ) $(LIBS)
87 version.o: version.c
88 version.c: $(srcdir)/VERSION
89 @rm -f $@
90 sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
92 install: force
93 $(INSTALL) -m 4555 -o root -g bin traceroute $(DESTDIR)$(BINDEST)
95 install-man: force
96 $(INSTALL) -m 444 -o bin -g bin traceroute.8 $(DESTDIR)$(MANDEST)/man8
98 lint: $(GENSRC) force
99 lint -hbxn $(SRC) | \
100 grep -v 'struct/union .* never defined' | \
101 grep -v 'possible pointer alignment problem'
103 clean: force
104 rm -f $(CLEANFILES)
106 distclean: force
107 rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
108 gnuc.h os-proto.h
110 tags: $(TAGFILES)
111 ctags -wtd $(TAGFILES)
113 tar: force
114 @cwd=`pwd` ; name=traceroute-`cat VERSION` ; \
115 list="" ; tar="tar chf" ; temp="$$name.tar.gz" ; \
116 for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
117 echo \
118 "rm -f $$name; ln -s . $$name" ; \
119 rm -f $$name; ln -s . $$name ; \
120 echo \
121 "$$tar - [lots of files] | gzip > $$temp" ; \
122 $$tar - $$list | gzip > $$temp ; \
123 echo \
124 "rm -f $$name" ; \
125 rm -f $$name
127 force: /tmp
128 depend: $(GENSRC) force
129 ./mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)