summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in99
1 files changed, 0 insertions, 99 deletions
diff --git a/Makefile.in b/Makefile.in
deleted file mode 100644
index 5a365bc..0000000
--- a/Makefile.in
+++ /dev/null
@@ -1,99 +0,0 @@
1# $Id: Makefile.in,v 1.1 2003/07/22 04:17:53 helios Exp $
2
3###########################################################################
4# Don't uncomment this without reading the "Optimizing for a busy database"
5# section in the documentation (under "Advanced logging scenarios").
6
7#@DEFS@
8
9#MYSQLDELAYED = -DWANT_DELAYED_MYSQL_INSERT
10
11###########################################################################
12# Rarely if ever have to touch below here.
13
14MLMVERS = 1.18
15#APXSGDB = -Wc,-g
16APXSOPTS = -Wc,-O2 -Wc,-Wall
17STATOPTS = -fpic -O2 -Wall
18CC = @CC@
19INSTALL = @INSTALL@ -m 664
20RM = @RM@
21LYX = @LYX@
22LATEX = @LATEX@
23DVIPS = @DVIPS@
24LINKS = @LINKS@
25L2H = @L2H@
26WEBSERV = gw0.corp
27
28ifeq (@HAVE_MODSSL@, 1)
29 FLAGS = -DEAPI -I@MYSQLHDRDIR@ $(MYSQLDELAYED) -I@APSRCDIR@/src/modules/ssl -DWANT_SSL_LOGGING
30else
31 FLAGS = -DEAPI -I@MYSQLHDRDIR@ $(MYSQLDELAYED)
32endif
33
34all:
35 @echo "You can choose to make mod_log_sql as a static or dynamic module."
36 @echo "Either 'make dso' or 'make static'."
37 @echo
38 @echo "Please first read the documentation carefully!"
39
40dso: mod_log_sql.so
41
42static: mod_log_sql.o
43
44mod_log_sql.so: mod_log_sql.c Makefile
45 @APXSDIR@/apxs -c $(APXSGDB) $(APXSOPTS) $(FLAGS) -L@MYSQLLIBDIR@ @LIBS@ mod_log_sql.c
46
47mod_log_sql.o: mod_log_sql.c Makefile
48 $(CC) $(STATOPTS) $(FLAGS) -I@APHDRDIR@ -c mod_log_sql.c
49
50dsoinstall: dso
51 @APXSDIR@/apxs -i mod_log_sql.so
52
53statinstall: static
54 $(INSTALL) -d -m 755 @APSRCDIR@/src/modules/sql
55 $(INSTALL) mod_log_sql.c @APSRCDIR@/src/modules/sql/mod_log_sql.c
56 $(INSTALL) Makefile @APSRCDIR@/src/modules/sql/Makefile
57 $(INSTALL) mod_log_sql.o @APSRCDIR@/src/modules/sql/mod_log_sql.o
58
59clean:
60 $(RM) -rf *.o *.so
61 $(RM) -f Documentation/HTML/*.html Documentation/HTML/*.css Documentation/HTML/*.png
62 $(RM) -f Documentation/*.tex
63 $(RM) -f Documentation/*.dvi
64 $(RM) -f Documentation/*.ps
65 $(RM) -f Documentation/*.txt
66
67distclean: clean
68 $(RM) -f config.log config.status config.cache config.guess confdefs.h Makefile config.h
69
70distro: documentation
71 @scp CHANGELOG $(WEBSERV):@APDSTDIR@/html/mod_log_sql/docs
72 @scp Documentation/*.ps $(WEBSERV):@APDSTDIR@/html/mod_log_sql/docs
73 @scp Documentation/HTML/*.html $(WEBSERV):@APDSTDIR@/html/mod_log_sql/docs/
74 @scp Documentation/HTML/*.png $(WEBSERV):@APDSTDIR@/html/mod_log_sql/docs/
75 @cd ..; tar jcf mod_log_sql-$(MLMVERS).tar.bz2 --exclude mod_log_sql/CVS --exclude mod_log_sql/Documentation/CVS --exclude mod_log_sql/Documentation/HTML/CVS --exclude ".directory" mod_log_sql/; scp mod_log_sql-$(MLMVERS).tar.bz2 $(WEBSERV):@APDSTDIR@/html/mod_log_sql/; rm -f mod_log_sql-$(MLMVERS).tar.bz2
76 @ssh $(WEBSERV) "ln -sf mod_log_sql-$(MLMVERS).tar.bz2 @APDSTDIR@/html/mod_log_sql/mod_log_sql.tar.bz2"
77
78pre-distro: documentation
79 @cd ..; tar jcf mod_log_sql-$(MLMVERS).tar.bz2 --exclude mod_log_sql/CVS --exclude mod_log_sql/Documentation/CVS --exclude mod_log_sql/Documentation/HTML/CVS --exclude ".directory" mod_log_sql/; scp mod_log_sql-$(MLMVERS).tar.bz2 $(WEBSERV):@APDSTDIR@/html/mod_log_sql/; rm -f mod_log_sql-$(MLMVERS).tar.bz2
80
81documentation: Documentation/documentation.lyx
82 @echo "Creating LaTeX docs..."
83 @$(LYX) --export latex Documentation/documentation.lyx 2>/dev/null
84 @echo "Creating cross-references...run 1"
85 @cd Documentation ; $(LATEX) documentation.tex >/dev/null 2>&1
86 @echo "Creating cross-references...run 2"
87 @cd Documentation ; $(LATEX) documentation.tex >/dev/null 2>&1
88 @echo "Creating cross-references...run 3"
89 @cd Documentation ; $(LATEX) documentation.tex >/dev/null 2>&1
90 @echo "Creating PostScript docs..."
91 @$(DVIPS) Documentation/documentation.dvi -o Documentation/documentation.ps 2>/dev/null
92 @echo "Creating HTML docs..."
93 @$(L2H) -local_icons -show_section_numbers -split 4 -navigation -noindex_in_navigation -contents_in_navigation -dir Documentation/HTML Documentation/documentation.tex >/dev/null 2>&1
94 @echo "Creating plain text docs..."
95 @$(L2H) -show_section_numbers -split 0 -dir Documentation/ Documentation/documentation.tex >/dev/null 2>&1
96 @$(LINKS) -dump -nolist -width=120 -dump Documentation/documentation.html > Documentation/documentation.txt 2>/dev/null
97 @echo "Cleaning up..."
98 @$(RM) -f Documentation/*.html Documentation/WARNINGS Documentation/*.pl Documentation/*.aux Documentation/*.css Documentation/*.toc Documentation/*.log Documentation/*.old Documentation/*.png Documentation/images.tex
99 @$(RM) -f Documentation/HTML/WARNINGS Documentation/HTML/*.pl Documentation/HTML/*.log Documentation/HTML/*.aux Documentation/HTML/*.tex Documentation/HTML/*.old Documentation/HTML/index.html