"Fossies" - the Fresh Open Source Software Archive

Member "mod_log_sql-1.101/Makefile.in" (5 Nov 2006, 7064 Bytes) of package /linux/www/apache_httpd_modules/old/mod_log_sql-1.101.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": 1.100_vs_1.101.

    1 # @configure_input@
    2 
    3 # Modify these top variables.
    4 SUBDIRS = docs contrib
    5 
    6 HEADERS = mod_log_sql.h \
    7 		functions.h \
    8 		functions13.h \
    9 		functions20.h \
   10 		apache13.h \
   11 		apache20.h \
   12 		winconfig.h
   13 
   14 CFLAGS = -Wc,-Wall -Wc,-fno-strict-aliasing
   15 
   16 ifeq (@OOO_MAINTAIN@,1)
   17 CFLAGS += -Wc,-Werror
   18 endif
   19 
   20 EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG \
   21 	build-apache13.bat build-apache2.bat \
   22 
   23 coreSOURCES = @PACKAGE_NAME@.c
   24 coreTARGET = @PACKAGE_NAME@@APXS_EXTENSION@
   25 coreLDADD = @RT_LIBS@
   26 coreCFLAGS =
   27 coreNAME = log_sql
   28 TARGETS = $(coreTARGET)
   29 
   30 sslSOURCES = @PACKAGE_NAME@_ssl.c
   31 sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@
   32 sslLDADD = 
   33 sslCFLAGS = @MOD_SSL_CFLAGS@ 
   34 sslNAME = log_sql_ssl
   35 
   36 ifeq (@WANT_SSL_MOD@,1)
   37 TARGETS += $(sslTARGET)
   38 endif
   39 
   40 logioSOURCES = @PACKAGE_NAME@_logio.c
   41 logioTARGET = @PACKAGE_NAME@_logio@APXS_EXTENSION@
   42 logioLDADD = 
   43 logioCFLAGS = 
   44 logioNAME = log_sql_logio
   45 
   46 ifeq (@WANT_LOGIO_MOD@,1)
   47 TARGETS += $(logioTARGET)
   48 endif
   49 
   50 mysqlSOURCES = @PACKAGE_NAME@_mysql.c
   51 mysqlTARGET = @PACKAGE_NAME@_mysql@APXS_EXTENSION@
   52 mysqlLDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@
   53 mysqlCFLAGS = @MYSQL_CFLAGS@
   54 mysqlNAME = log_sql_mysql
   55 
   56 ifeq (@WANT_MYSQL_MOD@,1)
   57 TARGETS += $(mysqlTARGET)
   58 endif
   59 
   60 pgsqlSOURCES = @PACKAGE_NAME@_pgsql.c
   61 pgsqlTARGET = @PACKAGE_NAME@_pgsql@APXS_EXTENSION@
   62 pgsqlLDADD = @PGSQL_LDFLAGS@ @PGSQL_LIBS@
   63 pgsqlCFLAGS = @PGSQL_CFLAGS@
   64 pgsqlNAME = log_sql_pgsql
   65 
   66 ifeq (@WANT_PGSQL_MOD@,1)
   67 TARGETS += $(pgsqlTARGET)
   68 endif
   69 
   70 dbiSOURCES = @PACKAGE_NAME@_dbi.c
   71 dbiTARGET = @PACKAGE_NAME@_dbi@APXS_EXTENSION@
   72 dbiLDADD = @DBI_LDFLAGS@ @DBI_LIBS@
   73 dbiCFLAGS = @DBI_CFLAGS@
   74 dbiNAME = log_sql_dbi
   75 
   76 ifeq (@WANT_DBI_MOD@,1)
   77 TARGETS += $(dbiTARGET)
   78 endif
   79 
   80 #Don't modify anything below here
   81 
   82 PROVIDERS_SUBDIRS = @subdirs@
   83 
   84 srcdir = @abs_srcdir@
   85 builddir = @abs_builddir@
   86 
   87 OBJ = $(coreSOURCES:.c=.o) $(logioSOURCES:.c=.o) $(sslSOURCES:.c=.o) $(mysqlSOURCES:.c=.o) \
   88 	$(dbiSOURCES:.c=.o) $(pgsqlSOURCES:.c=.o)
   89 
   90 LO = $(coreSOURCES:.c=.lo) $(logioSOURCES:.c=.lo) $(sslSOURCES:.c=.lo) $(mysqlSOURCES:.c=.lo) \
   91 	$(dbiSOURCES:.c=.lo) $(pgsqlSOURCES:.c=.lo)
   92 
   93 SLO = $(coreSOURCES:.c=.slo) $(logioSOURCES:.c=.slo) $(sslSOURCES:.c=.slo) $(mysqlSOURCES:.c=.slo) \
   94 	$(dbiSOURCES:.c=.slo) $(pgsqlSOURCES:.c=.slo)
   95 
   96 STD_DIST = install-sh \
   97 	config.sub \
   98 	config.guess \
   99 	aclocal.m4 \
  100 	Makefile.in \
  101 	configure.ac \
  102 	configure \
  103 	stamp-h.in \
  104 	config.h.in
  105 
  106 DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(coreSOURCES) $(HEADERS) \
  107     $(sslSOURCES) $(logioSOURCES) $(mysqlSOURCES) $(pgsqlSOURCES) $(dbiSOURCES)
  108 
  109 all: $(TARGETS) all-subdirs
  110 
  111 all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs:
  112 	@otarget=`echo $@|sed s/-subdirs//`; \
  113 	list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
  114 	for i in $$list; do \
  115 		if test -d "$$i"; then \
  116 			target="$$otarget"; \
  117 			echo "Making $$target in $$i"; \
  118 			if test "$$i" = "."; then \
  119 				made_local=yes; \
  120 				target="local-$$target"; \
  121 			fi; \
  122 			(cd $$i && $(MAKE) $$target) || exit 1; \
  123 		fi; \
  124 	done;
  125 
  126 TODO: TODO.in
  127 	@./gen_todo.pl
  128 
  129 $(coreTARGET): $(coreSOURCES) $(HEADERS)
  130 	@@APXS_BIN@ -c -o $(coreTARGET) $(coreCFLAGS) $(CFLAGS) \
  131 		@DEFS@ @AP_DEFS@ $(coreLDADD) $(coreSOURCES)
  132 
  133 $(logioTARGET): $(logioSOURCES) $(HEADERS)
  134 	@@APXS_BIN@ -c -o $(logioTARGET) $(logioCFLAGS) $(CFLAGS) \
  135 		@DEFS@ @AP_DEFS@ $(logioLDADD) $(logioSOURCES)
  136 
  137 $(sslTARGET): $(sslSOURCES) $(HEADERS)
  138 	@@APXS_BIN@ -c -o $(sslTARGET) $(sslCFLAGS) $(CFLAGS) \
  139 		@DEFS@ @AP_DEFS@ $(sslLDADD) $(sslSOURCES)
  140 
  141 $(mysqlTARGET): $(mysqlSOURCES) $(HEADERS)
  142 	@@APXS_BIN@ -c -o $(mysqlTARGET) $(mysqlCFLAGS) $(CFLAGS) \
  143 		@DEFS@ @AP_DEFS@ $(mysqlLDADD) $(mysqlSOURCES)
  144 
  145 $(pgsqlTARGET): $(pgsqlSOURCES) $(HEADERS)
  146 	@@APXS_BIN@ -c -o $(pgsqlTARGET) $(pgsqlCFLAGS) $(CFLAGS) \
  147 		@DEFS@ @AP_DEFS@ $(pgsqlLDADD) $(pgsqlSOURCES)
  148 
  149 $(dbiTARGET): $(dbiSOURCES) $(HEADERS)
  150 	@@APXS_BIN@ -c -o $(dbiTARGET) $(dbiCFLAGS) $(CFLAGS) \
  151 		@DEFS@ @AP_DEFS@ $(dbiLDADD) $(dbiSOURCES)
  152 
  153 install: $(TARGETS) install-subdirs
  154 	@@APXS_BIN@ -n $(coreNAME) -i $(coreTARGET); \
  155 	if test @WANT_MYSQL_MOD@ -eq 1; then \
  156 	    @APXS_BIN@ -n $(mysqlNAME) -i $(mysqlTARGET); \
  157     fi; \
  158 	if test @WANT_PGSQL_MOD@ -eq 1; then \
  159 	    @APXS_BIN@ -n $(pgsqlNAME) -i $(pgsqlTARGET); \
  160     fi; \
  161 	if test @WANT_DBI_MOD@ -eq 1; then \
  162 	    @APXS_BIN@ -n $(dbiNAME) -i $(dbiTARGET); \
  163     fi; \
  164 	if test @WANT_SSL_MOD@ -eq 1; then \
  165 		@APXS_BIN@ -n $(sslNAME) -i $(sslTARGET); \
  166 	fi; \
  167 	if test @WANT_LOGIO_MOD@ -eq 1; then \
  168 	    @APXS_BIN@ -n $(logioNAME) -i $(logioTARGET); \
  169     fi; \
  170 	echo "*************************************************************************"; \
  171 	echo "*** The mod_log_sql modules have been installed."; \
  172 	echo "*** Please edit your Apache configuration files and"; \
  173 	echo "*** add the appropriate LoadModule directives per the documentation"; \
  174 	echo "*** in docs/manual.html"; \
  175 	echo "*** If you have previously used 1.18 or lower then you must change"; \
  176 	echo "*** >LoadModule sql_log_module modules/mod_log_sql.so"; \
  177 	echo "***   to"; \
  178 	echo "*** >LoadModule log_sql_module modules/mod_log_sql.so"; \
  179 	echo "*** in your httpd.conf as the internal name of the module has changed."; \
  180 	echo "*** "; \
  181 	echo "*** Also read the documentation about using SSL support and new "; \
  182 	echo "*** configuration directives."; \
  183 	echo "*************************************************************************";
  184 
  185 activate: activate-subdirs
  186 	@@APXS_BIN@ -n $(coreNAME) -i -a $(coreTARGET); \
  187 	if test @WANT_SSL_MOD@ -eq 1; then \
  188 		@APXS_BIN@ -n $(sslNAME) -i -a $(sslTARGET); \
  189 	fi
  190 
  191 clean: clean-subdirs
  192 	$(RM) $(OBJ) $(SLO) $(LO) $(TARGETS)
  193 	$(RM) -r .libs
  194 
  195 distclean: clean distclean-subdirs
  196 	$(RM) config.status config.log config.h config.h.in \
  197 	configure stamp-h stamp-h.in Makefile aclocal.m4
  198 	$(RM) -r autom4te-2.53.cache
  199 
  200 DESTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@
  201 DESTTGZ = $(DESTDIR).tar.gz
  202 dist:
  203 	@rm -rf $(DESTDIR); \
  204 	list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
  205 	for i in $$list; do \
  206 		if test -d "$$i"; then \
  207 			target=local-dist; \
  208 			echo "Making $$target in $$i"; \
  209 			if test "$$i" = "."; then \
  210 				made_local=yes; \
  211 				target="local-dist"; \
  212 			fi; \
  213 			NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \
  214 			echo $(NEWDESTDIR); \
  215 			(cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit 1; \
  216 		fi; \
  217 	done; \
  218 	if test "$$made_local" != "yes"; then \
  219 		$(MAKE) "local-dist" || exit 1; \
  220 	fi; \
  221 	tar -zcf $(DESTTGZ) $(DESTDIR); \
  222 	rm -rf $(DESTDIR); \
  223 
  224 local-dist: $(DISTFILES)
  225 	@mkdir -p $(DESTDIR); \
  226 	cp -dp --parents $(DISTFILES) $(DESTDIR);
  227 
  228 .PHONY: include all-subdirs activate-subdirs install-subdirs \
  229 	clean-subdirs distclean-subdirs dist
  230 
  231 # Regenerate makefiles
  232 # autoheader might not change config.h.in, so touch a stamp file.
  233 $(srcdir)/config.h.in: stamp-h.in
  234 $(srcdir)/stamp-h.in: configure.ac aclocal.m4
  235 	cd $(srcdir) && autoheader-2.53
  236 	echo timestamp > $(srcdir)/stamp-h.in
  237 
  238 config.h: stamp-h
  239 
  240 stamp-h: config.h.in config.status
  241 	./config.status
  242 
  243 $(srcdir)/configure: configure.ac aclocal.m4
  244 	cd $(srcdir) && autoconf-2.53
  245 
  246 Makefile: Makefile.in config.status
  247 	./config.status
  248 
  249 config.status: configure
  250 	./config.status --recheck