summaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in43
1 files changed, 16 insertions, 27 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 0311c0d..92d3ec5 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,6 +1,6 @@
# $Id$
-# Copyright 2004 Lennart Poettering
+# Copyright 2004-2006 Lennart Poettering
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You
@@ -14,51 +14,40 @@
# implied. See the License for the specific language governing
# permissions and limitations under the License.
-DISTFILES=Makefile.in mod_mime_xattr.c
APXS=@APXS@
-APACHECTL=apachectl
+APACHECTL=@APACHECTL@
+LIBS=-Wl,"@LIBS@"
+CFLAGS=-Wc,"@CFLAGS@"
-# additional user defines, includes and libraries
-#DEF=-Dmy_define=my_value
-#INC=-Imy/include/dir
-#LIB=-Lmy/lib/dir -lc -lmylib
-LIB=-lattr
+all: mod_mime_xattr.la
-# the default target
-all: mod_mime_xattr.so
+mod_mime_xattr.la: @srcdir@/mod_mime_xattr.c
+ $(APXS) -c $(CFLAGS) $(LIBS) @srcdir@/mod_mime_xattr.c
-# compile the DSO file
-mod_mime_xattr.so: mod_mime_xattr.c
- $(APXS) -c $(DEF) $(INC) $(LIB) mod_mime_xattr.c
-
-# install the DSO file into the Apache installation
-# and activate it in the Apache configuration
install: all
- $(APXS) -i -a -n 'mime_xattr' mod_mime_xattr.so
+ $(APXS) -i -a mod_mime_xattr.la
-# cleanup
clean:
- -rm -f mod_mime_xattr.o mod_mime_xattr.so
+ rm -rf *.o *.so *.loT .deps/ *.la *.lo *.slo .libs/
-# reload the module by installing and restarting Apache
reload: install restart
-# the general Apache start/restart/stop procedures
start:
$(APACHECTL) start
+
restart:
$(APACHECTL) restart
+
stop:
$(APACHECTL) stop
-distdir:
- mkdir -p $(distdir)
- cp -p $(DISTFILES) $(distdir)
-
mostlyclean: clean
distclean: clean
-
maintainer-clean: clean
rm -f Makefile
-.PHONY: all clean maintainer-clean mostlyclean distclean distdir install reload start stop restart
+Makefile: @srcdir@/Makefile.in
+ (cd .. && ./config.status )
+
+
+.PHONY: all install clean reload start restart stop mostlyclean distclean maintainer-clean