-
Notifications
You must be signed in to change notification settings - Fork 60
/
Makefile.in
123 lines (98 loc) · 3.77 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
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
CC = @CC@
INSTALL_CMD = @INSTALL@
RANLIB = @RANLIB@
SRCDIR = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
DAEMONDIR = @sbindir@
MANDIR = @mandir@
topdir = @top_srcdir@
LIBS = -lsio -lstr -lmisc -lxlog -lportable -lpset @LIBS@
CFLAGS += @CFLAGS@
DCFLAGS = -Wall -Wredundant-decls -W -Wfloat-equal -Wundef -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Wmissing-format-attribute -Wshadow -Wpointer-arith -Wno-unused -g
DEFS = @DEFS@
SIO_DEFS = @DEFS@
MISC_DEFS = @DEFS@
LIB_DEFS = @DEFS@
PROG_DEFS = @DEFS@
LIBMAKEDEFS = CC='$(CC)' CFLAGS='$(CFLAGS) -I../../include'
PROGMAKEDEFS = CC='$(CC)' CFLAGS='$(CFLAGS) -I../libs/include' LDFLAGS='$(LDFLAGS) -L../libs/lib'
DEBUGLIBMAKEDEFS = CC='$(CC)' CFLAGS='$(DCFLAGS) -I../../include'
DEBUGMAKEDEFS = CC='$(CC)' CFLAGS='$(DCFLAGS) -I../libs/include' LDFLAGS='$(LDFLAGS) -L../libs/lib'
MANDATORY_LIBS = portable sio str misc xlog pset
ALL_LIBS = portable sio str misc xlog pset
build: makelibs makeprog
debug: debugmakelibs debugmakeprog
makeprog: makelibs
cd xinetd ; $(MAKE) $(PROGMAKEDEFS)
debugmakeprog:
cd xinetd ; $(MAKE) $(DEBUGMAKEDEFS)
makelibs: libmisc libportable libpset libsio libstr libxlog
debugmakelibs: dlibmisc dlibportable dlibpset dlibsio dlibstr dlibxlog
libmisc: libstr
cd libs/src/misc ; $(MAKE) $(LIBMAKEDEFS) install
libportable:
cd libs/src/portable ; $(MAKE) $(LIBMAKEDEFS) install
libpset:
cd libs/src/pset ; $(MAKE) $(LIBMAKEDEFS) install
libsio: libportable
cd libs/src/sio ; $(MAKE) $(LIBMAKEDEFS) install
libstr: libsio
cd libs/src/str ; $(MAKE) $(LIBMAKEDEFS) install
libxlog: libsio libstr
cd libs/src/xlog ; $(MAKE) $(LIBMAKEDEFS) install
dlibmisc: dlibstr
cd libs/src/misc ; $(MAKE) $(DEBUGLIBMAKEDEFS) install
dlibportable:
cd libs/src/portable ; $(MAKE) $(DEBUGLIBMAKEDEFS) install
dlibpset:
cd libs/src/pset ; $(MAKE) $(DEBUGLIBMAKEDEFS) install
dlibsio: dlibportable
cd libs/src/sio ; $(MAKE) $(DEBUGLIBMAKEDEFS) install
dlibstr: dlibsio
cd libs/src/str ; $(MAKE) $(DEBUGLIBMAKEDEFS) install
dlibxlog: dlibsio dlibstr
cd libs/src/xlog ; $(MAKE) $(DEBUGLIBMAKEDEFS) install
install: build
for i in $(DAEMONDIR) $(BINDIR) $(MANDIR)/man5 $(MANDIR)/man8 ; do \
test -d $$i || mkdir -p $$i ; done
$(INSTALL_CMD) -m 755 xinetd/xinetd $(DAEMONDIR)
$(INSTALL_CMD) -m 755 xinetd/itox $(DAEMONDIR)
$(INSTALL_CMD) -m 755 $(SRCDIR)/xinetd/xconv.pl $(DAEMONDIR)
$(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.conf.man $(MANDIR)/man5/xinetd.conf.5
$(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.log.man $(MANDIR)/man5/xinetd.log.5
$(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.man $(MANDIR)/man8/xinetd.8
$(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/itox.8 $(MANDIR)/man8/itox.8
$(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xconv.pl.8 $(MANDIR)/man8/xconv.pl.8
@echo "You must put your xinetd.conf in /etc/xinetd.conf"
@echo "There is a sample config file in xinetd/sample.conf and you can"
@echo "use xconv.pl to convert your old inetd.conf file to an xinetd format"
uninstall:
rm -f $(DAEMONDIR)/xinetd
rm -f $(DAEMONDIR)/itox
rm -f $(DAEMONDIR)/xconv.pl
rm -f $(MANDIR)/man5/xinetd.conf.5
rm -f $(MANDIR)/man8/xinetd.log.8
rm -f $(MANDIR)/man8/xinetd.8
rm -f $(MANDIR)/man8/itox.8
distclean: clean
rm -f config.cache config.log Makefile config.status xinetd/itox
rm -f config.h @srcdir@/libs/include/* @srcdir@/libs/man/*
for lib in $(ALL_LIBS) ; do \
cd @srcdir@/libs/src/$$lib ; $(MAKE) distclean ; \
cd ../../.. ; \
done
cd xinetd ; $(MAKE) distclean
clean: cleanlibs cleanprog
rm -f @srcdir@/libs/lib/*.a
cleanlibs:
for lib in $(ALL_LIBS) ; do \
cd @srcdir@/libs/src/$$lib ; $(MAKE) clean ; \
cd ../../.. ; \
done
cleanprog:
cd xinetd ; $(MAKE) clean
spotless: clean
rm -f @srcdir@/libs/include/*.h @srcdir@/libs/man/*.3
cd libs ; for i in lib include man ; do rm $$i/* ; done