added simple request utilty to display fieldmapper objects
[Evergreen.git] / Open-ILS / src / c-apps / Makefile
1 LDLIBS += -lobjson -lopensrf -lfieldmapper
2 CFLAGS += -DOSRF_LOG_PARAMS
3
4 all:    oils_auth.so
5
6 oils_event.o:   oils_event.c oils_event.h
7 oils_utils.o:   oils_utils.c oils_utils.h
8 oils_auth.o:    oils_auth.c
9
10
11 oils_auth.so:   oils_auth.o liboils_utils.so
12         $(CC) -shared -W1 $(LDLIBS) $(LDFLAGS) -loils_utils oils_auth.o -o $(TMPDIR)/$@
13
14 liboils_utils.so:       oils_utils.o oils_event.o oils_constants.h
15         $(CC) -shared -W1 $(LDLIBS) $(LDFLAGS) oils_utils.o oils_event.o -o $@
16         cp $@ $(TMPDIR)/
17         mkdir -p $(TMPDIR)/openils/
18         cp oils_event.h $(TMPDIR)/openils/
19         cp oils_utils.h $(TMPDIR)/openils/
20         cp oils_constants.h $(TMPDIR)/openils/
21
22
23
24 install:
25         @echo $@;
26         cp $(TMPDIR)/oils_auth.so $(LIBDIR)/
27         cp $(TMPDIR)/liboils_utils.so $(LIBDIR)/
28         mkdir -p $(INCDIR)/
29         cp oils_utils.h $(INCDIR)
30         cp oils_event.h $(INCDIR)
31         cp oils_constants.h $(INCDIR)
32
33 clean:
34         rm -f *.o *.so
35