summaryrefslogtreecommitdiff
path: root/apache1x/Makefile
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-04-28 20:59:48 +0000
committerStef Walter <stef@memberwebs.com>2004-04-28 20:59:48 +0000
commitdbbf162dc9be0aef47f2d1f1fcddb7ae4e074d47 (patch)
treec06b131bc9f249557d9891d07977c4f0f3d0f15b /apache1x/Makefile
parent8368de7830f336533f9fe6369641070239bf739c (diff)
Tons of fixes, debugging, changes, added apache module
Diffstat (limited to 'apache1x/Makefile')
-rw-r--r--apache1x/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/apache1x/Makefile b/apache1x/Makefile
new file mode 100644
index 0000000..3ddc156
--- /dev/null
+++ b/apache1x/Makefile
@@ -0,0 +1,40 @@
+##
+## Makefile -- Build procedure for sample httpauth Apache module
+## Autogenerated via ``apxs -n httpauth -g''.
+##
+
+# the used tools
+APXS=apxs
+APACHECTL=apachectl
+
+# additional user defines, includes and libraries
+#DEF=-Dmy_define=my_value
+INC=-I../ -I../common/
+
+# the default target
+all: mod_httpauth.so
+
+# compile the DSO file
+mod_httpauth.so: mod_httpauth.c ../common/sock_any.c
+ $(APXS) -c -Wc,-g -Wc,-O0 $(DEF) $(INC) $(LIB) mod_httpauth.c ../common/sock_any.c
+
+# install the DSO file into the Apache installation
+# and activate it in the Apache configuration
+install: all
+ $(APXS) -i -a -n 'httpauth' mod_httpauth.so
+
+# cleanup
+clean:
+ -rm -f mod_httpauth.o mod_httpauth.so
+
+# 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
+