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