]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/c-apps/Makefile.am
5c3871ca7b1f2577f09290826451a64b56450a14
[OpenSRF.git] / src / c-apps / Makefile.am
1 # Copyright (C) 2007-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 # for libtool
16 tmpdir = $(TMP)
17
18 AM_CFLAGS = $(DEF_CFLAGS) -DORSF_LOG_PARAMS 
19 LDADD = $(DEF_LDLIBS)
20 AM_LDFLAGS = $(DEF_LDFLAGS) -L$(TMP)/opensrf/ -L../libopensrf/.libs/ -L.  
21
22 tmp_PROGRAMS = timejson
23 lib_LTLIBRARIES = libosrf_dbmath.la libosrf_math.la libosrf_version.la
24
25 timejson_SOURCES = timejson.c
26 libosrf_dbmath_la_SOURCES = osrf_dbmath.c 
27 libosrf_math_la_SOURCES = osrf_math.c
28 libosrf_version_la_SOURCES = osrf_version.c 
29
30 ## rename libraries (libtool requires the prefix lib, but we dont use that here)
31 ## remove extra library files created by libtool
32 install-exec-hook:
33         cp $(LIBDIR)/libosrf_math.so $(LIBDIR)/osrf_math.so
34         cp $(LIBDIR)/libosrf_dbmath.so $(LIBDIR)/osrf_dbmath.so
35         cp $(LIBDIR)/libosrf_version.so $(LIBDIR)/osrf_version.so       
36         rm $(LIBDIR)/libosrf*