blob: 1e8f3a31ea04d8c34c1ce9b1d3f73c6dd975599a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
mod_glusterfs_PROGRAMS = mod_glusterfs.so
mod_glusterfsdir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/apache/2.2
mod_glusterfs_so_SOURCES = mod_glusterfs.c
all: mod_glusterfs.so
mod_glusterfs.so: $(top_srcdir)/mod_glusterfs/apache/2.2/src/mod_glusterfs.c $(top_builddir)/libglusterfsclient/src/libglusterfsclient.la
ln -sf $(top_srcdir)/mod_glusterfs/apache/2.2/src/mod_glusterfs.c $(top_builddir)/mod_glusterfs/apache/2.2/src/mod_glusterfs-build.c
$(APXS) -c -o mod_glusterfs.la -Wc,-g3 -Wc,-O0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -I$(top_srcdir)/libglusterfsclient/src -L$(top_builddir)/libglusterfsclient/src/.libs/ -lglusterfsclient mod_glusterfs-build.c
-ln -sf .libs/mod_glusterfs.so mod_glusterfs.so
$(top_builddir)/libglusterfsclient/src/libglusterfsclient.la:
$(MAKE) -C $(top_builddir)/libglusterfsclient/src/ all
install-data-local:
@echo ""
@echo ""
@echo "**********************************************************************************"
@echo "* TO INSTALL MODGLUSTERFS, PLEASE USE, "
@echo "* $(APXS) -n glusterfs -ia $(mod_glusterfsdir)/mod_glusterfs.so "
@echo "**********************************************************************************"
@echo ""
@echo ""
#install:
# cp -fv mod_glusterfs.so $(HTTPD_LIBEXECDIR)
# cp -fv httpd.conf $(HTTPD_CONF_DIR)
clean:
rm -fv *.so *.o
|