summaryrefslogtreecommitdiffstatsabout
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in144
1 files changed, 144 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..71622b8
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,144 @@
1# @configure_input@
2
3# Modify these top variables.
4SUBDIRS =
5SOURCES = \
6 @PACKAGE_NAME@.c
7
8HEADERS =
9
10CFLAGS = -Wc,-Wall -Wc,-Werror -Wc,-fno-strict-aliasing
11
12INCLUDES =
13
14LDADD =
15
16EXTRA_DIST = INSTALL LICENSE CHANGELOG make_combined_log.pl
17
18TARGET = @PACKAGE_NAME@.la
19
20#Don't modify anything below here
21
22PROVIDERS_SUBDIRS = @subdirs@
23
24srcdir = @abs_srcdir@
25builddir = @abs_builddir@
26
27OBJ = $(SOURCES:.c=.o)
28
29LO = $(SOURCES:.c=.lo)
30
31SLO = $(SOURCES:.c=.slo)
32
33STD_DIST = install-sh \
34 config.sub \
35 config.guess \
36 aclocal.m4 \
37 Makefile.in \
38 configure.ac \
39 configure \
40 stamp-h.in \
41 config.h.in
42
43DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(HEADERS)
44
45all: $(TARGET) all-subdirs
46
47all-subdirs install-subdirs update-subdirs clean-subdirs distclean-subdirs:
48 @otarget=`echo $@|sed s/-subdirs//`; \
49 list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
50 for i in $$list; do \
51 if test -d "$$i"; then \
52 target="$$otarget"; \
53 echo "Making $$target in $$i"; \
54 if test "$$i" = "."; then \
55 made_local=yes; \
56 target="local-$$target"; \
57 fi; \
58 (cd $$i && $(MAKE) $$target) || exit 1; \
59 fi; \
60 done; \
61
62TODO: TODO_HEADER $(SOURCES) $(HEADERS)
63 ./gen_todo.pl
64
65$(TARGET):
66 @APXS_BIN@ -c -o @PACKAGE_NAME@.la $(INCLUDES) $(CFLAGS) $(LDADD) @DEFS@ $(SOURCES)
67
68include:
69 rm -rf include
70 ln -s @APACHE_INCDIR@ include
71
72install: install-subdirs
73 @APXS_BIN@ -i -a -n $(subst mod_,,@PACKAGE_NAME@) $(TARGET)
74
75update: update-subdirs
76 @APXS_BIN@ -i -n $(subst mod_,,@PACKAGE_NAME@) $(TARGET)
77
78clean: clean-subdirs
79 $(RM) $(OBJ) $(SLO) $(LO) $(TARGET) .deps
80
81distclean: clean distclean-subdirs
82 $(RM) TODO config.status config.log config.h config.h.in \
83 configure stamp-h stamp-h.in Makefile
84 $(RM) -r autom4te-2.53.cache .libs
85
86DESTDIR = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
87DESTTGZ = $(DESTDIR).tar.gz
88dist:
89 @rm -rf $(DESTDIR); \
90 list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
91 for i in $$list; do \
92 if test -d "$$i"; then \
93 target=local-dist; \
94 echo "Making $$target in $$i"; \
95 if test "$$i" = "."; then \
96 made_local=yes; \
97 target="local-dist"; \
98 fi; \
99 NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \
100 echo $(NEWDESTDIR); \
101 (cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit 1; \
102 fi; \
103 done;
104 if test "$$made_local" != "yes"; then \
105 $(MAKE) "local-dist" || exit 1; \
106 fi
107 tar -zcf $(DESTTGZ) $(DESTDIR)
108 rm -rf $(DESTDIR)
109
110local-dist: $(DISTFILES)
111 mkdir -p $(DESTDIR)
112 cp -dp --parents $(DISTFILES) $(DESTDIR)
113
114$(builddir)/.deps: depend
115
116depend: $(SOURCES) $(HEADERS)
117 if test -n "`ls $(srcdir)/*.c 2> /dev/null`"; then \
118 $(CC) -MM -MT $(TARGET) -I@APACHE_INCDIR@ $(srcdir)/*.c > $(builddir)/.deps || true; \
119 fi
120
121include $(builddir)/.deps
122
123.PHONY: include all-subdirs update-subdirs install-subdirs \
124 clean-subdirs distclean-subdirs dist
125
126# Regenerate makefiles
127# autoheader might not change config.h.in, so touch a stamp file.
128$(srcdir)/config.h.in: stamp-h.in
129$(srcdir)/stamp-h.in: configure.ac aclocal.m4
130 cd $(srcdir) && autoheader-2.53
131 echo timestamp > $(srcdir)/stamp-h.in
132
133config.h: stamp-h
134stamp-h: config.h.in config.status
135 ./config.status
136
137$(srcdir)/configure: configure.ac aclocal.m4
138 cd $(srcdir) && autoconf-2.53
139
140Makefile: Makefile.in config.status
141 ./config.status
142
143config.status: configure
144 ./config.status --recheck