]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/apachemods/Makefile
added apache config file reading, yay... more to come
[working/Evergreen.git] / Open-ILS / src / apachemods / Makefile
1 # ---------------------------------------------------------------------------------
2 CC_OPTS = -I /usr/include/libxml2 -I /opt/include -g
3 APXS2 = /home/erickson/sandbox/apache2/bin/apxs
4 # ---------------------------------------------------------------------------------
5
6 LD_OPTS += -lxml2 -lc_utils
7
8 all: mod_xmltools.so
9
10 install:        mod_xmltools-install
11
12 mod_xmltools.so: apachetools.o  xmltools.o
13         $(CC) -c $(CC_OPTS) mod_xmltools.c 
14         $(CC) $(LD_OPTS) -shared -W1 apachetools.o xmltools.o mod_xmltools.o -o $@
15
16 apachetools.o: apachetools.c apachetools.h
17         $(CC) -c $(CC_OPTS)  apachetools.c -o $@
18
19 xmltools.o:     xmltools.c xmltools.h   
20         $(CC) -c $(CC_OPTS) xmltools.c -o $@
21
22
23 mod_xmltools-install:
24         $(APXS2) -i -a -n mod_xmltools mod_xmltools.so
25         @echo "-----------------------------------------------";
26         @echo -e "* Important * : Change httpd.conf from this: \n \
27                 LoadModule mod_xmltools_module modules/mod_xmltools.so \n \
28                 to this: \n \
29                 LoadModule mod_xmltools    modules/mod_xmltools.so"
30         @echo "-----------------------------------------------";
31         @sleep 3;
32
33 clean:
34         /bin/rm -f *.o xmltools