File: Makefile.in

package info (click to toggle)
lft 3.93-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: ansic: 11,811; sh: 2,990; makefile: 62
file content (80 lines) | stat: -rw-r--r-- 1,929 bytes parent folder | download | duplicates (4)
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
#
# This file is part of LFT.
#
# The LFT software provided in this Distribution is
# Copyright 2007 VOSTROM Holdings, Inc.
#
# The full text of our legal notices is contained in the file called
# COPYING, included with this Distribution.

# Directories where LFT will be installed:

prefix=@prefix@
datarootdir = @datarootdir@
datadir = @datadir@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
INSTALL=@INSTALL@
LN=@LN_S@

# Commands/References

CC=@CC@
CFLAGS=@CFLAGS@
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@

CAT=cat
CD=cd
MKDIR=mkdir -p
BUILDTYPE=build
RM=rm -rf
SH=sh
SYSTEM=unix
TOOLS=tools
TOUCH=touch
STRIP ?= strip
@SET_MAKE@

# Specifics

OBJS=lft.o lft_ifname.o whois.o lft_lib.o lft_icmptrace.o lft_btcptrace.o

all: lft whob

lft: $(OBJS)
	$(CC) $(CFLAGS) -o lft $(OBJS) $(LDFLAGS) $(LIBS)

whob: whois.o
	$(CC) $(CFLAGS) -o whob whois.c -DSTANDALONE $(LDFLAGS) $(LIBS)

install: lft lft.8 whob whob.8
	@echo "LFT and WhoB"
	@echo "  \_Stripping binaries"
	@$(STRIP) lft whob
	@echo "  \_Copying files to their intended destinations"
	@test -d $(DESTDIR)$(bindir)/. || $(MKDIR) $(DESTDIR)$(bindir)
	$(INSTALL) lft $(DESTDIR)$(bindir)/lft
	$(INSTALL) whob $(DESTDIR)$(bindir)/whob
	@ ( echo chown root $(DESTDIR)$(bindir)/lft && chown root $(DESTDIR)$(bindir)/lft && echo chmod u+s $(DESTDIR)$(bindir)/lft && chmod u+s $(DESTDIR)$(bindir)/lft ) || echo "***" WARNING: could not set $(bindir) suid to root
	@test -d $(DESTDIR)$(mandir)/man8/. || $(MKDIR) $(DESTDIR)$(mandir)/man8
	@echo "Installing manual pages"
	$(INSTALL) lft.8 $(DESTDIR)$(mandir)/man8/lft.8
	$(INSTALL) whob.8 $(DESTDIR)$(mandir)/man8/whob.8

clean:
	$(RM) *.o core* lft whob *~ *.dSYM

distclean:
	$(RM) Makefile config.log config.status config/acconfig.h

better:
	@echo "Sorry, this is the best I can do."

work:
	@echo "Sorry, I didn't write this.  I'm only a Makefile."

love:
	@echo "What do you think I was doing before you bothered me?"