]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/xinclude/Makefile
some code cleanup, some unfinished projects, etc.
[OpenSRF.git] / src / xinclude / Makefile
1 SO=mod_xinclude.so
2
3 # --------------------------------------------------------
4 TMPDIR = /tmp/ilstmp/opensrf
5 LIBDIR = /openils/lib
6 CC_OPTS = -Wall -O2 -fPIC -I /usr/include/libxml2 -I /opt/include
7 LD_OPTS = -lxml2 
8 APXS2 = /opt/bin/apxs
9 # --------------------------------------------------------
10
11 all: $(SO)
12
13 install: 
14         cp $(TMPDIR)/$(SO) $(LIBDIR)/$(SO)
15         $(APXS2) -i -a -n xinclude $(LIBDIR)/$(SO)
16
17 $(SO): mod_xinclude.c   
18         $(CC) -c $(CC_OPTS)  mod_xinclude.c
19         $(CC) $(LD_OPTS) -shared -W1 mod_xinclude.o -o $(TMPDIR)/$(SO)
20
21 clean:
22         /bin/rm -f *.o *.so