(HEADERS): New variable.
authortomo <tomo>
Wed, 20 Aug 2003 18:01:37 +0000 (18:01 +0000)
committertomo <tomo>
Wed, 20 Aug 2003 18:01:37 +0000 (18:01 +0000)
(OBJS): New variable.
(libchise.la): Refer $(OBJS); add --mode=link for libtool.
(chise.lo): Depends on config.h.
(name.lo): New target.
(install.h): Refer $(HEADERS).

Makefile.in

index bc2c952..0296c60 100644 (file)
@@ -32,21 +32,27 @@ 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) \
+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)