diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 99 |
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 | |||
14 | MLMVERS = 1.18 | ||
15 | #APXSGDB = -Wc,-g | ||
16 | APXSOPTS = -Wc,-O2 -Wc,-Wall | ||
17 | STATOPTS = -fpic -O2 -Wall | ||
18 | CC = @CC@ | ||
19 | INSTALL = @INSTALL@ -m 664 | ||
20 | RM = @RM@ | ||
21 | LYX = @LYX@ | ||
22 | LATEX = @LATEX@ | ||
23 | DVIPS = @DVIPS@ | ||
24 | LINKS = @LINKS@ | ||
25 | L2H = @L2H@ | ||
26 | WEBSERV = gw0.corp | ||
27 | |||
28 | ifeq (@HAVE_MODSSL@, 1) | ||
29 | FLAGS = -DEAPI -I@MYSQLHDRDIR@ $(MYSQLDELAYED) -I@APSRCDIR@/src/modules/ssl -DWANT_SSL_LOGGING | ||
30 | else | ||
31 | FLAGS = -DEAPI -I@MYSQLHDRDIR@ $(MYSQLDELAYED) | ||
32 | endif | ||
33 | |||
34 | all: | ||
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 | |||
40 | dso: mod_log_sql.so | ||
41 | |||
42 | static: mod_log_sql.o | ||
43 | |||
44 | mod_log_sql.so: mod_log_sql.c Makefile | ||
45 | @APXSDIR@/apxs -c $(APXSGDB) $(APXSOPTS) $(FLAGS) -L@MYSQLLIBDIR@ @LIBS@ mod_log_sql.c | ||
46 | |||
47 | mod_log_sql.o: mod_log_sql.c Makefile | ||
48 | $(CC) $(STATOPTS) $(FLAGS) -I@APHDRDIR@ -c mod_log_sql.c | ||
49 | |||
50 | dsoinstall: dso | ||
51 | @APXSDIR@/apxs -i mod_log_sql.so | ||
52 | |||
53 | statinstall: 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 | |||
59 | clean: | ||
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 | |||
67 | distclean: clean | ||
68 | $(RM) -f config.log config.status config.cache config.guess confdefs.h Makefile config.h | ||
69 | |||
70 | distro: 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 | |||
78 | pre-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 | |||
81 | documentation: 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 | ||