(ABI_VERSION): Update to 1:0:1.
[chise/concord.git] / Makefile.in
1 CC = @CC@
2 DEFS = @DEFS@
3 LIBS = @LIBS@
4 CFLAGS  = -I. @CFLAGS@ -c -Wall -Wmissing-prototypes $(DEFS)
5
6 LIBTOOL = @LIBTOOL@
7
8 RM      = /bin/rm -f
9 TAR     = tar
10 MKDIR   = mkdir -p
11
12
13 ## The default location for installation.  Everything is placed in
14 ## subdirectories of this directory.  The default values for many of
15 ## the variables below are expressed in terms of this one, so you may
16 ## not need to change them.  This defaults to /usr/local.
17 prefix  = @prefix@
18
19 ## Like `prefix', but used for architecture-specific files.
20 exec_prefix = @exec_prefix@
21
22 datadir = @datadir@
23
24 libdir  = @libdir@
25
26 #libexecdir = @libexecdir@
27
28 #localstatedir = @localstatedir@
29
30 sharedstatedir = @sharedstatedir@
31
32 #target = @target@
33
34 top_builddir = @builddir@
35
36
37 INCLUDE_INSTALLDIR = ${prefix}/include
38 LIB_INSTALLDIR  = ${libdir}
39
40 VERSION         = @PACKAGE_VERSION@
41 ABI_VERSION     = 1:0:1
42
43
44 HEADERS = concord.h concord-name.h concord-bdb.h
45 OBJS    = concord.lo concord-bdb.lo name.lo
46
47
48 all:    libconcord.la
49
50 libconcord.la:  $(OBJS)
51         $(LIBTOOL) --mode=link \
52                 $(CC) -o libconcord.la $(OBJS) $(LIBS) \
53                 -rpath ${libdir} -version-info $(ABI_VERSION) \
54                 -no-undefined
55
56 concord.lo:     concord.c concord.h config.h sysdep.h
57         $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) concord.c
58
59 concord-bdb.lo: concord-bdb.c concord-bdb.h concord-name.h
60         $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) concord-bdb.c
61
62 name.lo:        name.c concord-name.h
63         $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) name.c
64
65
66 install:        install.h install.libs
67
68 install.h:
69         $(MKDIR) $(INCLUDE_INSTALLDIR)
70         install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
71
72 install.libs:   libconcord.la
73         $(MKDIR) $(LIB_INSTALLDIR)
74         $(LIBTOOL) --mode=install install -c libconcord.la $(LIB_INSTALLDIR)
75
76
77 sample: sample.c libconcord.la
78         gcc -Wall -Wmissing-prototypes -o sample sample.c -lconcord
79
80
81 clean:
82         -$(RM) -r *.o *.lo *.so *.la .libs sample
83
84 distclean: clean
85         -$(RM) Makefile config.h config.status config.log
86
87
88 tar:
89         cvs commit
90         sh -c 'cvs tag -R concord-`echo $(VERSION) \
91                                 | sed s/\\\\./_/ | sed s/\\\\./_/`; \
92         cd /tmp; \
93         cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise \
94                 export -d concord-$(VERSION) \
95                 -r concord-`echo $(VERSION) | tr . _` concord'
96         cd /tmp; $(RM) concord-$(VERSION)/.cvsignore ; \
97                 $(TAR) cvzf concord-$(VERSION).tar.gz concord-$(VERSION)
98         cd /tmp; $(RM) -r concord-$(VERSION)