Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[working/Evergreen.git] / Open-ILS / src / apachemods / Makefile.am
1 #-------------------------------------------------------------
2 # Makefile.am for Open-ILS/src/apachemods
3 # Author: Kevin Beswick (kevinbeswick00@gmail.com)
4 ## Process this file with automake to generate Makefile.in
5 #-------------------------------------------------------------
6
7 AM_CFLAGS = -D_LARGEFILE64_SOURCE -Wall -I@abs_top_srcdir@/Open-ILS/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS) -I$(OPENSRF_HEADERS)
8 AM_LDFLAGS = -L$(LIBDIR) -L$(OPENSRF_LIBS)
9 AP_LIBEXECDIR = `$(APXS2) -q LIBEXECDIR`
10
11 if BUILDAPACHEMODS
12 OILSAPACHEINST = apachemods
13 endif
14
15 install-exec-local: $(OILSAPACHEINST)
16
17 apachemods:
18         $(MKDIR_P) $(DESTDIR)$(AP_LIBEXECDIR)
19         $(APXS2) -c $(AM_LDFLAGS) -lxml2 -lopensrf -lxslt -lexpat $(AM_CFLAGS) @srcdir@/mod_xmlent.c
20         $(APXS2) -i -S LIBEXECDIR=$(DESTDIR)$(AP_LIBEXECDIR) -a @srcdir@/mod_xmlent.la
21         $(APXS2) -c $(AM_LDFLAGS) -lxml2 -lopensrf -lxslt -lexpat $(AM_CFLAGS) @srcdir@/mod_idlchunk.c
22         $(APXS2) -i -S LIBEXECDIR=$(DESTDIR)$(AP_LIBEXECDIR) -a @srcdir@/mod_idlchunk.la
23
24 clean-local:
25         rm -f @srcdir@/mod_xmlent.la @srcdir@/mod_xmlent.lo @srcdir@/mod_xmlent.slo
26         rm -f @srcdir@/mod_idlchunk.la @srcdir@/mod_idlchunk.lo @srcdir@/mod_idlchunk.slo