db7add1bbc3d1d76c88085763f06d95314c96d66
[Evergreen.git] / OpenSRF / src / gateway / Makefile
1 CCFLAGS += -DASSUME_STATELESS
2 LDLIBS  += -lobjson -lopensrf
3
4 all: osrf_json_gateway.so copy
5
6 install: 
7         $(APXS2) -i -a -n osrf_json_gateway osrf_json_gateway.so
8         cp apachetools.h $(INCLUDEDIR)/opensrf/
9
10 copy:
11         cp apachetools.h $(TMPDIR)
12
13 apachetools.o:  apachetools.h apachetools.c
14         $(CC) -c $(CFLAGS) apachetools.c -o $@
15
16 osrf_json_gateway.o:    osrf_json_gateway.c
17         $(CC) -c $(CFLAGS) osrf_json_gateway.c -o $@
18
19 osrf_json_gateway.so:   copy apachetools.o osrf_json_gateway.o
20         $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -shared -W1 apachetools.o osrf_json_gateway.o -o osrf_json_gateway.so
21
22
23 clean:
24         /bin/rm -f *.o *.so