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