]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/objson/Makefile
added support for multi-threaded client interactions. much like the java lib, each...
[OpenSRF.git] / src / objson / Makefile
1 # --------------------------------------------------------------------
2 # Copyright (C) 2005  Georgia Public Library Service 
3 # Bill Erickson <highfalutin@gmail.com>
4 # Mike Rylander <mrylander@gmail.com>
5
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 # --------------------------------------------------------------------
16
17
18 # --------------------------------------------------------------------
19 #
20 # -DSTRICT_JSON_WRITE if not defined, 'null' objects will be written
21 #       as empty strings. e.g. [null, null] => [,,]
22 #
23 # -DSTRICT_JSON_READ if not defiend, empty array and object values
24 #       (not keys) will be considered null.
25 #       e.g. [,,{"key":}] will be parsed as [null, null, {"key":null}]
26 #
27 # --------------------------------------------------------------------
28
29 OBJS = utils.o json2xml.o object.o json_parser.o xml2json.o
30 CFLAGS += -DSTRICT_JSON_WRITE -DOSRF_DISABLE_MD5 
31 TARGETS = object.o json_parser.o json2xml.o xml2json.o ../libopensrf/utils.o ../libopensrf/md5.o
32 JSON_INC = ../../include/objson
33
34
35 all: libobjson.so
36
37 object.o:       object.c $(JSON_INC)/object.h
38 json_parser.o:  json_parser.c $(JSON_INC)/json_parser.h
39 json2xml.o:     json2xml.c $(JSON_INC)/json2xml.h
40 xml2json.o:     xml2json.c $(JSON_INC)/xml2json.h
41 ../libopensrf/utils.o: ../libopensrf/utils.c ../../include/opensrf/utils.h
42 ../libopensrf/md5.o: ../libopensrf/md5.c ../../include/opensrf/md5.h
43
44 install:
45         cp -r ../../include/objson $(INCLUDEDIR)
46         cp $(TMPDIR)/libobjson.so $(LIBDIR)/libobjson.so
47
48 libobjson.so:   $(TARGETS)
49         $(CC) -shared -W1 $(TARGETS) -o $(TMPDIR)/libobjson.so
50
51 clean:
52         /bin/rm -f *.o *.so 
53