]> git.evergreen-ils.org Git - OpenSRF.git/blob - Makefile.am
Link osrf_json_gateway to objson and opensrf libraries the autotools way
[OpenSRF.git] / Makefile.am
1 # Copyright (C) 2008 Equinox Software, Inc.
2 # Kevin Beswick <kevinbeswick00@gmail.com>
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14
15 if !DEBUG
16 MAYBE_DEBUG = -DNDEBUG
17 endif
18
19 export PREFIX                   = @prefix@
20 export TMP                      = @TMP@
21 export LIBXML2_HEADERS          = @LIBXML2_HEADERS@
22 export APR_HEADERS              = @APR_HEADERS@
23 export ETCDIR                   = @sysconfdir@
24 export APXS2                    = @APXS2@
25 export APACHE2_HEADERS          = @APACHE2_HEADERS@
26 export DEF_CFLAGS               = -D_LARGEFILE64_SOURCE $(MAYBE_DEBUG) -pipe -g -Wall -O2 -fPIC -I@abs_top_builddir@/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS) @INCLUDES@
27 export DEF_LDFLAGS              = -L$(TMPDIR) @LIBDIRS@
28 export DEF_LDLIBS               = -lobjson -lopensrf
29 export VAR                      = @localstatedir@
30 export PID                      = @localstatedir@/run/opensrf
31 export SOCK                     = @localstatedir@/lock/opensrf
32 export LOG                      = @localstatedir@/log/opensrf
33
34 AM_CFLAGS = $(DEF_CFLAGS)
35 LDFLAGS = $(DEF_LDFLAGS) -L./src/
36
37 SUBDIRS = src
38
39 jserver:
40         make -s -C src jserver
41
42 jserver-install:
43         make -s -C src jserver-install
44
45 javascript-install:
46         make -s -C src javascript-install
47