-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
91 lines (68 loc) · 2.31 KB
/
Makefile.in
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
PRODUCT = @PRODUCT@
VERSION = @VERSION@
SHELL = /bin/sh
top_srcdir = @top_srcdir@
srcdir = @srcdir@
.SUFFIXES:
.SUFFIXES: .c .o
CC = @CC@
RANLIB = @RANLIB@
STRIP = @STRIP@
DEFINES = @DEFS@
CFLAGS = -I. @CFLAGS@ $(DEFINES)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
datarootdir = @datarootdir@
DISTFILES =
TARGET=$(PRODUCT)
SOURCES=main.c find_interface.c icmpping.c stringfunc.c varlist.c makeaddress.c
OBJS=main.o find_interface.o icmpping.o stringfunc.o varlist.o makeaddress.o
HEADERS=devicenode.h find_interface.h icmpping.h makeaddress.h socketnode.h stringfunc.h varlist.h
MAN=$(PRODUCT).8
LIB_OBJS=
DISTSRC=aclocal.m4 config.h.in configure configure.in $(SOURCES) $(HEADERS) install-sh Makefile.in mkinstalldirs README run_shaip.sh shaip.8 shaip.conf shaip.state studstad.conf
DISTBIN=$(TARGETS) README run_shaip.sh shaip.8 shaip.conf shaip.state studstad.conf
all: $(TARGET)
install: all
$(top_srcdir)/mkinstalldirs $(bindir)
$(INSTALL) $(TARGET) $(bindir)/$(TARGET)
$(top_srcdir)/mkinstalldirs $(mandir)/man8
$(INSTALL) $(MAN) $(mandir)/man8/$(MAN)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
$(STRIP) $(TARGET)
$(OBJS): $(SOURCES)
clean:
/bin/rm -f $(TARGET) *.o core $(PRODUCT)-$(VERSION)-*.tar.gz*
distclean: clean config-clean
config-clean: confclean-recursive
confclean-recursive: cfg-clean
cfg-clean:
/bin/rm -f Makefile config.h config.status config.cache config.log
mostlyclean: clean
maintainer-clean: clean
package: all
tar czf $(PRODUCT)-$(VERSION)-bin.tar.gz $(DISTBIN)
md5sum $(PRODUCT)-$(VERSION)-bin.tar.gz > $(PRODUCT)-$(VERSION)-bin.tar.gz.md5
tar czf $(PRODUCT)-$(VERSION)-src.tar.gz $(DISTSRC)
md5sum $(PRODUCT)-$(VERSION)-src.tar.gz > $(PRODUCT)-$(VERSION)-src.tar.gz.md5
# automatic re-running of configure if the configure.in file has changed
${srcdir}/configure: configure.in
cd ${srcdir} && autoconf
# autoheader might not change config.h.in, so touch a stamp file
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck