## ## Makefile.apx -- Build procedure for mod_ftp Apache module ## ## Do not use this target; build from the mod_ftp dir root ## # top_builddir and top_srcdir are misnomers, because build/*.mk # scripts expect it them be the parent of the build directory, # and fail to trust the installbuilddir. exp_installbuilddir=$(shell $(APXS) -q exp_installbuilddir) top_srcdir=$(installbuilddir)/.. top_builddir=$(installbuilddir)/.. ftp_builddir=../.. ftp_srcdir=../.. builddir=. srcdir=. CLEAN_TARGETS = *.loT include $(exp_installbuilddir)/special.mk all: $(srcdir)/ftp_protocol.h local-shared-build all-recursive # additional defines, includes and libraries DEFS=-DFTP_APXS_BUILD INCLUDES=-I$(builddir) -I$(srcdir) -I$(ftp_srcdir)/include #LIBS=-Lmy/lib/dir -lmylib # # since ftp_protocol.h is only updated when the source tree # is changed, it's refreshed in srcdir rather than builddir # $(srcdir)/ftp_protocol.h: $(ftp_srcdir)/include/mod_ftp.h \ $(srcdir)/ftp_commands.c $(srcdir)/remake_ftp_protocol > $(srcdir)/ftp_protocol.h