-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
163 lines (127 loc) · 4.18 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# @configure_input@
# Modify these top variables.
SUBDIRS = docs
SOURCES = \
ftp_core.c \
ftp_protocol.c
HEADERS = \
ftp.h \
server_config.h \
mod_ftpd.h
CFLAGS = -Wc,-Wall -Wc,-Werror -Wc,-fno-strict-aliasing
INCLUDES =
LDADD =
EXTRA_DIST = TODO AUTHORS README ChangeLog LICENSE NOTICE build.bat winconfig.h
TARGET = @[email protected]
#Don't modify anything below here
PROVIDERS_SUBDIRS = @subdirs@
srcdir = @abs_srcdir@
builddir = @abs_builddir@
OBJ = $(SOURCES:.c=.o)
LO = $(SOURCES:.c=.lo)
SLO = $(SOURCES:.c=.slo)
STD_DIST = install-sh \
config.sub \
config.guess \
aclocal.m4 \
Makefile.in \
configure.ac \
configure \
stamp-h.in \
config.h.in
DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(HEADERS)
all: $(TARGET) all-subdirs
all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs:
@otarget=`echo $@|sed s/-subdirs//`; \
list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
for i in $$list; do \
if test -d "$$i"; then \
target="$$otarget"; \
echo "Making $$target in $$i"; \
if test "$$i" = "."; then \
made_local=yes; \
target="local-$$target"; \
fi; \
(cd $$i && $(MAKE) $$target) || exit 1; \
fi; \
done;
TODO: TODO.in $(SOURCES) $(HEADERS)
@./gen_todo.pl
$(TARGET):
@@APXS_BIN@ -c -o @[email protected] $(INCLUDES) $(CFLAGS) $(LDADD) @DEFS@ $(SOURCES)
install: $(TARGET) install-subdirs
@@APXS_BIN@ -i -n $(subst mod_,,@PACKAGE_NAME@) $(TARGET); \
echo "**********************************************************************"; \
echo "*** The mod_ftpd modules have been installed."; \
echo "*** Please edit your Apache configuration files and"; \
echo "*** add the appropriate LoadModule directives per the documentation"; \
echo "*** in docs/manual.html"; \
echo "*** If you have previously used a pre 0.12.0 release the module names"; \
echo "*** have changed from mod_ftp* to mod_ftpd* And several configuration"; \
echo "*** directives have changed their names."; \
echo "*** Please remove the old modules and update your configuration."; \
echo "**********************************************************************";
activate: $(TARGET) activate-subdirs
@APXS_BIN@ -i -n $(subst mod_,,@PACKAGE_NAME@) $(TARGET)
clean: clean-subdirs
@$(RM) $(OBJ) $(SLO) $(LO) $(TARGET) .deps
distclean: clean distclean-subdirs
$(RM) TODO config.status config.log config.h config.h.in \
configure stamp-h stamp-h.in Makefile aclocal.m4
$(RM) -r autom4te-2.53.cache .libs
DISTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@
DESTDIR = $(builddir)/@PACKAGE_NAME@-@PACKAGE_VERSION@
DISTTBZ = $(DISTDIR).tar.bz2
DISTTGZ = $(DISTDIR).tar.gz
dist-subdirs:
@list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
for i in $$list; do \
if test -d "$$i"; then \
target=dist-subdirs; \
echo "Making $$target in $$i"; \
if test "$$i" = "."; then \
made_local=yes; \
target="local-dist"; \
fi; \
(cd $$i && $(MAKE) DESTDIR=$(DESTDIR)/$$i $$target) || exit 1; \
fi; \
done; \
if test "$$made_local" != "yes"; then \
$(MAKE) "local-dist" || exit 1; \
fi;
dist dist-bz2 dist-gz:
@oformat=`echo $@|sed s/dist-//`; \
rm -rf $(DISTDIR); \
$(MAKE) dist-subdirs || exit 1; \
if test "$$oformat" != "gz"; then \
tar -cjf $(DISTTBZ) $(DISTDIR); \
else \
tar -czf $(DISTTGZ) $(DISTDIR); \
fi; \
rm -rf $(DISTDIR);
local-dist: $(DISTFILES)
@mkdir -p $(DESTDIR); \
cp -dp --parents $(DISTFILES) $(DESTDIR);
$(builddir)/.deps: depend
depend: $(SOURCES) $(HEADERS)
@if test -n "`ls $(srcdir)/*.c 2> /dev/null`"; then \
$(CC) -MM -MT $(TARGET) @AP_CPPFLAGS@ @DEFS@ $(srcdir)/*.c > $(builddir)/.deps || true; \
fi
include $(builddir)/.deps
.PHONY: include all-subdirs activate-subdirs install-subdirs \
clean-subdirs distclean-subdirs dist dist-gz dist-bz2 dist-subdirs
# Regenerate makefiles
# autoheader might not change config.h.in, so touch a stamp file.
$(srcdir)/config.h.in: stamp-h.in
$(srcdir)/stamp-h.in: configure.ac aclocal.m4
cd $(srcdir) && autoheader-2.53
echo timestamp > $(srcdir)/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
$(srcdir)/configure: configure.ac aclocal.m4
cd $(srcdir) && autoconf-2.53
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck