-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
60 lines (49 loc) · 1.23 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
# $Id$
srcdir=@srcdir@
VPATH=@srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
sbindir=@sbindir@
localstatedir=@localstatedir@
mandir=@mandir@
Dsbindir=$(DESTDIR)$(sbindir)
Dmandir=$(DESTDIR)$(mandir)
CC=@CC@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
CFLAGS=@CFLAGS@
CPPFLAGS=@CPPFLAGS@ @DEFS@ -DVAR_DIR=\"$(localstatedir)\"
LDFLAGS=@LDFLAGS@
LIBOBJS=@LIBOBJS@
LIBS=@LIBS@
PROG=u6rd
SRCS=main.c address.c util.c @P_SRCS@
OBJS=$(SRCS:.c=.o)
all: $(PROG) u6rd.8
$(PROG): $(OBJS) $(LIBOBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBOBJS) $(LIBS)
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
u6rd.8: u6rd.8.in
sed -e "s%@exp_localstatedir@%$(localstatedir)%" < $? > $@
getprogname.o: compat/getprogname.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $?
strlcpy.o: compat/strlcpy.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $?
install: all
$(INSTALL) -d $(Dsbindir)
$(INSTALL_PROGRAM) $(PROG) $(Dsbindir)
$(INSTALL) -d $(Dmandir)/man8
$(INSTALL_DATA) u6rd.8 $(Dmandir)/man8
depend:
mkdep -- $(CPPFLAGS) $(SRCS)
lint:
lint $(CPPFLAGS) $(LINTFLAGS) $(SRCS)
clang-analyze:
clang --analyze $(CPPFLAGS) $(SRCS)
clean:
rm -f $(PROG) $(OBJS) $(LIBOBJS) u6rd.8
distclean: clean
rm -f config.cache config.status config.log .depend
rm -f Makefile