(struct CHISE_DS): Add new member `subtype' and `modemask'.
[chise/libchise.git] / Makefile.in
index dbb0ec0..0296c60 100644 (file)
@@ -1,7 +1,7 @@
 CC = @CC@
 DEFS = @DEFS@
 LIBS = @LIBS@ -ldb
-CFLAGS = $(DEFS) -g -O2 -c
+CFLAGS = @CFLAGS@ -c
 
 LIBTOOL = @LIBTOOL@
 
@@ -30,20 +30,29 @@ DB_INSTALLDIR       = ${libdir}/chise
 
 VERSION                = @PACKAGE_VERSION@
 
+ABI_VERSION     = 1:0:0
+
+HEADERS        = chise.h chise-name.h
+OBJS   = chise.lo name.lo
 
 all:   libchise.la
 
-libchise.la:   chise.lo
-       $(LIBTOOL) $(CC) -o libchise.la chise.lo $(LIBS) -rpath ${libdir}
+libchise.la:   $(OBJS)
+       $(LIBTOOL) --mode=link \
+               $(CC) -o libchise.la $(OBJS) $(LIBS) \
+               -rpath ${libdir} -version-info $(ABI_VERSION)
 
-chise.lo:      chise.c chise.h
+chise.lo:      chise.c chise.h config.h
        $(LIBTOOL) $(CC) $(CFLAGS) chise.c
 
+name.lo:       name.c chise-name.h
+       $(LIBTOOL) $(CC) $(CFLAGS) name.c
+
 
 install:       install.h install.libs install.db
 
 install.h:
-       install -c chise.h $(INCLUDE_INSTALLDIR)
+       install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
 
 install.libs:  libchise.la
        $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)