File: Makefile.in

package info (click to toggle)
scotty 2.1.9-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 9,984 kB
  • ctags: 4,313
  • sloc: ansic: 35,946; sh: 12,591; tcl: 8,122; yacc: 2,442; makefile: 898; lex: 370
file content (134 lines) | stat: -rw-r--r-- 4,381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# This is a Makefile for ntping. If it has the name "Makefile.in"
# then it is a template for a Makefile;  to generate the actual Makefile,
# run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.

#----------------------------------------------------------------
# Things you can change to personalize the Makefile for your own
# site (you can make these changes in either Makefile.in or
# Makefile, but changes to Makefile will get lost if you re-run
# the configuration script).
#----------------------------------------------------------------

# Default top-level directories in which to install architecture-
# specific files (exec_prefix) and machine-independent files such
# as scripts (prefix).  The values specified here may be overridden
# at configure-time with the --exec-prefix and --prefix options
# to the "configure" script.

prefix =	@prefix@
exec_prefix =	@exec_prefix@

# Directory in which to install the program ntping:
BIN_DIR =	$(exec_prefix)/bin

# Top-level directory for manual entries:
MAN_DIR =	$(prefix)/man

# Directory in which to install manual entry for ntping:
MAN8_DIR =	$(MAN_DIR)/man8

# To change the compiler switches, for example to change from -O
# to -g, change the following line:
CFLAGS = -O

# Libraries to use when linking.
LIBS = @LIBS@ @DBMALLOC_LIB@ # -lresolv

# Some versions of make, like SGI's, use the following variable to
# determine which shell to use for executing commands:
SHELL =		/bin/sh

#----------------------------------------------------------------
# The information below is modified by the configure script when
# Makefile is generated from Makefile.in.  You shouldn't normally
# modify any of this stuff by hand.
#----------------------------------------------------------------

SRC_DIR =		@srcdir@
VPATH =			@srcdir@

#----------------------------------------------------------------
# The information below should be usable as is.  The configure
# script won't modify it and you shouldn't need to modify it
# either.
#----------------------------------------------------------------

CC =		@CC@
LD =		@CC@
CC_SWITCHES =	${CFLAGS} -I. -I.. @DEFS@

SRCS = ntping.c
EXTR = README ntping.8 Makefile.in configure configure.in \
	Makefile.handmade ntping-0.9b.c

.c.o:
	$(CC) -c $(CC_SWITCHES) $<

all:	ntping

ntping:	ntping.o
	-if [ -f ntping ] ; then mv -f ntping ntping.bak ; else true ; fi
	rm -f ntping.bak || true
	$(LD) -o ntping ntping.o $(LIBS)

dynamic:

clean:
	@rm -f *.o core *~ \#*\# *.bak gmon.out ntping .emacs_* lmake.???

distclean clobber realclean: clean
	@rm -f Makefile config.status config.h config.log config.cache

V=0.9j
dist tar:
	rm -rf ntping-$V ntping-$V.tar*
	mkdir ntping-$V
	-cp -p $(SRCS) $(EXTR) ntping-$V
	-tar cvf ntping-$V.tar ntping-$V
	gzip -f -v -9 ntping-$V.tar
	rm -rf ntping-$V

install: ntping
	@echo
	@echo "--> You must be root to install ntping. Please get root"
	@echo "--> permissions and then type >make sinstall<"
	@echo

sinstall: ntping
	-if [ ! -d $(BIN_DIR) ] ; then mkdir -p $(BIN_DIR) ; else true ; fi
	rm -f $(BIN_DIR)/ntping || true
	cp ntping $(BIN_DIR)
	-chown root $(BIN_DIR)/ntping || /etc/chown root $(BIN_DIR)/ntping
	-chmod u+s $(BIN_DIR)/ntping
	-chmod a-w $(BIN_DIR)/ntping
	-chmod a+x $(BIN_DIR)/ntping
	-if [ ! -d $(MAN8_DIR) ] ; then mkdir -p $(MAN8_DIR) ; else true ; fi
	rm -f $(MAN8_DIR)/ntping.8 || true
	cp $(SRC_DIR)/ntping.8 $(MAN8_DIR)/ntping.8
	-chmod g+w $(MAN8_DIR)/ntping.8

depend:

check:
	echo '-size 120 localhost' | ./ntping -b
	echo '-size 60 -delay 30 -mask localhost' | ./ntping -b
	echo '-retries 2 -timeout 1 -ttl 1 localhost' | ./ntping -b
	echo '-size 100 -delay 10 -trace 1 localhost' | ./ntping -b
	echo '-tstamp localhost' | ./ntping -b

lcheck:
	echo '-size 120 -delay 1 sol.ibr.cs.tu-bs.de prep.ai.mit.edu' | ./ntping -b
	echo '-size 60 -mask -delay 10 sol.ibr.cs.tu-bs.de prep.ai.mit.edu' | ./ntping -b
	echo '-retries 2 -timeout 1 -delay 100 -ttl 2 sol.ibr.cs.tu-bs.de prep.ai.mit.edu' | ./ntping -b
	echo '-size 100 -trace 2 sol.ibr.cs.tu-bs.de prep.ai.mit.edu' | ./ntping -b
	echo '-tstamp sol.ibr.cs.tu-bs.de prep.ai.mit.edu' | ./ntping -b

#
# this is local fun; please ignore.
#
linstall:	sinstall
	rcp -p $(BIN_DIR)/ntping bayes:$(BIN_DIR)/ntping
	rcp -p $(BIN_DIR)/ntping helios:$(BIN_DIR)/ntping