summaryrefslogtreecommitdiffstats
path: root/mod_glusterfs/apache/1.3/src/Makefile.am
blob: 6bb3075f56433f82d18f8a1b483d2243cbbe2721 (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
mod_glusterfs_PROGRAMS = mod_glusterfs.so
mod_glusterfsdir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/apache/1.3

mod_glusterfs_so_SOURCES = mod_glusterfs.c

all: mod_glusterfs.so

mod_glusterfs.so: $(top_srcdir)/mod_glusterfs/apache/1.3/src/mod_glusterfs.c $(top_builddir)/libglusterfsclient/src/libglusterfsclient.la
	ln -sf $(top_srcdir)/mod_glusterfs/apache/1.3/src/mod_glusterfs.c $(top_builddir)/mod_glusterfs/apache/1.3/src/mod_glusterfs-build.c
	$(APXS) -c -Wc,-g3 -Wc,-O0 -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -D_GNU_SOURCE -I$(top_srcdir)/libglusterfsclient/src -Wl,-rpath,$(libdir) -Wl,-rpath,$(top_builddir)/libglusterfsclient/src/.libs/ $(top_builddir)/libglusterfsclient/src/.libs/libglusterfsclient.so mod_glusterfs-build.c -o $(top_builddir)/mod_glusterfs/apache/1.3/src/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 mod_glusterfs-build.c