You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_ftp-commits@incubator.apache.org by wr...@apache.org on 2006/12/15 21:28:03 UTC

svn commit: r487672 - /incubator/mod_ftp/trunk/modules/ftp/Makefile.apxs

Author: wrowe
Date: Fri Dec 15 13:28:03 2006
New Revision: 487672

URL: http://svn.apache.org/viewvc?view=rev&rev=487672
Log:
This is as generic as I can get it, an apxs based make.

Sorry - thought this was already committed as Makefile.  However,
we don't want it to interfere with in-tree builds either.

Added:
    incubator/mod_ftp/trunk/modules/ftp/Makefile.apxs

Added: incubator/mod_ftp/trunk/modules/ftp/Makefile.apxs
URL: http://svn.apache.org/viewvc/incubator/mod_ftp/trunk/modules/ftp/Makefile.apxs?view=auto&rev=487672
==============================================================================
--- incubator/mod_ftp/trunk/modules/ftp/Makefile.apxs (added)
+++ incubator/mod_ftp/trunk/modules/ftp/Makefile.apxs Fri Dec 15 13:28:03 2006
@@ -0,0 +1,55 @@
+##
+##  Makefile -- Build procedure for sample ftp Apache module
+##  Autogenerated via ``apxs -n ftp -g''.
+##
+
+PREFIX=$(shell apxs -q PREFIX)
+
+builddir=.
+top_srcdir=$(PREFIX)
+top_builddir=$(PREFIX)
+include $(shell apxs -q exp_installbuilddir)/special.mk
+
+#   the used tools
+APXS=apxs
+APACHECTL=apachectl
+
+#   additional defines, includes and libraries
+#DEFS=-Dmy_define=my_value
+INCLUDES=-I$(builddir)/../../include
+#LIBS=-Lmy/lib/dir -lmylib
+
+#   the default target
+all: local-shared-build
+
+#   install the shared object file into Apache 
+install: install-modules
+
+$(builddir)/../../include/ftp_protocol.h: $(builddir)/../../include/mod_ftp.h \
+		$(builddir)/ftp_commands.c
+	./remake_ftp_protocol > $(builddir)/../../include/ftp_protocol.h
+
+#   cleanup
+clean:
+	-rm -f mod_ftp*.o ftp_*.o mod_ftp*.lo ftp_*.lo mod_ftp*.slo ftp_*.slo
+	-rm -rf mod_ftp*.la .libs
+
+distclean: clean
+
+#   simple test
+test: reload
+	lynx -mime_header http://localhost/ftp
+
+#   install and activate shared object by reloading Apache to
+#   force a reload of the shared object file
+reload: install restart
+
+#   the general Apache start/restart/stop
+#   procedures
+start:
+	$(APACHECTL) start
+restart:
+	$(APACHECTL) restart
+stop:
+	$(APACHECTL) stop
+